Codeforces Round 188 (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
317 Codeforces Round 188 (Div. 1) FINISHED False 7200 366474597 June 14, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1094 ) D Game with Powers PROGRAMMING dp games 2200

B'Vasya and Petya wrote down all integers from 1 to n to play the "powers" game (n can be quite large; however, Vasya and Petya are not confused by this fact). Players choose numbers in turn (Vasya chooses first). If some number x is chosen at the current turn, it is forbidden to choose x or all of its other positive integer powers (that is, x2, x3, ...) at the next turns. For instance, if the number 9 is chosen at the first turn, one cannot choose 9 or 81 later, while it is still allowed to choose 3 or 27. The one who cannot make a move loses. Who wins if both Vasya and Petya play optimally? Input contains single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print the name of the winner -- "Vasya" or "Petya" (without quotes). In the first sample Vasya will choose 1 and win immediately. In the second sample no matter which number Vasya chooses during his first turn, Petya can choose the remaining number and win.'...

Tutorials

Analysis

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3899948 Gassa D June 15, 2013, 8:05 a.m. OK D TESTS 81 46 2662400 2200
3899360 Timur_Keks D June 15, 2013, 5:56 a.m. OK Delphi TESTS 81 15 102400 2200
3901712 zscc D June 15, 2013, 2:21 p.m. OK FPC TESTS 81 15 409600 2200
3896553 Um_nik D June 14, 2013, 6:59 p.m. OK FPC TESTS 81 15 409600 2200
3903500 PeterTong97 D June 16, 2013, 1:40 a.m. OK FPC TESTS 81 15 409600 2200
3896001 vlad107 D June 14, 2013, 6:37 p.m. OK FPC TESTS 81 15 512000 2200
3894833 con_nha_ngheo D June 14, 2013, 5:23 p.m. OK FPC TESTS 81 15 614400 2200
3897112 Omelianenko D June 14, 2013, 8:01 p.m. OK FPC TESTS 81 15 1024000 2200
3897098 Omelianenko D June 14, 2013, 8 p.m. OK FPC TESTS 81 15 1024000 2200
3910687 hiepsieunhan D June 17, 2013, 4:14 p.m. OK FPC TESTS 81 15 2150400 2200
4332997 pal3 D Aug. 24, 2013, 2:31 p.m. OK FPC TESTS 81 30 102400 2200
10224268 403369233 D March 10, 2015, 7:36 a.m. OK FPC TESTS 81 60 102400 2200
4139852 rankalee D July 23, 2013, 9:20 a.m. OK GNU C++ TESTS 81 15 0 2200
4103626 yuxiaobhcs D July 19, 2013, 8:43 a.m. OK GNU C++ TESTS 81 15 0 2200
4007681 ilya.korovin D July 3, 2013, 5:45 p.m. OK GNU C++ TESTS 81 15 0 2200
3969175 jhcmonroy D June 27, 2013, 11:26 p.m. OK GNU C++ TESTS 81 15 0 2200
3936404 seryp D June 22, 2013, 5:22 p.m. OK GNU C++ TESTS 81 15 0 2200
3933718 Silent_coder D June 21, 2013, 8 p.m. OK GNU C++ TESTS 81 15 0 2200
3930437 RNS D June 21, 2013, 1:10 a.m. OK GNU C++ TESTS 81 15 0 2200
3929335 BSBandme D June 20, 2013, 3:55 p.m. OK GNU C++ TESTS 81 15 0 2200
3922852 Endagorion D June 20, 2013, 5 a.m. OK GNU C++ TESTS 81 15 0 2200
3916273 iceman91 D June 19, 2013, 6:22 a.m. OK GNU C++ TESTS 81 15 0 2200
4145968 ArkChar D July 24, 2013, 8:59 a.m. OK GNU C++0x TESTS 81 15 0 2200
3902942 mrtempo D June 15, 2013, 8:46 p.m. OK GNU C++0x TESTS 81 15 0 2200
3900980 yermak0v D June 15, 2013, 11:40 a.m. OK GNU C++0x TESTS 81 15 0 2200
3901829 andreihh D June 15, 2013, 2:54 p.m. OK GNU C++0x TESTS 81 15 102400 2200
3892830 MinakoKojima D June 14, 2013, 4:58 p.m. OK GNU C++0x TESTS 81 15 102400 2200
3890261 Sisu D June 14, 2013, 4:29 p.m. OK GNU C++0x TESTS 81 15 102400 2200
3912948 freak93 D June 18, 2013, 9:02 a.m. OK GNU C++0x TESTS 81 15 102400 2200
3907624 MinakoKojima D June 16, 2013, 10:48 p.m. OK GNU C++0x TESTS 81 15 102400 2200
3892223 135678942570 D June 14, 2013, 4:50 p.m. OK GNU C++0x TESTS 81 15 204800 2200
3891168 hockey_for_NOI D June 14, 2013, 4:38 p.m. OK GNU C++0x TESTS 81 15 409600 2200
59965591 rainboy D Sept. 3, 2019, 8:18 p.m. OK GNU C11 TESTS 81 62 0 2200
12721436 kimiyuki D Aug. 27, 2015, 3:42 p.m. OK GNU C++11 TESTS 81 30 0 2200
30981156 .vr D Oct. 4, 2017, 2:24 a.m. OK GNU C++11 TESTS 81 30 0 2200
16683633 ACErupt D March 13, 2016, 1:27 a.m. OK GNU C++11 TESTS 81 30 0 2200
15925272 austin990301 D Feb. 10, 2016, 6:41 a.m. OK GNU C++11 TESTS 81 30 0 2200
15761926 aurinegro D Feb. 3, 2016, 4:13 a.m. OK GNU C++11 TESTS 81 30 0 2200
15181514 ErdemKirez D Jan. 4, 2016, 1:33 p.m. OK GNU C++11 TESTS 81 30 0 2200
22079471 retired_coder D Nov. 6, 2016, 5:09 p.m. OK GNU C++11 TESTS 81 30 102400 2200
16601850 tun D March 8, 2016, 1:23 p.m. OK GNU C++11 TESTS 81 30 102400 2200
15719396 IMAN_GH D Jan. 31, 2016, 8:05 p.m. OK GNU C++11 TESTS 81 30 102400 2200
15260782 yarak D Jan. 8, 2016, 8:59 p.m. OK GNU C++11 TESTS 81 30 102400 2200
29819845 apoorv_kulsh D Aug. 27, 2017, 6:08 a.m. OK GNU C++14 TESTS 81 30 102400 2200
30834485 danya.smelskiy D Sept. 29, 2017, 3:53 p.m. OK GNU C++14 TESTS 81 30 1024000 2200
25356311 DEGwer D March 9, 2017, 9:14 a.m. OK GNU C++14 TESTS 81 30 1945600 2200
23717785 Batman D Jan. 11, 2017, 11:59 a.m. OK GNU C++14 TESTS 81 30 1945600 2200
27542462 VastoLorde95 D June 3, 2017, 11:39 a.m. OK GNU C++14 TESTS 81 30 1945600 2200
25358045 Stomach_ache D March 9, 2017, 11:13 a.m. OK GNU C++14 TESTS 81 30 1945600 2200
28785150 comfi D July 22, 2017, 6:37 p.m. OK GNU C++14 TESTS 81 30 2048000 2200
26076530 Grunt D April 2, 2017, 11:22 a.m. OK GNU C++14 TESTS 81 30 2048000 2200
22159124 Man D Nov. 11, 2016, 7:39 a.m. OK GNU C++14 TESTS 81 30 2048000 2200
36124492 kuppu D March 9, 2018, 5 p.m. OK GNU C++14 TESTS 81 30 2048000 2200
57645155 maxnguyen D July 24, 2019, 2:01 p.m. OK GNU C++17 TESTS 81 62 0 2200
51388887 yhchang3 D March 16, 2019, 8:37 p.m. OK GNU C++17 TESTS 81 62 0 2200
43008044 NourElRashidy D Sept. 17, 2018, 4:58 p.m. OK GNU C++17 TESTS 81 62 0 2200
41458704 licong0558 D Aug. 11, 2018, 7:39 a.m. OK GNU C++17 TESTS 81 62 0 2200
62535794 Phortox D Oct. 13, 2019, 10:19 p.m. OK GNU C++17 TESTS 81 62 0 2200
67413578 Ashishgup D Dec. 22, 2019, 9:07 a.m. OK GNU C++17 TESTS 81 62 102400 2200
60677158 deyan D Sept. 16, 2019, 12:48 p.m. OK GNU C++17 TESTS 81 62 102400 2200
60235717 VodkaInTheJar D Sept. 7, 2019, 6:21 p.m. OK GNU C++17 TESTS 81 62 102400 2200
53646207 IgorL D May 1, 2019, 7:11 p.m. OK GNU C++17 TESTS 81 62 102400 2200
53472279 ruo D April 28, 2019, 1:25 p.m. OK GNU C++17 TESTS 81 62 102400 2200
3929135 hiukim D June 20, 2013, 2:51 p.m. OK Java 6 TESTS 81 93 0 2200
3928282 Sammarize D June 20, 2013, 9:44 a.m. OK Java 6 TESTS 81 93 0 2200
3920780 Ahmed.Ibrahem D June 19, 2013, 2:28 p.m. OK Java 6 TESTS 81 93 2252800 2200
3888767 uwi D June 14, 2013, 4:15 p.m. OK Java 6 TESTS 81 93 2252800 2200
3892512 gilesg D June 14, 2013, 4:54 p.m. OK Java 6 TESTS 81 109 2355200 2200
4314774 hama-du D Aug. 20, 2013, 7:03 a.m. OK Java 6 TESTS 81 248 102400 2200
3909264 DexTrom D June 17, 2013, 10:57 a.m. OK Java 7 TESTS 81 93 0 2200
3896510 riadwaw D June 14, 2013, 6:57 p.m. OK Java 7 TESTS 81 93 0 2200
3896052 qwerty787788 D June 14, 2013, 6:38 p.m. OK Java 7 TESTS 81 93 0 2200
3906441 Ahmed_Salama D June 16, 2013, 4:04 p.m. OK Java 7 TESTS 81 109 0 2200
3892581 chavit D June 14, 2013, 4:55 p.m. OK Java 7 TESTS 81 109 0 2200
3890599 m.radwan D June 14, 2013, 4:32 p.m. OK Java 7 TESTS 81 109 102400 2200
3892747 cerealguy D June 14, 2013, 4:57 p.m. OK Java 7 TESTS 81 125 0 2200
3891035 Egor D June 14, 2013, 4:36 p.m. OK Java 7 TESTS 81 125 0 2200
3953987 Azat_Yusupov D June 24, 2013, 5:47 a.m. OK Java 7 TESTS 81 125 102400 2200
3891031 ivan.metelsky D June 14, 2013, 4:36 p.m. OK Java 7 TESTS 81 171 102400 2200
15201723 AndreiNet D Jan. 6, 2016, 8:58 a.m. OK Java 8 TESTS 81 218 0 2200
17817567 alibaba D May 9, 2016, 9:19 a.m. OK Java 8 TESTS 81 248 20582400 2200
59965592 Dukkha D Sept. 3, 2019, 8:18 p.m. OK Java 8 TESTS 81 280 0 2200
22101984 retired_coder D Nov. 7, 2016, 8:48 p.m. OK Java 8 TESTS 81 280 0 2200
38484040 tmwilliamlin168 D May 21, 2018, 1:05 p.m. OK Java 8 TESTS 81 310 0 2200
19561655 Ahmad_Elsagheer D Aug. 1, 2016, 1:29 p.m. OK Java 8 TESTS 81 310 0 2200
7505977 AlexFetisov D Aug. 19, 2014, 5:56 a.m. OK Java 8 TESTS 81 468 204800 2200
4282726 goryinyich D Aug. 15, 2013, 3:49 p.m. OK MS C# TESTS 81 124 6041600 2200
3913590 alexander-nsk94 D June 18, 2013, noon OK MS C++ TESTS 81 15 0 2200
3913585 alexander-nsk94 D June 18, 2013, 11:59 a.m. OK MS C++ TESTS 81 15 0 2200
3913581 alexander-nsk94 D June 18, 2013, 11:57 a.m. OK MS C++ TESTS 81 15 0 2200
3913578 alexander-nsk94 D June 18, 2013, 11:56 a.m. OK MS C++ TESTS 81 15 0 2200
3913555 alexander-nsk94 D June 18, 2013, 11:50 a.m. OK MS C++ TESTS 81 15 0 2200
3913552 alexander-nsk94 D June 18, 2013, 11:50 a.m. OK MS C++ TESTS 81 15 0 2200
3913546 alexander-nsk94 D June 18, 2013, 11:49 a.m. OK MS C++ TESTS 81 15 0 2200
3913542 alexander-nsk94 D June 18, 2013, 11:48 a.m. OK MS C++ TESTS 81 15 0 2200
3913528 alexander-nsk94 D June 18, 2013, 11:45 a.m. OK MS C++ TESTS 81 15 0 2200
3913517 alexander-nsk94 D June 18, 2013, 11:42 a.m. OK MS C++ TESTS 81 15 0 2200
3917713 hanfei19910905 D June 19, 2013, 1:18 p.m. OK Python 2 TESTS 81 140 2457600 2200
3892404 kevinsogo D June 14, 2013, 4:53 p.m. OK Python 2 TESTS 81 156 1638400 2200
3898348 nwi D June 15, 2013, 1:34 a.m. OK Python 2 TESTS 81 156 2252800 2200
7682737 apia D Sept. 4, 2014, 2:38 p.m. OK Python 2 TESTS 81 186 204800 2200

remove filters

Back to search problems