随笔分类 -  codeforces

摘要:B. Tell Your World time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Tell Your World tim 阅读全文
posted @ 2017-09-01 23:24 冥想选手 阅读(181) 评论(0) 推荐(0)
摘要:A. Arya and Bran time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Bran and his older siste 阅读全文
posted @ 2017-08-14 16:12 冥想选手 阅读(340) 评论(0) 推荐(0)
摘要:A. The Useless Toy 题目链接:http://codeforces.com/contest/834/problem/A 思路: 水题 实现代码: B. The Festive Evening 题目链接:http://codeforces.com/contest/834/problem 阅读全文
posted @ 2017-08-08 20:17 冥想选手 阅读(231) 评论(0) 推荐(0)
摘要:B. Flag of Berland 链接:http://codeforces.com/contest/837/problem/B 思路:题目要求判断三个字母是否是条纹型的,而且宽和高相同,那么先求出三个字母的边界,算下面积,是否和数量相同,不相同的话肯定不为条纹型,然后判断下他们宽和高的关系就行了 阅读全文
posted @ 2017-08-07 17:20 冥想选手 阅读(167) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/628/B 解题思路: 一个数最后两位数能被4整除那么这个数就能被4整除,而且题目还是连续的子序列,这就很简单了 实现代码: 阅读全文
posted @ 2017-07-24 16:36 冥想选手 阅读(199) 评论(0) 推荐(0)
摘要: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 冥想选手 阅读(192) 评论(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 冥想选手 阅读(288) 评论(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 冥想选手 阅读(250) 评论(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 冥想选手 阅读(366) 评论(0) 推荐(0)
摘要:A:链接:http://codeforces.com/contest/831/problem/A 解题思路: 从前往后分别统计递增,相等,递减序列的长度,如果最后长度和原序列长度相等那么就输出yes; 实现代码: B:链接:http://codeforces.com/contest/831/prob 阅读全文
posted @ 2017-07-16 14:11 冥想选手 阅读(231) 评论(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 冥想选手 阅读(173) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/612/problem/C 解题思路: 题意就是要求判断这个序列是否为RBS,每个开都要有一个和它对应的关,如:<()>满足条件,但<(>)就不满足条件,反正直接就是用栈做就行了,完美符合题目要求。 阅读全文
posted @ 2017-07-07 11:57 冥想选手 阅读(144) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/612/B 解题思路: 一开始看错了题意,他要求的是从1-n所耗费的时间,n表示的是数值而不是下标, 实现代码: 阅读全文
posted @ 2017-07-07 10:34 冥想选手 阅读(188) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/611/problem/C 解题思路: 分别对矩阵横竖遍历,满足条件则加1,不满足则不变,先将整个矩阵都标记完,然后只要输出起点和终点数值的差值就行。有点动态规划的感觉。 阅读全文
posted @ 2017-07-06 19:54 冥想选手 阅读(143) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/611/B 解题思路: 直接暴力推出所有符合条件的。 由进制转换可以知道,二进制只有1个0也就是十进制减去前面任意一个2的次方 然后脑残一样的用了位运算,死都无法表示64位,只能32位,还以为电脑出问题了。。 阅读全文
posted @ 2017-07-06 16:19 冥想选手 阅读(183) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/610/problem/C 解题思路: 将后一个矩阵拆分为四个前一状态矩阵,其中三个与前一状态相同,剩下一个直接取反就行。还有很多种取法,这种比较方便就是。 实现代码: 阅读全文
posted @ 2017-07-06 14:39 冥想选手 阅读(187) 评论(0) 推荐(0)
摘要:B. Vika and Squares time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Vika and Squares 阅读全文
posted @ 2017-07-06 11:40 冥想选手 阅读(358) 评论(0) 推荐(0)
摘要:C. Load Balancing time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Load Balancing time 阅读全文
posted @ 2017-07-06 00:01 冥想选手 阅读(221) 评论(0) 推荐(0)
摘要:Alyona's mother wants to present an array of n non-negative integers to Alyona. The array should be special. Alyona is a capricious girl so after she 阅读全文
posted @ 2017-07-04 13:16 冥想选手 阅读(427) 评论(0) 推荐(0)
摘要:C. Dasha and Password time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Dasha and Passw 阅读全文
posted @ 2017-07-04 11:12 冥想选手 阅读(142) 评论(0) 推荐(0)