摘要: 题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1022模拟栈:代码#includeint main(void){ int n,i,j,k,t,r[23],stack[13]; char si[13],so[13]; while(scan... 阅读全文
posted @ 2014-10-05 22:14 立刻行动 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1312此题注意n,m 表示到底是行还是列代码#include#includeint n,m,cnt;char s[30][30];int to[4][2]={{1,0},{0,1},{-1,0},{0,-1... 阅读全文
posted @ 2014-10-05 20:23 立刻行动 阅读(118) 评论(0) 推荐(0) 编辑