
模拟
Fenice
狂奔的蜗牛
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu1013
这题陷阱有点深啊,数字长度太大,得用字符串,开始一直WA ,不知道什么情况。。其实这个方法也是借鉴的大牛的。埃,戒浮躁才能AC #include #include using namespace std; int main() { int n; string s; while(cin>>s&&s[0]!='0') { n=0;原创 2012-12-03 21:03:46 · 752 阅读 · 0 评论 -
hdu1035 DFS模拟
做水题找感觉,一次AC水过的 #include #include using namespace std; int row,column,start; int map[11][11]; char dir[11][11]; int step; bool flag; int before; void DFS(int x,int y) { if(map[x][y] != 0) {原创 2013-02-23 20:40:13 · 707 阅读 · 0 评论