12 2014 档案
摘要:#include#include#include#includeusing namespace std;typedef int State[9];const int MAXSTATE=1000000;State st[MAXSTATE],goal;//int dist[MAXSTATE];int v...
阅读全文
摘要:#include#include#include#include#includeusing namespace std;int main(){ int a,b,x; while(scanf("%d%d",&a,&b)!=EOF) { if(ab) ans++; if(c...
阅读全文
摘要:#include#include#include#includeusing namespace std;int num[1100];int main(){ int n,k,l,r,sa,sk; int ver,yu,add,sla; int i,j; while(scanf(...
阅读全文
摘要:#include#include#include#includeusing namespace std;int bowl,plate;int n;int dish[1100];int main(){ int i,j; while(scanf("%d%d%d",&n,&bowl,&plat...
阅读全文
摘要:#include#include#include#include#includeusing namespace std;char mat[10][10];int vis[10][10];int ok,dx,dy;int m,n,d;int op[4][2]={0,1,1,0,0,-1,-1,0};b...
阅读全文
摘要:Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28391Accepted Submission(s): 126...
阅读全文
摘要:#includeint main(){ //int a[5]={1,2,4,7,15}; int a[5]; a[0]=1;a[1]=2;a[2]=4;a[3]=7;a[4]=15; int num,i; while(scanf("%d",&num)!=EOF) { for(i=4...
阅读全文
摘要:DescriptionThe summer training of ZJU ICPC in July is about to end. To celebrate this great and happy day, the coaches of ZJU ICPC TeamNaviandFancydec...
阅读全文
摘要:Description"Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says."The second problem is, given ...
阅读全文
摘要:DescriptionConsider a football tournament wherenteams participate. Each team has two football kits: for home games, and for away games. The kit for ho...
阅读全文
摘要:DescriptionThe Saratov State University Olympiad Programmers Training Center (SSU OPTC) hasnstudents. For each student you know the number of times he...
阅读全文
摘要:ExponentiationTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1251DescriptionThe Head Elder of the tropical ...
阅读全文
摘要:HighwaysPOJ 2485so that it will be possible to drive between any pair of towns without leaving the highway system. Flatopian towns are numbered from 1...
阅读全文
摘要:Agri-NetTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1258DescriptionFarmer John has been elected mayor of...
阅读全文