
模拟
文章平均质量分 56
晃晃--
这个作者很懒,什么都没留下…
展开
-
zoj 2164 Hanafuda Shuffle简单模拟(2)
比赛的时候,要是把这道题看了,也不至于一道没做出来了。。。。 #include int main() { int n,r,i,k,a[52],b[52],p,c,m; while(scanf("%d%d",&n,&r)!=EOF) {原创 2011-08-04 11:24:04 · 651 阅读 · 0 评论 -
zoj 1056 The Worm Turns
应该算是模拟一类吧,感觉和贪吃蛇差不多,不过这条虫长度是不变的。。。。。 #include #include #include #define STOP system("pause") int a[52][52]; int xx[20],yy[20],head,rea原创 2011-09-05 14:08:01 · 700 阅读 · 0 评论 -
zoj3179Calculate With Abacus模拟(3)
精神上,感觉好久都没刷出来题了,昨晚比赛又只作出来一道,郁闷。。。。。。 #include int main() { int t,x,y,i,j,k,p,sum,pp; char a[8][6]; scanf("%d",&t); while(t-原创 2011-08-08 08:43:44 · 633 阅读 · 0 评论