摘要:
#include#includeint main(){ int num[10],found,count=1,n,i; int get_next(int x); scanf("%d",&num[0]); printf("%d",num[0]); while(1) {... 阅读全文
随笔档案-2015年05月
Uva_489
2015-05-16 17:44 by HaodongGUO, 105 阅读, 收藏,
摘要:
#include#includechar a[1000],b[1000];int main(){ int n,t,i,j; while(scanf("%d",&n)!=-1&&n!=-1) { t=0; memset(a,0,sizeof(a)); ... 阅读全文
ZJU_1004Anagrams by Stack
2015-05-15 21:55 by HaodongGUO, 103 阅读, 收藏,
摘要:
#includeusing namespace std;string a,b;void Anagrams(int iPos,int iDeep,string operate,string pop,string push){ int i; for(i=0;i=iPos;i--)//从pop... 阅读全文
HDU_开灯问题
2015-05-07 23:57 by HaodongGUO, 185 阅读, 收藏,
摘要:
1 #include 2 #include 3 4 int a[1002]={1}; 5 6 int main() 7 { 8 int n,i,j,k,t; 9 10 scanf("%d%d",&n,&k);11 12 for(i=1;i<=n;i++)13 ... 阅读全文
ZJU_1005
2015-05-04 16:08 by HaodongGUO, 150 阅读, 收藏,
摘要:
这是一道模拟题#include#includeusing namespace std;int main(){ int ca,cb,n; while(cin>>ca>>cb>>n)//ca,cb,n分别表示a水壶的容量,b的容量和要求的量n { int bnow;//b... 阅读全文
ZJU_1058
2015-05-01 21:16 by HaodongGUO, 190 阅读, 收藏,
摘要:
这是一道简单的模拟题重在读懂题目在说什么和数据之间的联系 #include double a[7][7]; int b[12]; int main() { int i,j,flag=0,t,n; double m; scanf("%d",&t); ... 阅读全文
浙公网安备 33010602011771号