Codeforces Beta Round 51

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
55 Codeforces Beta Round 51 FINISHED False 7200 436831199 Jan. 14, 2011, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1655 ) C Pie or die PROGRAMMING games 1900

B'Volodya and Vlad play the following game. There are k pies at the cells of n xe2 x80 x89 xe2 x80 x89 xc3 x97 xe2 x80 x89 xe2 x80 x89m board. Each turn Volodya moves one pie to the neighbouring (by side) cell. If the pie lies at the border of the board then Volodya can move it outside the board, get the pie and win. After Volodya 's move, Vlad bans some edge at the border of the board of length 1 (between two knots of the board) so that Volodya is not able to move the pie outside the board through this edge anymore. The question is: will Volodya win this game? We suppose both players follow the optimal strategy. First line contains 3 integers, separated by space: 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 -- dimensions of the board and 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 -- the number of pies. Each of the next k lines contains 2 integers, separated by space: 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m -- coordinates of the corresponding pie. There could be more than one pie at a cell. Output only one word: "YES" -- if Volodya wins, "NO" -- otherwise.'...

Tutorials

Round 51, A

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3173846 AleksanderBalobanov C Feb. 22, 2013, 7:04 p.m. OK Delphi TESTS 75 15 102400 1900
252364 ruban C Jan. 15, 2011, 2:58 a.m. OK Delphi TESTS 75 30 819200 1900
250597 Hitrez C Jan. 14, 2011, 9:18 a.m. OK Delphi TESTS 75 30 819200 1900
274411 BaJIuK C Feb. 3, 2011, 3:34 p.m. OK Delphi TESTS 75 30 819200 1900
276893 evg-zhabotinsky C Feb. 7, 2011, 4:46 p.m. OK Delphi TESTS 75 30 819200 1900
250825 PanZverski C Jan. 14, 2011, 9:32 a.m. OK Delphi TESTS 75 30 921600 1900
371162 ivanr.nk C April 6, 2011, 6:48 p.m. OK Delphi TESTS 75 30 921600 1900
250354 svnlog C Jan. 14, 2011, 9:03 a.m. OK Delphi TESTS 75 30 921600 1900
250884 MihailTyomkin C Jan. 14, 2011, 9:35 a.m. OK Delphi TESTS 75 50 921600 1900
23330856 upfeed C Dec. 26, 2016, 1:17 a.m. OK Delphi TESTS 75 60 2560000 1900
3991903 Omelianenko C June 29, 2013, 1:45 p.m. OK FPC TESTS 75 15 102400 1900
251344 vilcheuski C Jan. 14, 2011, 10:26 a.m. OK FPC TESTS 75 30 1024000 1900
337314 BIT C March 14, 2011, 8:39 p.m. OK FPC TESTS 75 30 1024000 1900
330145 CherryTree C March 10, 2011, 2:04 p.m. OK FPC TESTS 75 30 1024000 1900
274809 Alchemist C Feb. 4, 2011, 9:34 a.m. OK FPC TESTS 75 30 1024000 1900
252973 Mark_tven C Jan. 15, 2011, 7:27 p.m. OK FPC TESTS 75 30 1024000 1900
251470 sevenkplus C Jan. 14, 2011, 11:02 a.m. OK FPC TESTS 75 30 1024000 1900
251349 Sereja C Jan. 14, 2011, 10:26 a.m. OK FPC TESTS 75 30 1024000 1900
249966 vlad107 C Jan. 14, 2011, 8:44 a.m. OK FPC TESTS 75 30 1024000 1900
1952610 scorpion C July 30, 2012, 12:32 p.m. OK FPC TESTS 75 30 1228800 1900
4110222 JoeyWheeler C July 20, 2013, 7:16 a.m. OK GNU C TESTS 75 15 0 1900
5130613 Stomach_ache C Nov. 17, 2013, 11:36 a.m. OK GNU C TESTS 75 30 0 1900
708098 kawatea C Sept. 18, 2011, 11:43 p.m. OK GNU C TESTS 75 30 1331200 1900
252460 LayCurse C Jan. 15, 2011, 5:32 a.m. OK GNU C TESTS 75 30 1331200 1900
4067250 abczz C July 14, 2013, 6:09 a.m. OK GNU C++ TESTS 75 15 0 1900
4028742 sd0061 C July 5, 2013, 10:05 p.m. OK GNU C++ TESTS 75 15 0 1900
4022677 AlexJH C July 4, 2013, 5:38 p.m. OK GNU C++ TESTS 75 15 0 1900
3960761 hoco C June 25, 2013, 4:12 p.m. OK GNU C++ TESTS 75 15 0 1900
3960654 M_O_H_S_E_N C June 25, 2013, 3:46 p.m. OK GNU C++ TESTS 75 15 0 1900
3829088 RHman16 C June 6, 2013, 7:27 p.m. OK GNU C++ TESTS 75 15 0 1900
3732104 klavisha C May 18, 2013, 4:51 a.m. OK GNU C++ TESTS 75 15 0 1900
3669516 Choojae C May 4, 2013, 2:52 p.m. OK GNU C++ TESTS 75 15 0 1900
3559180 juancate C April 18, 2013, 6:45 a.m. OK GNU C++ TESTS 75 15 0 1900
3361345 kvtoraman C March 20, 2013, 3:21 p.m. OK GNU C++ TESTS 75 15 0 1900
8552151 ArtinTD C Nov. 4, 2014, 9:23 p.m. OK GNU C++0x TESTS 75 30 0 1900
8556232 MamZi C Nov. 5, 2014, 9:42 a.m. OK GNU C++0x TESTS 75 30 0 1900
5703382 delta_4d C Jan. 16, 2014, 1:35 p.m. OK GNU C++0x TESTS 75 30 0 1900
4220006 moji C Aug. 3, 2013, 8:41 a.m. OK GNU C++0x TESTS 75 30 0 1900
615369 Archon.JK C Aug. 19, 2011, 12:54 p.m. OK GNU C++0x TESTS 75 30 1331200 1900
8551832 aliasadiiii C Nov. 4, 2014, 8:38 p.m. OK GNU C++0x TESTS 75 60 0 1900
7327179 a654889339 C Aug. 2, 2014, 10:04 a.m. OK GNU C++0x TESTS 75 60 0 1900
10304412 I_love_Hoang_Yen C March 16, 2015, 7:03 p.m. OK GNU C++0x TESTS 75 62 0 1900
9817896 OrzIgnorance C Feb. 13, 2015, 3:48 p.m. OK GNU C++0x TESTS 75 62 0 1900
8055301 vjudge3 C Oct. 2, 2014, 9:30 a.m. OK GNU C++0x TESTS 75 62 0 1900
49207602 namratha_253 C Jan. 30, 2019, 2:24 p.m. OK GNU C11 TESTS 75 62 0 1900
44860014 HydroxideX C Oct. 25, 2018, 3:21 p.m. OK GNU C11 TESTS 75 62 0 1900
27314442 Amateur_Player C May 24, 2017, 5:35 a.m. OK GNU C++11 TESTS 75 30 0 1900
27303907 Cache C May 23, 2017, 3:06 p.m. OK GNU C++11 TESTS 75 30 0 1900
22217528 Tes_peach C Nov. 15, 2016, 6:32 a.m. OK GNU C++11 TESTS 75 30 0 1900
21653303 Black C Oct. 21, 2016, 9:11 p.m. OK GNU C++11 TESTS 75 30 0 1900
21653224 Omar C Oct. 21, 2016, 9:06 p.m. OK GNU C++11 TESTS 75 30 0 1900
20998293 compiler_101 C Sept. 29, 2016, 4:40 p.m. OK GNU C++11 TESTS 75 30 0 1900
20330489 ershivasoni C Sept. 1, 2016, 8:11 p.m. OK GNU C++11 TESTS 75 30 0 1900
19588663 aka.Foda C Aug. 2, 2016, 11:52 p.m. OK GNU C++11 TESTS 75 30 0 1900
27894317 khaled.hefnawy C June 19, 2017, 2:51 a.m. OK GNU C++11 TESTS 75 30 0 1900
27893308 Hagrass11 C June 19, 2017, 1:20 a.m. OK GNU C++11 TESTS 75 30 0 1900
30328908 amrinder70 C Sept. 14, 2017, 1 p.m. OK GNU C++14 TESTS 75 30 0 1900
30233915 XsliferX C Sept. 9, 2017, 8:45 p.m. OK GNU C++14 TESTS 75 30 0 1900
29941654 Flash-boy C Aug. 31, 2017, 12:14 p.m. OK GNU C++14 TESTS 75 30 0 1900
22852862 vjudge1 C Dec. 10, 2016, 10:41 a.m. OK GNU C++14 TESTS 75 30 0 1900
21653898 HassanAzzam C Oct. 21, 2016, 9:59 p.m. OK GNU C++14 TESTS 75 30 0 1900
21110957 abhi_1595 C Oct. 2, 2016, 9:48 a.m. OK GNU C++14 TESTS 75 30 0 1900
20324133 2016 C Sept. 1, 2016, 2:25 p.m. OK GNU C++14 TESTS 75 30 0 1900
32143623 AMR-KELEG C Nov. 8, 2017, 5:48 p.m. OK GNU C++14 TESTS 75 30 0 1900
31913814 3_Problems_Everyday C Oct. 31, 2017, 8:02 a.m. OK GNU C++14 TESTS 75 30 0 1900
32221126 jianba C Nov. 11, 2017, 1:45 p.m. OK GNU C++14 TESTS 75 30 102400 1900
38261062 ruo C May 15, 2018, 8:20 a.m. OK GNU C++17 TESTS 75 30 3686400 1900
69733229 Be_dos C Jan. 29, 2020, 2 p.m. OK GNU C++17 TESTS 75 60 0 1900
52720197 Tomx C April 13, 2019, 7:22 p.m. OK GNU C++17 TESTS 75 60 0 1900
58155454 vjudge4 C Aug. 2, 2019, 5:23 a.m. OK GNU C++17 TESTS 75 60 819200 1900
38937043 yaksha C June 4, 2018, 7:16 a.m. OK GNU C++17 TESTS 75 60 3379200 1900
67071820 Moon_human C Dec. 17, 2019, 1:02 p.m. OK GNU C++17 TESTS 75 62 0 1900
69468102 .Data_Nerd. C Jan. 24, 2020, 1:37 p.m. OK GNU C++17 TESTS 75 62 0 1900
69459653 Hoshi08 C Jan. 24, 2020, 10:09 a.m. OK GNU C++17 TESTS 75 62 0 1900
68751627 himanshugarg1703 C Jan. 14, 2020, 6:52 a.m. OK GNU C++17 TESTS 75 62 0 1900
68325262 kostia244 C Jan. 6, 2020, 4:38 p.m. OK GNU C++17 TESTS 75 62 0 1900
759013 mkut C Oct. 14, 2011, 11:30 a.m. OK Haskell TESTS 75 30 2048000 1900
331015 enots C March 11, 2011, 4:06 p.m. OK Haskell TESTS 75 30 2048000 1900
1084704 fluppy K.F.Cat C Jan. 19, 2012, 6:29 a.m. OK Haskell TESTS 75 30 2048000 1900
2631112 DimsFromDergachy C Nov. 23, 2012, 10:04 a.m. OK Haskell TESTS 75 31 0 1900
2419394 MOSJAVA C Oct. 23, 2012, 8:55 p.m. OK Java 6 TESTS 75 78 0 1900
251895 cerealguy C Jan. 14, 2011, 2:01 p.m. OK Java 6 TESTS 75 80 43417600 1900
250177 SergeyLazarev C Jan. 14, 2011, 8:54 a.m. OK Java 6 TESTS 75 80 43417600 1900
1117822 Ahmed_Salama C Jan. 25, 2012, 11:29 p.m. OK Java 6 TESTS 75 90 43110400 1900
367305 adavydow C March 30, 2011, 2 p.m. OK Java 6 TESTS 75 90 43315200 1900
277603 jonosuke C Feb. 9, 2011, 10:01 a.m. OK Java 6 TESTS 75 90 43417600 1900
253600 pius_88 C Jan. 16, 2011, 10:12 p.m. OK Java 6 TESTS 75 90 43417600 1900
252142 Slamur C Jan. 14, 2011, 7:19 p.m. OK Java 6 TESTS 75 90 43417600 1900
250602 wistful23 C Jan. 14, 2011, 9:18 a.m. OK Java 6 TESTS 75 90 43417600 1900
250558 tl268 C Jan. 14, 2011, 9:16 a.m. OK Java 6 TESTS 75 90 43417600 1900
2022599 jiangzhijie C Aug. 17, 2012, 6:42 p.m. OK Java 7 TESTS 75 130 45875200 1900
13312386 alibaba C Sept. 30, 2015, 11:11 a.m. OK Java 7 TESTS 75 156 0 1900
4412384 DoublePointer C Sept. 5, 2013, 7:39 p.m. OK Java 7 TESTS 75 156 0 1900
4218814 santjuan C Aug. 2, 2013, 9:53 p.m. OK Java 7 TESTS 75 156 0 1900
5827061 cupcup C Jan. 28, 2014, 5:24 p.m. OK Java 7 TESTS 75 186 0 1900
7692295 mengshangqi C Sept. 6, 2014, 7:16 a.m. OK Java 7 TESTS 75 218 0 1900
4358210 Navigabimus C Aug. 27, 2013, 5:09 p.m. OK Java 7 TESTS 75 218 0 1900
15283705 Juniorandrade C Jan. 10, 2016, 7:43 p.m. OK Java 7 TESTS 75 218 0 1900
17027348 kws4679 C March 30, 2016, 2:08 a.m. OK Java 7 TESTS 75 218 39321600 1900
13319693 alibaba C Sept. 30, 2015, 5:17 p.m. OK Java 8 TESTS 75 218 0 1900
56187833 gaidash C June 28, 2019, 5:59 a.m. OK Java 8 TESTS 75 248 0 1900
68021375 O_E C Dec. 31, 2019, 11:31 p.m. OK Java 8 TESTS 75 248 0 1900
57510897 xiaolin2 C July 22, 2019, 1:46 p.m. OK Java 8 TESTS 75 248 0 1900
24471683 Hoda_Hisham C Feb. 6, 2017, 4 p.m. OK Java 8 TESTS 75 248 20275200 1900
54193723 xiaolin2 C May 15, 2019, 3:24 p.m. OK Java 8 TESTS 75 278 0 1900
24275591 Kharouba C Jan. 30, 2017, 7:05 p.m. OK Java 8 TESTS 75 278 20275200 1900
57828480 xiaolin2 C July 27, 2019, 4:54 a.m. OK Java 8 TESTS 75 280 0 1900
57070692 xiaolin3 C July 15, 2019, 2:24 a.m. OK Java 8 TESTS 75 280 0 1900
56026045 xiaolin2 C June 25, 2019, 6:56 a.m. OK Java 8 TESTS 75 280 0 1900
249863 tanzaku C Jan. 14, 2011, 8:39 a.m. OK Mono C# TESTS 75 140 39321600 1900
250276 Hadi_Asiaie C Jan. 14, 2011, 8:59 a.m. OK Mono C# TESTS 75 220 6758400 1900
251173 fujiyama C Jan. 14, 2011, 9:53 a.m. OK Mono C# TESTS 75 220 6758400 1900
20156285 DigitalArtistKz C Aug. 25, 2016, 2:10 p.m. OK MS C# TESTS 75 124 11468800 1900
2927719 snake13 C Jan. 15, 2013, 5:26 p.m. OK MS C++ TESTS 75 15 0 1900
4147648 tomas.svab C July 24, 2013, 2:06 p.m. OK MS C++ TESTS 75 15 0 1900
4867018 artemuk C Oct. 24, 2013, 6:49 p.m. OK MS C++ TESTS 75 30 0 1900
7015088 M0sTik C July 5, 2014, 9:05 a.m. OK MS C++ TESTS 75 30 0 1900
7000056 M0sTik C July 2, 2014, 11:20 p.m. OK MS C++ TESTS 75 30 0 1900
4866795 Silent_coder C Oct. 24, 2013, 6:08 p.m. OK MS C++ TESTS 75 30 0 1900
27649657 Tampere C June 7, 2017, 2:14 p.m. OK MS C++ TESTS 75 30 102400 1900
526988 vjudge1 C July 3, 2011, 12:31 p.m. OK MS C++ TESTS 75 30 1331200 1900
527029 vjudge3 C July 3, 2011, 12:54 p.m. OK MS C++ TESTS 75 30 1331200 1900
338903 youdianlei C March 17, 2011, 6:50 a.m. OK MS C++ TESTS 75 30 1331200 1900
62970484 vjudge3 C Oct. 20, 2019, 6:43 a.m. OK MS C++ 2017 TESTS 75 62 0 1900
62971298 vjudge2 C Oct. 20, 2019, 7:01 a.m. OK MS C++ 2017 TESTS 75 62 0 1900
62966883 vjudge5 C Oct. 20, 2019, 5:08 a.m. OK MS C++ 2017 TESTS 75 92 0 1900
63545802 YHHxBULIATANIA C Oct. 27, 2019, 10:29 a.m. OK MS C++ 2017 TESTS 75 92 0 1900
250691 isemenov.progz C Jan. 14, 2011, 9:24 a.m. OK Python 2 TESTS 75 60 2764800 1900
277688 Aleksey C Feb. 9, 2011, 1:02 p.m. OK Python 2 TESTS 75 60 2764800 1900
277686 Aleksey C Feb. 9, 2011, 12:59 p.m. OK Python 2 TESTS 75 60 2764800 1900
253802 avm C Jan. 17, 2011, 9:48 a.m. OK Python 2 TESTS 75 60 2764800 1900
250327 Gassa C Jan. 14, 2011, 9:01 a.m. OK Python 2 TESTS 75 60 2764800 1900
586981 antonkudrin C Aug. 5, 2011, 6:41 p.m. OK Python 2 TESTS 75 60 2867200 1900
3868663 apoorvj C June 12, 2013, 3:01 p.m. OK Python 2 TESTS 75 62 102400 1900
2519468 nealzane C Nov. 7, 2012, 1:26 p.m. OK Python 2 TESTS 75 78 0 1900
250963 -dp- C Jan. 14, 2011, 9:40 a.m. OK Python 2 TESTS 75 80 2764800 1900
249663 zibada C Jan. 14, 2011, 8:30 a.m. OK Python 2 TESTS 75 80 2764800 1900
3933349 alculquicondor C June 21, 2013, 6:16 p.m. OK Python 3 TESTS 75 78 102400 1900
15486991 Eeyore C Jan. 21, 2016, 10:04 p.m. OK Python 3 TESTS 75 124 0 1900
14913841 eddy1021 C Dec. 21, 2015, 2:06 p.m. OK Python 3 TESTS 75 124 0 1900
5628955 serglag C Jan. 6, 2014, 6:49 p.m. OK Python 3 TESTS 75 124 307200 1900
17086778 habibulka C April 1, 2016, 8:25 a.m. OK Python 3 TESTS 75 124 5120000 1900
35781228 Qumeric C Feb. 28, 2018, 10:30 a.m. OK Python 3 TESTS 75 124 5632000 1900
7062836 ItsLastDay C July 11, 2014, 9:27 a.m. OK Python 3 TESTS 75 154 0 1900
59414755 LintuStorm C Aug. 24, 2019, 5:37 p.m. OK Python 3 TESTS 75 248 0 1900
42134115 Mk_Python_v1 C Aug. 26, 2018, 9:27 p.m. OK Python 3 TESTS 75 248 0 1900

remove filters

Back to search problems