![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UESTC
MissAnnLucky
Cease to struggle cease to live.
展开
-
UESTC 1855 C.S.I.: P15
是个递归,dfs的题目,主要是判断是鸟的时候要判断其周围的点是'.'空气,一共判断18个点。 #include #include using namespace std; char map[35][35]; int h,w,vis[35][35]; void dfs(int x,int y) { if(!(map[x][y]=='|'||map[x][y]=='原创 2013-05-20 15:52:56 · 631 阅读 · 0 评论 -
UESTC 1852 Traveling Cellsperson
比赛中我最大的失误:输入的两个数字先是宽,再是高,而我没有注意到,按往常先高后宽做的,一直到最后没有AC,事实上思路是对的。 #include #include using namespace std; int main() { char c; int x,y,cas; scanf("%d",&cas); getchar(); whil原创 2013-05-20 15:50:22 · 597 阅读 · 0 评论 -
UESTC 1846Angry Grammar Nazi 字符串
比赛时队友一遍AC了,但事实上这个题通过率只有20.3%,比赛结束后我竟然是WA2次,RTE2次,第一次没有读好题,对于"u" "ur" "should of" "would of" 的判断是以单词的形式,而"lol"是只要在一个单词中出现就可以,例如lolal,这样,还有lolalol这样的只是算作1次。总之,字符串的题目还是弱项! #include #include原创 2013-05-20 15:44:50 · 724 阅读 · 0 评论