CodeFroces
eIectron
优美的代码是成功AC的第一步。看着那么多博客不再更新,这就是我几年后的状态吗?要是走了就再也不回来了。
展开
-
CF 363.div2 B. One Bomb
B. One Bombtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a description of a depot. It is a rectangula原创 2016-07-20 16:39:10 · 276 阅读 · 0 评论 -
Tinkoff B. Igor and his way to work(BFS)
链接:http://codeforces.com/contest/793/problem/B题目大意,你有一个起点有一个终点,你要从起点到终点去,但是你转弯的次数不可以大于2次。问是否可以到达。解法:BFS找到一个方向直接把这个方向一直走走到不能走为止,所有点压入进去,并且记录一下转弯次数,大于2则退出。代码如下:#includeusing namespace std;cons原创 2017-04-25 10:28:43 · 310 阅读 · 0 评论 -
CodeFroces 805B 3-palindrome
3-palindrometime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn the beginning of the new year Keivan decided原创 2017-05-05 10:06:49 · 584 阅读 · 0 评论 -
Codefroces455A Boredom
http://codeforces.com/problemset/problem/455/A题意:选取一个数字AK,然后获得AK分数,序列中AK + 1 和 AK - 1的数字会被删除。然后重复,直到序列为空。解法:好久没写过DP了,已经完全不会写了,即使这是一道超级基础的DP。很明显,我们不知道选取哪个数字比较好,选取一个数字后有很明显的后效性,导致ak+1和ak原创 2017-03-12 17:51:11 · 357 阅读 · 0 评论 -
2016-2017 ACM-ICPC, NEERC, Southern Subregional Contest A. Toda 2
A. Toda 2time limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputA group of n friends enjoys playing popular video原创 2016-10-25 11:20:25 · 1046 阅读 · 0 评论 -
CodeFroce 369div2 B - Chris and Magic Square
B. Chris and Magic Squaretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZS the Coder and Chris the Baboon原创 2016-08-30 12:12:10 · 342 阅读 · 0 评论 -
Plane of Tanks: Pro
Plane of Tanks: ProVasya has been playing Plane of Tanks with his friends the whole year. Now it is time to divide the participants into several categories depending on their results.A player原创 2016-08-01 15:26:47 · 354 阅读 · 0 评论 -
CodeFroces 363 div2 A. Launch of Collider(水题不水/(ㄒoㄒ)/~~)
A. Launch of Collidertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere will be a launch of a new, powerful and u原创 2016-07-20 10:09:16 · 468 阅读 · 0 评论 -
CF 363.div2 C. Vacations
C. Vacationstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n days of vacations! So he decided to improve h原创 2016-07-20 16:25:53 · 253 阅读 · 0 评论 -
CodeFroces 175A. Robot Bicorn Attack(构造)
DescriptionVasya plays Robot Bicorn Attack.The game consists of three rounds. For each one a non-negative integer amount of points is given. The result of the game is the sum of obtained point原创 2016-08-01 15:14:51 · 504 阅读 · 0 评论