
CodeFroces
eIectron
优美的代码是成功AC的第一步。看着那么多博客不再更新,这就是我几年后的状态吗?要是走了就再也不回来了。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CF 363.div2 B. One Bomb
B. One Bomb time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a description of a depot. It is a rectangula原创 2016-07-20 16:39:10 · 305 阅读 · 0 评论 -
Tinkoff B. Igor and his way to work(BFS)
链接:http://codeforces.com/contest/793/problem/B 题目大意,你有一个起点有一个终点,你要从起点到终点去,但是你转弯的次数不可以大于2次。问是否可以到达。 解法:BFS找到一个方向直接把这个方向一直走走到不能走为止,所有点压入进去,并且记录一下转弯次数,大于2则退出。 代码如下: #include using namespace std; cons原创 2017-04-25 10:28:43 · 337 阅读 · 0 评论 -
CodeFroces 805B 3-palindrome
3-palindrome time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output In the beginning of the new year Keivan decided原创 2017-05-05 10:06:49 · 612 阅读 · 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 · 386 阅读 · 0 评论 -
2016-2017 ACM-ICPC, NEERC, Southern Subregional Contest A. Toda 2
A. Toda 2 time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output A group of n friends enjoys playing popular video原创 2016-10-25 11:20:25 · 1070 阅读 · 0 评论 -
CodeFroce 369div2 B - Chris and Magic Square
B. Chris and Magic Square time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder and Chris the Baboon原创 2016-08-30 12:12:10 · 359 阅读 · 0 评论 -
Plane of Tanks: Pro
Plane of Tanks: Pro Vasya 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 · 386 阅读 · 0 评论 -
CodeFroces 363 div2 A. Launch of Collider(水题不水/(ㄒoㄒ)/~~)
A. Launch of Collider time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There will be a launch of a new, powerful and u原创 2016-07-20 10:09:16 · 495 阅读 · 0 评论 -
CF 363.div2 C. Vacations
C. Vacations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya has n days of vacations! So he decided to improve h原创 2016-07-20 16:25:53 · 272 阅读 · 0 评论 -
CodeFroces 175A. Robot Bicorn Attack(构造)
Description Vasya 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 · 527 阅读 · 0 评论