cf
brambles-sea
起风了
展开
-
794C Naming Company
点击打开链接C. Naming Companytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOleg the client and Igor the anal原创 2017-05-15 16:39:51 · 408 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) D - Ghosts
D. Ghoststime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGhosts live in harmony and peace, they travel the space without any purpose other than sc...原创 2018-05-02 22:14:30 · 289 阅读 · 0 评论 -
Educational Codeforces Round 43 (Rated for Div. 2) D. Degree Set
D. Degree Settime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequence of n positive integers d1, d2, ..., dn ...原创 2018-05-01 21:21:53 · 106 阅读 · 0 评论 -
Educational Codeforces Round 42 (Rated for Div. 2)
B. Students in Railway Carriage D. Merge Equals原创 2018-04-12 00:23:02 · 121 阅读 · 0 评论 -
Codeforces Round #472 Div. 2
Codeforces Round #472 Div. 2原创 2018-03-25 20:12:03 · 539 阅读 · 0 评论 -
Codeforces 934C - A Twisty Movement
C. A Twisty Movementtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA dragon symbolizes wisdom, power and wealth. On Lunar New Year's Day, people m...原创 2018-02-15 19:04:59 · 1087 阅读 · 0 评论 -
Codeforces Round #447 (Div. 2) C. Marco and GCD Sequence
C. Marco and GCD Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn a dream Marco met an elderly ma原创 2017-11-23 13:11:21 · 138 阅读 · 0 评论 -
Codeforces Round #447 (Div. 2) B. Ralph And His Magic Field
B. Ralph And His Magic Fieldtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRalph has a magic field which i原创 2017-11-23 12:59:30 · 144 阅读 · 0 评论 -
codeforces Round #446 (Div. 2) D
题解:就是将每一个数换成后一个比它大的数,最大的数换成最小的那一个,就行了。(或者每个数换成前一个比小的之类多可以)证明:这个还是比较好证明的。考虑分两种情况讨论:1.原子集没有最大的那个数:这就显然是个正确的,每个数都比之前的数要大,所以总和肯定要大;2.原子集有最大的那个数:最大数改变后的值最整个里面最大的,然后你将这个子集去掉最大的那个数,剩下的变化量的和原创 2017-11-19 17:48:43 · 164 阅读 · 0 评论 -
Codeforces Round #427 (Div. 2)B. The number on the board
B. The number on the boardtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSome natural number was written原创 2017-11-19 17:45:00 · 122 阅读 · 0 评论 -
C. Jury Marks
C. Jury Markstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp watched TV-show where k jury members原创 2017-07-23 09:26:48 · 206 阅读 · 0 评论 -
Codeforces Round #475 (Div. 2) C. Alternating Sum(等比数列+逆元)
C. Alternating Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two integers aa and bb. Moreover, you are given a sequence s0,s1,…,...原创 2018-04-29 00:14:57 · 129 阅读 · 0 评论