Codeforces Round 167 (Div. 1)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
273 Codeforces Round 167 (Div. 1) FINISHED False 7200 376928997 Feb. 13, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 369 ) E Dima and Game PROGRAMMING dp games 2600

B"Dima and Anya love playing different games. Now Dima has imagined a new game that he wants to play with Anya. Dima writes n pairs of integers on a piece of paper (li, xe2 x80 x89ri) (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89< xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p). Then players take turns. On his turn the player can do the following actions: The player who can't make a move loses. Of course, Dima wants Anya, who will move first, to win. That's why Dima should write out such n pairs of integers (li, xe2 x80 x89ri) (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89< xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p), that if both players play optimally well, the first one wins. Count the number of ways in which Dima can do it. Print the remainder after dividing the answer by number 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). Two ways are considered distinct, if the ordered sequences of the written pairs are distinct. The first line contains two integers n, p (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The numbers are separated by a single space. In a single line print the remainder after dividing the answer to the problem by number 1000000007 (109 xe2 x80 x89+ xe2 x80 x897)."...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3879120 vlad107 E June 13, 2013, 11:37 a.m. OK FPC TESTS 50 15 0 2600
3754697 ftiasch E May 22, 2013, 1:45 a.m. OK GNU C++ TESTS 50 15 0 2600
3620375 lifeich1 E April 25, 2013, 12:27 p.m. OK GNU C++ TESTS 50 15 0 2600
3620200 sunweijun E April 25, 2013, 11:49 a.m. OK GNU C++ TESTS 50 15 0 2600
3561825 sandro1234 E April 18, 2013, 7:47 p.m. OK GNU C++ TESTS 50 15 0 2600
3558633 sillycross E April 18, 2013, 2:51 a.m. OK GNU C++ TESTS 50 15 0 2600
3253227 Cenadar E March 5, 2013, 9:40 a.m. OK GNU C++ TESTS 50 15 0 2600
3234100 howsiwei E March 3, 2013, 11:38 a.m. OK GNU C++ TESTS 50 15 0 2600
3232168 sslfreedom E March 3, 2013, 2:43 a.m. OK GNU C++ TESTS 50 15 0 2600
3232074 forget E March 3, 2013, 12:42 a.m. OK GNU C++ TESTS 50 15 0 2600
3227279 kunkun220189 E March 1, 2013, 8:50 p.m. OK GNU C++ TESTS 50 15 0 2600
3123298 Werevovk E Feb. 13, 2013, 5:26 p.m. OK GNU C++0x TESTS 50 15 0 2600
3201178 boleyn.su E Feb. 27, 2013, 5:02 a.m. OK GNU C++0x TESTS 50 15 102400 2600
8645814 equation314 E Nov. 11, 2014, 6:44 a.m. OK GNU C++0x TESTS 50 30 0 2600
4200310 evima E July 29, 2013, 3:31 p.m. OK GNU C++0x TESTS 50 30 0 2600
10024764 sd0061 E Feb. 25, 2015, 7:42 p.m. OK GNU C++0x TESTS 50 30 102400 2600
9556414 desert97 E Jan. 26, 2015, 5:29 a.m. OK GNU C++0x TESTS 50 62 0 2600
8534913 zshi E Nov. 3, 2014, 11:58 a.m. OK GNU C++0x TESTS 50 62 0 2600
6829586 orzxyz111 E June 7, 2014, 3:15 a.m. OK GNU C++0x TESTS 50 92 204800 2600
47839850 luogu_bot3 E Jan. 2, 2019, 11:10 a.m. OK GNU C++11 TESTS 50 30 0 2600
47839780 zck E Jan. 2, 2019, 11:07 a.m. OK GNU C++11 TESTS 50 30 0 2600
27520575 754986421653 E June 2, 2017, 9:51 a.m. OK GNU C++11 TESTS 50 30 0 2600
16015427 zaqwsx E Feb. 14, 2016, 9:13 a.m. OK GNU C++11 TESTS 50 30 0 2600
14570343 stefanzzz E Nov. 30, 2015, 12:41 p.m. OK GNU C++11 TESTS 50 30 0 2600
11708036 zld3794955 E June 22, 2015, 11:04 a.m. OK GNU C++11 TESTS 50 30 0 2600
26466864 vjudge3 E April 18, 2017, 1:51 a.m. OK GNU C++11 TESTS 50 30 1945600 2600
17129935 freebsdx E April 2, 2016, 12:27 p.m. OK GNU C++11 TESTS 50 30 2048000 2600
17415661 AbstractKangaroo E April 21, 2016, 7:29 a.m. OK GNU C++11 TESTS 50 30 2355200 2600
38910585 rushcheyo E June 3, 2018, 5:50 a.m. OK GNU C++11 TESTS 50 60 3584000 2600
23032280 jasonvictoryan E Dec. 16, 2016, 2:49 p.m. OK GNU C++14 TESTS 50 30 0 2600
23662042 Ali.Pi E Jan. 9, 2017, 7:51 a.m. OK GNU C++14 TESTS 50 30 1945600 2600
34577286 boook E Jan. 26, 2018, 1:44 p.m. OK GNU C++14 TESTS 50 30 2252800 2600
57889847 newbiegcz E July 28, 2019, 11:24 a.m. OK GNU C++14 TESTS 50 60 0 2600
51682751 jslijin E March 22, 2019, 1:21 p.m. OK GNU C++14 TESTS 50 60 307200 2600
56269409 RedStar_13 E June 29, 2019, 11:29 a.m. OK GNU C++14 TESTS 50 62 0 2600
69882771 xzt_2 E Jan. 31, 2020, 7:01 a.m. OK GNU C++14 TESTS 50 62 204800 2600
31924375 vlad.cioaba E Oct. 31, 2017, 2:31 p.m. OK GNU C++14 TESTS 50 62 204800 2600
67200566 ElangBondol E Dec. 19, 2019, 10:46 a.m. OK GNU C++14 TESTS 50 62 307200 2600
23379294 abeker E Dec. 28, 2016, 1:54 p.m. OK GNU C++14 TESTS 50 62 1945600 2600
68097590 xiaowuc1 E Jan. 2, 2020, 10:12 p.m. OK GNU C++17 TESTS 50 60 0 2600
62976246 hjk1030 E Oct. 20, 2019, 8:41 a.m. OK GNU C++17 TESTS 50 62 0 2600
62204168 -is-this-fft- E Oct. 9, 2019, 12:48 p.m. OK GNU C++17 TESTS 50 62 0 2600
45278044 tkj E Nov. 4, 2018, 12:11 p.m. OK GNU C++17 TESTS 50 62 0 2600
44032114 tkj E Oct. 9, 2018, 11:20 a.m. OK GNU C++17 TESTS 50 62 0 2600
45271759 tkj E Nov. 4, 2018, 8:51 a.m. OK GNU C++17 TESTS 50 62 32051200 2600
56849435 mocania E July 11, 2019, 3:02 p.m. OK GNU C++17 TESTS 50 312 4096000 2600
3128203 uwi E Feb. 14, 2013, 11:48 a.m. OK Java 6 TESTS 50 93 0 2600
3119840 winger E Feb. 13, 2013, 4:44 p.m. OK Java 6 TESTS 50 93 2252800 2600
3125449 niyaznigmatul E Feb. 13, 2013, 10:24 p.m. OK Java 7 TESTS 50 93 204800 2600
3120082 izban E Feb. 13, 2013, 4:47 p.m. OK MS C++ TESTS 50 15 2662400 2600
3123937 RAD E Feb. 13, 2013, 6:35 p.m. OK MS C++ TESTS 50 15 3993600 2600
3125606 Shef E Feb. 13, 2013, 11:30 p.m. OK MS C++ TESTS 50 15 8396800 2600
3122954 SergeyRogulenko E Feb. 13, 2013, 5:23 p.m. OK MS C++ TESTS 50 62 8908800 2600
3126728 XilinX E Feb. 14, 2013, 6:40 a.m. OK MS C++ TESTS 50 406 4096000 2600
3263305 daidailanlan E March 7, 2013, 6:28 p.m. OK Python 2 TESTS 50 62 0 2600
35856838 ______u______ E March 2, 2018, 8:28 p.m. OK Python 2 TESTS 50 154 4608000 2600
35856552 ______n______ E March 2, 2018, 8:22 p.m. OK Python 2 TESTS 50 154 4608000 2600
35856017 _____i_____ E March 2, 2018, 8:12 p.m. OK Python 2 TESTS 50 154 4608000 2600
35855979 _____k_____ E March 2, 2018, 8:11 p.m. OK Python 2 TESTS 50 154 4608000 2600
35847186 ______k______ E March 2, 2018, 4:40 p.m. OK Python 2 TESTS 50 154 4608000 2600
35847182 ______h______ E March 2, 2018, 4:40 p.m. OK Python 2 TESTS 50 154 4608000 2600
35844463 ______i______ E March 2, 2018, 3:30 p.m. OK Python 2 TESTS 50 154 4608000 2600
35842519 ______M______ E March 2, 2018, 2:55 p.m. OK Python 2 TESTS 50 154 4608000 2600

remove filters

Back to search problems