摘要:
A. Anton and Polyhedrons 题目链接:http://codeforces.com/contest/785/problem/A 智障水题 实现代码: B. Anton and Classes 链接:http://codeforces.com/contest/785/problem 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
A:链接:http://codeforces.com/contest/825/problem/A 解题思路: 一开始以为是个进制转换后面发现是我想多了,就是统计有多少个1然后碰到0输出就行,没看清题意。。 实现代码: B.Five-In-a-Row 链接:http://codeforces.com/ 阅读全文
摘要:
A:链接:http://codeforces.com/contest/831/problem/A 解题思路: 从前往后分别统计递增,相等,递减序列的长度,如果最后长度和原序列长度相等那么就输出yes; 实现代码: B:链接:http://codeforces.com/contest/831/prob 阅读全文
摘要:
A.题目链接:http://codeforces.com/contest/828/problem/A 解题思路: 直接暴力模拟 B.题目链接:http://codeforces.com/contest/828/problem/B 思路: 暴力 C.题目链接:http://codeforces.com 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
题目链接:http://codeforces.com/contest/612/problem/C 解题思路: 题意就是要求判断这个序列是否为RBS,每个开都要有一个和它对应的关,如:<()>满足条件,但<(>)就不满足条件,反正直接就是用栈做就行了,完美符合题目要求。 阅读全文