![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
文章平均质量分 80
nianiajr
http://www.liangjiarui.com/
展开
-
uva 327--Evaluating Simple C Expressions
The task in this problem is to evaluate a sequence of simple C expressions, buy you need not know C to solve the problem! Each of the expressions will appear on a line by itself and will contain no mo原创 2013-07-30 19:14:15 · 763 阅读 · 0 评论 -
hdu 4740
肯定是贵州老乡出的题,很简单的一个模拟题,稍微坑点的地方在如果开始两个出发点就相同的话,那么就直接输出,好了前几天网络赛就做这两题,不过一个人做还是有进步了,继续加油。#include#includeint dir[4][2]={{0,1},{1,0},{0,-1},{-1,0}};int vis1[1005][1005];int vis2[1005][1005];int r1原创 2013-09-17 19:39:58 · 745 阅读 · 0 评论 -
POJ 1492
细节模拟题,分清情况就好,不过POJ好坑啊,我拿G++提交%lf居然WA,废了我两小时蛋疼了。思路:大概就是枚举比较,然后统计,不过要注意中间环节,不要出错。#include#include#includeint main(){ int s[50]; while(1){ int n,len=0; memset(s,0,siz原创 2013-11-06 23:14:16 · 662 阅读 · 0 评论