Divide by Zero 2017 and Codeforces Round 399 (Div. 1 + Div. 2, combined)

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
768 Divide by Zero 2017 and Codeforces Round 399 (Div. 1 + Div. 2, combined) FINISHED False 9600 244216499 Feb. 20, 2017, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2986 ) E Game of Stones PROGRAMMING bitmasks dp games 2000

B'Sam has been teaching Jon the Game of Stones to sharpen his mind and help him devise a strategy to fight the white walkers. The rules of this game are quite simple: Now Jon believes that he is ready for battle, but Sam does not think so. To prove his argument, Sam suggested that they play a modified version of the game. In this modified version, no move can be made more than once on a pile. For example, if 4 stones are removed from a pile, 4 stones cannot be removed from that pile again. Sam sets up the game and makes the first move. Jon believes that Sam is just trying to prevent him from going to battle. Jon wants to know if he can win if both play optimally. First line consists of a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the number of piles. Each of next n lines contains an integer si (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89si xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8960) -- the number of stones in i-th pile. Print a single line containing "YES" (without quotes) if Jon wins, otherwise print "NO" (without quotes) In the first case, Sam removes all the stones and Jon loses. In second case, the following moves are possible by Sam: In each of these cases, last move can be made by Jon to win the game as follows: '...

Tutorials

Editorial Divide by Zero and Codeforces Round #399 (Div. 1+2, combined)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
24846354 Sanja E Feb. 20, 2017, 5:50 p.m. OK FPC TESTS 71 140 1638400 2000
24848705 MrProgramist E Feb. 20, 2017, 6:15 p.m. OK FPC TESTS 71 155 1638400 2000
39412847 rainboy E June 19, 2018, 1:48 p.m. OK GNU C TESTS 71 156 0 2000
30786475 eduardo_s E Sept. 27, 2017, 6:29 p.m. OK GNU C TESTS 71 187 3993600 2000
39358259 rainboy E June 18, 2018, 2:04 p.m. OK GNU C TESTS 71 265 27852800 2000
26917755 vjudge2 E May 7, 2017, 7:04 a.m. OK GNU C++ TESTS 71 30 0 2000
34187296 emoairx E Jan. 15, 2018, 2:16 a.m. OK GNU C++ TESTS 71 30 1945600 2000
26918022 vjudge1 E May 7, 2017, 7:20 a.m. OK GNU C++ TESTS 71 31 0 2000
27159702 thhyj E May 16, 2017, 12:49 p.m. OK GNU C++ TESTS 71 31 0 2000
26957803 vjudge3 E May 8, 2017, 1:36 p.m. OK GNU C++ TESTS 71 31 0 2000
26924746 vjudge1 E May 7, 2017, 1:49 p.m. OK GNU C++ TESTS 71 31 0 2000
26921555 Chenhongkan E May 7, 2017, 10:51 a.m. OK GNU C++ TESTS 71 31 0 2000
26917771 vjudge2 E May 7, 2017, 7:05 a.m. OK GNU C++ TESTS 71 31 0 2000
24906259 doriko E Feb. 23, 2017, 1:04 a.m. OK GNU C++ TESTS 71 31 1945600 2000
28130330 King_of_Paladins E June 29, 2017, 3:04 a.m. OK GNU C++ TESTS 71 31 1945600 2000
53734587 vjudge3 E May 4, 2019, 8:49 a.m. OK GNU C11 TESTS 71 140 0 2000
54062151 vjudge1 E May 13, 2019, 11:43 a.m. OK GNU C11 TESTS 71 140 3993600 2000
24856794 lxambulance E Feb. 20, 2017, 10:33 p.m. OK GNU C++11 TESTS 71 30 2867200 2000
31671708 Shavkat_Aminov E Oct. 24, 2017, 7:09 a.m. OK GNU C++11 TESTS 71 30 6553600 2000
59639072 Adelard E Aug. 28, 2019, 11:37 p.m. OK GNU C++11 TESTS 71 31 0 2000
54502450 luogu_bot4 E May 22, 2019, 11:20 p.m. OK GNU C++11 TESTS 71 31 0 2000
26924777 LIN452 E May 7, 2017, 1:51 p.m. OK GNU C++11 TESTS 71 31 0 2000
40982424 ReaLNero1 E July 30, 2018, 6:25 p.m. OK GNU C++11 TESTS 71 31 819200 2000
29639286 NOIRP E Aug. 21, 2017, 8:53 a.m. OK GNU C++11 TESTS 71 31 1024000 2000
28131403 AkaneSasu E June 29, 2017, 4:35 a.m. OK GNU C++11 TESTS 71 31 1945600 2000
34187288 emoairx E Jan. 15, 2018, 2:15 a.m. OK GNU C++11 TESTS 71 31 1945600 2000
25305707 rxdoi E March 7, 2017, 1:13 a.m. OK GNU C++11 TESTS 71 31 2150400 2000
37030829 Linkus E April 6, 2018, 7:52 p.m. OK GNU C++14 TESTS 71 31 3379200 2000
53478085 vjudge4 E April 28, 2019, 5:09 p.m. OK GNU C++14 TESTS 71 139 0 2000
53472622 vjudge2 E April 28, 2019, 1:35 p.m. OK GNU C++14 TESTS 71 140 0 2000
26829842 yylidiw E May 4, 2017, 7:23 a.m. OK GNU C++14 TESTS 71 140 0 2000
30791299 itsStrobe E Sept. 27, 2017, 10:45 p.m. OK GNU C++14 TESTS 71 140 409600 2000
24958763 khatribiru E Feb. 24, 2017, 8:32 a.m. OK GNU C++14 TESTS 71 140 1945600 2000
53472837 Kevin00 E April 28, 2019, 1:42 p.m. OK GNU C++14 TESTS 71 155 0 2000
27701643 LoveYayoi E June 10, 2017, 7:25 a.m. OK GNU C++14 TESTS 71 155 0 2000
24856959 ielenik E Feb. 20, 2017, 10:45 p.m. OK GNU C++14 TESTS 71 155 2048000 2000
24860531 Pollux E Feb. 21, 2017, 3:51 a.m. OK GNU C++14 TESTS 71 155 86118400 2000
44269885 iphreetom E Oct. 13, 2018, 6:31 p.m. OK GNU C++17 TESTS 71 46 5324800 2000
57201195 vjudge4 E July 17, 2019, 1:47 p.m. OK GNU C++17 TESTS 71 140 0 2000
52019904 zqy1018 E March 30, 2019, 12:11 p.m. OK GNU C++17 TESTS 71 140 0 2000
48516730 vjudge4 E Jan. 18, 2019, 4:46 a.m. OK GNU C++17 TESTS 71 155 0 2000
68358257 kostia244 E Jan. 7, 2020, 1:02 p.m. OK GNU C++17 TESTS 71 155 204800 2000
56688329 g-soares E July 8, 2019, 1:38 a.m. OK GNU C++17 TESTS 71 171 0 2000
41271944 zck Kananix E Aug. 6, 2018, 10:56 a.m. OK GNU C++17 TESTS 71 171 307200 2000
48516802 vjudge2 E Jan. 18, 2019, 4:50 a.m. OK GNU C++17 TESTS 71 187 307200 2000
68107651 Zhou_JK E Jan. 3, 2020, 7:59 a.m. OK GNU C++17 TESTS 71 202 0 2000
66142693 vjudge2 E Dec. 1, 2019, 3:09 p.m. OK GNU C++17 TESTS 71 202 0 2000
57457268 RedEnums E July 21, 2019, 12:09 p.m. OK Java 8 TESTS 71 124 0 2000
25123736 U_Square E March 1, 2017, 1 p.m. OK Java 8 TESTS 71 124 20787200 2000
25052275 RP_9 E Feb. 26, 2017, 11:45 a.m. OK Java 8 TESTS 71 139 20582400 2000
24846843 mathmaniac E Feb. 20, 2017, 5:55 p.m. OK Java 8 TESTS 71 140 20582400 2000
24846647 kenkoooo E Feb. 20, 2017, 5:52 p.m. OK Java 8 TESTS 71 155 20275200 2000
24995031 IgorKoval E Feb. 24, 2017, 8:18 p.m. OK Java 8 TESTS 71 155 20582400 2000
24849308 guptautkarsh028 E Feb. 20, 2017, 6:22 p.m. OK Java 8 TESTS 71 155 20582400 2000
24994920 IgorKoval E Feb. 24, 2017, 8:14 p.m. OK Java 8 TESTS 71 170 20582400 2000
24870660 kunalk E Feb. 21, 2017, 12:16 p.m. OK Java 8 TESTS 71 171 20480000 2000
24870625 kunal_khatri E Feb. 21, 2017, 12:15 p.m. OK Java 8 TESTS 71 171 20480000 2000
24861843 og.kostya E Feb. 21, 2017, 5:22 a.m. OK MS C# TESTS 71 155 15257600 2000
53698260 vjudge5 E May 3, 2019, 8:53 a.m. OK MS C++ TESTS 71 124 0 2000
53601060 vjudge1 E May 1, 2019, 7:42 a.m. OK MS C++ TESTS 71 124 0 2000
53463494 vjudge2 E April 28, 2019, 8:42 a.m. OK MS C++ TESTS 71 124 0 2000
28824284 vjudge3 E July 24, 2017, 12:31 p.m. OK MS C++ TESTS 71 124 2048000 2000
59207669 vjudge1 E Aug. 21, 2019, 7:30 a.m. OK MS C++ TESTS 71 139 3993600 2000
58479306 1970966462 E Aug. 9, 2019, 4:37 a.m. OK MS C++ TESTS 71 140 0 2000
53789617 vjudge3 E May 5, 2019, 12:07 p.m. OK MS C++ TESTS 71 140 0 2000
53743941 vjudge5 E May 4, 2019, 3:30 p.m. OK MS C++ TESTS 71 140 0 2000
48887576 vjudge1 E Jan. 24, 2019, 12:54 p.m. OK MS C++ TESTS 71 140 0 2000
48884008 vjudge2 E Jan. 24, 2019, 11:35 a.m. OK MS C++ TESTS 71 140 0 2000
53734820 CoachXP E May 4, 2019, 8:57 a.m. OK MS C++ 2017 TESTS 71 218 0 2000
63954915 YHHxBULIATANIA E Nov. 1, 2019, 12:34 a.m. OK MS C++ 2017 TESTS 71 233 819200 2000
63955004 YHHxBULIATANIA E Nov. 1, 2019, 12:39 a.m. OK MS C++ 2017 TESTS 71 249 0 2000
24856523 rek E Feb. 20, 2017, 10:12 p.m. OK PyPy 2 TESTS 71 998 27648000 2000
33907531 madn E Jan. 4, 2018, 4:47 p.m. OK PyPy 3 TESTS 71 1341 30412800 2000
42826502 rookzeno E Sept. 13, 2018, 10:32 a.m. OK PyPy 3 TESTS 71 2995 66969600 2000
24862266 Djok216 E Feb. 21, 2017, 5:47 a.m. OK Python 2 TESTS 71 1154 20992000 2000
24856454 rek E Feb. 20, 2017, 10:08 p.m. OK Python 2 TESTS 71 1481 25395200 2000
24856499 rek E Feb. 20, 2017, 10:11 p.m. OK Python 2 TESTS 71 1778 25395200 2000
24856421 rek E Feb. 20, 2017, 10:06 p.m. OK Python 2 TESTS 71 1840 25395200 2000
31689557 yugle7 E Oct. 24, 2017, 4:46 p.m. OK Python 3 TESTS 71 2448 5529600 2000
27160591 xehoth E May 16, 2017, 1:26 p.m. OK Python 3 TESTS 71 2651 0 2000
24848058 mio_h E Feb. 20, 2017, 6:07 p.m. OK Rust TESTS 71 249 22220800 2000

remove filters

Back to search problems