摘要: A. Anton and Polyhedrons 题目链接:http://codeforces.com/contest/785/problem/A 智障水题 实现代码: B. Anton and Classes 链接:http://codeforces.com/contest/785/problem 阅读全文
posted @ 2017-07-23 14:59 冥想选手 阅读(185) 评论(0) 推荐(0) 编辑
摘要: You have been out of Syria for a long time, and you recently decided to come back. You remember that you have M friends there and since you are a gene 阅读全文
posted @ 2017-07-22 23:46 冥想选手 阅读(282) 评论(0) 推荐(0) 编辑
摘要: A sequence of positive and non-zero integers called palindromic if it can be read the same forward and backward, for example: 15 2 6 4 6 2 15 20 3 1 1 阅读全文
posted @ 2017-07-19 12:51 冥想选手 阅读(246) 评论(0) 推荐(0) 编辑
摘要: A:链接:http://codeforces.com/contest/825/problem/A 解题思路: 一开始以为是个进制转换后面发现是我想多了,就是统计有多少个1然后碰到0输出就行,没看清题意。。 实现代码: B.Five-In-a-Row 链接:http://codeforces.com/ 阅读全文
posted @ 2017-07-17 23:44 冥想选手 阅读(358) 评论(0) 推荐(0) 编辑
摘要: A:链接:http://codeforces.com/contest/831/problem/A 解题思路: 从前往后分别统计递增,相等,递减序列的长度,如果最后长度和原序列长度相等那么就输出yes; 实现代码: B:链接:http://codeforces.com/contest/831/prob 阅读全文
posted @ 2017-07-16 14:11 冥想选手 阅读(226) 评论(2) 推荐(0) 编辑
摘要: A.题目链接:http://codeforces.com/contest/828/problem/A 解题思路: 直接暴力模拟 B.题目链接:http://codeforces.com/contest/828/problem/B 思路: 暴力 C.题目链接:http://codeforces.com 阅读全文
posted @ 2017-07-12 11:50 冥想选手 阅读(165) 评论(0) 推荐(0) 编辑
摘要: For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ultim 阅读全文
posted @ 2017-07-07 18:34 冥想选手 阅读(149) 评论(0) 推荐(0) 编辑
摘要: The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height? The 阅读全文
posted @ 2017-07-07 15:31 冥想选手 阅读(172) 评论(0) 推荐(0) 编辑
摘要: There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c 阅读全文
posted @ 2017-07-07 15:27 冥想选手 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/contest/612/problem/C 解题思路: 题意就是要求判断这个序列是否为RBS,每个开都要有一个和它对应的关,如:<()>满足条件,但<(>)就不满足条件,反正直接就是用栈做就行了,完美符合题目要求。 阅读全文
posted @ 2017-07-07 11:57 冥想选手 阅读(130) 评论(0) 推荐(0) 编辑