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
( 5998 ) B Code For 1 PROGRAMMING constructive algorithms dfs and similar divide and conquer 1600

B"Jon fought bravely to rescue the wildlings who were attacked by the white-walkers at Hardhome. On his arrival, Sam tells him that he wants to go to Oldtown to train at the Citadel to become a maester, so he can return and take the deceased Aemon's place as maester of Castle Black. Jon agrees to Sam's proposal and Sam sets off his journey to the Citadel. However becoming a trainee at the Citadel is not a cakewalk and hence the maesters at the Citadel gave Sam a problem to test his eligibility. Initially Sam has a list with a single element n. Then he has to perform certain operations on this list. In each operation Sam must remove any element x, such that x xe2 x80 x89> xe2 x80 x891, from the list and insert at the same position , , sequentially. He must continue with these operations until all the elements in the list are either 0 or 1. Now the masters want the total number of 1s in the range l to r (1-indexed). Sam wants to become a maester but unfortunately he cannot solve this problem. Can you help Sam to pass the eligibility test? The first line contains three integers n, l, r (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89< xe2 x80 x89250, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89- xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, r xe2 x80 x89 xe2 x89 xa5 xe2 x80 x891, l xe2 x80 x89 xe2 x89 xa5 xe2 x80 x891) xe2 x80 x93 initial element and the range l to r. It is guaranteed that r is not greater than the length of the final list. Output the total number of 1s in the range l to r in the final sequence. Consider first example: Elements on positions from 2-nd to 5-th in list is [1, xe2 x80 x891, xe2 x80 x891, xe2 x80 x891]. The number of ones is 4. For the second example: Elements on positions from 3-rd to 10-th in list is [1, xe2 x80 x891, xe2 x80 x891, xe2 x80 x890, xe2 x80 x891, xe2 x80 x890, xe2 x80 x891, xe2 x80 x890]. The number of ones is 5. "...

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
69876308 andybest B Jan. 31, 2020, 4:13 a.m. OK Clang++17 Diagnostics TESTS 33 46 102400 1600
47021810 liusiyu123 B Dec. 15, 2018, 3:14 a.m. OK Clang++17 Diagnostics TESTS 33 46 307200 1600
24853733 TheHedgehog B Feb. 20, 2017, 8:25 p.m. OK Delphi TESTS 33 30 33689600 1600
24852320 Denny178 B Feb. 20, 2017, 6:44 p.m. OK Delphi TESTS 33 46 82739200 1600
24851841 Cabpacob B Feb. 20, 2017, 6:42 p.m. OK Delphi TESTS 33 46 82739200 1600
24897217 StarScreamOwl B Feb. 22, 2017, 4:02 p.m. OK Delphi TESTS 33 78 2560000 1600
29523260 vjudge5 B Aug. 17, 2017, 9:48 a.m. OK FPC TESTS 33 15 0 1600
25097807 lkmcfj B Feb. 28, 2017, 10:29 a.m. OK FPC TESTS 33 15 1638400 1600
24875075 Zeron B Feb. 21, 2017, 3:36 p.m. OK FPC TESTS 33 15 1638400 1600
24870543 Subaru B Feb. 21, 2017, 12:11 p.m. OK FPC TESTS 33 15 1638400 1600
24869526 ultoxtung B Feb. 21, 2017, 11:28 a.m. OK FPC TESTS 33 15 4812800 1600
24867974 prosmgeorg B Feb. 21, 2017, 10:16 a.m. OK FPC TESTS 33 30 1638400 1600
24869395 NikNag B Feb. 21, 2017, 11:22 a.m. OK FPC TESTS 33 30 1740800 1600
53465169 chaorenhaha B April 28, 2019, 9:36 a.m. OK FPC TESTS 33 31 0 1600
40841147 chaorenhaha B July 27, 2018, 9:38 a.m. OK FPC TESTS 33 31 0 1600
24853873 ShavelV B Feb. 20, 2017, 8:26 p.m. OK FPC TESTS 33 31 1740800 1600
35471683 Hydro7 B Feb. 19, 2018, 1:28 p.m. OK GNU C TESTS 33 15 1843200 1600
24910824 jugelizi B Feb. 23, 2017, 7:51 a.m. OK GNU C TESTS 33 15 1843200 1600
29451212 zser B Aug. 14, 2017, 7:22 a.m. OK GNU C TESTS 33 15 1945600 1600
28162324 vjudge1 B June 30, 2017, 2:56 a.m. OK GNU C TESTS 33 15 1945600 1600
28162106 vjudge5 B June 30, 2017, 2:44 a.m. OK GNU C TESTS 33 15 1945600 1600
26789748 vjudge3 B May 1, 2017, 5:27 p.m. OK GNU C TESTS 33 15 1945600 1600
26053195 vjudge3 B April 1, 2017, 12:33 p.m. OK GNU C TESTS 33 15 1945600 1600
24853699 CyberQuantum B Feb. 20, 2017, 8:24 p.m. OK GNU C TESTS 33 15 1945600 1600
27437200 JoeBlow B May 29, 2017, 11:17 p.m. OK GNU C TESTS 33 30 0 1600
24857653 KinKong1 B Feb. 20, 2017, 11:49 p.m. OK GNU C TESTS 33 30 1945600 1600
42196939 vjudge4 B Aug. 28, 2018, 6:52 a.m. OK GNU C++ TESTS 33 15 0 1600
32488036 vjudge4 B Nov. 20, 2017, 2:54 a.m. OK GNU C++ TESTS 33 15 0 1600
32287123 vjudge3 B Nov. 13, 2017, 2:40 p.m. OK GNU C++ TESTS 33 15 0 1600
32274652 vjudge5 B Nov. 13, 2017, 1:52 a.m. OK GNU C++ TESTS 33 15 0 1600
32248001 vjudge4 B Nov. 12, 2017, 4:01 p.m. OK GNU C++ TESTS 33 15 0 1600
32244569 vjudge3 B Nov. 12, 2017, 1:22 p.m. OK GNU C++ TESTS 33 15 0 1600
32219076 vjudge1 B Nov. 11, 2017, 12:16 p.m. OK GNU C++ TESTS 33 15 0 1600
32218410 vjudge1 B Nov. 11, 2017, 11:49 a.m. OK GNU C++ TESTS 33 15 0 1600
32218345 vjudge3 B Nov. 11, 2017, 11:45 a.m. OK GNU C++ TESTS 33 15 0 1600
31822932 vjudge5 B Oct. 28, 2017, 2:48 a.m. OK GNU C++ TESTS 33 15 0 1600
26643409 Gritgrit B April 24, 2017, 2:51 p.m. OK GNU C11 TESTS 33 15 1945600 1600
62772912 vjudge2 B Oct. 17, 2019, 10:53 a.m. OK GNU C11 TESTS 33 30 0 1600
24878823 f2lk6wf90d B Feb. 21, 2017, 6:57 p.m. OK GNU C11 TESTS 33 30 1945600 1600
36341121 wxr031 B March 17, 2018, 3:41 a.m. OK GNU C11 TESTS 33 30 3276800 1600
62818539 luogu_bot5 B Oct. 17, 2019, 3:39 p.m. OK GNU C11 TESTS 33 31 0 1600
62936283 vjudge3 B Oct. 19, 2019, 2:10 p.m. OK GNU C11 TESTS 33 31 0 1600
62909668 vjudge2 B Oct. 19, 2019, 6:55 a.m. OK GNU C11 TESTS 33 31 0 1600
62902180 luogu_bot5 B Oct. 19, 2019, 4:35 a.m. OK GNU C11 TESTS 33 31 0 1600
62869272 vjudge2 B Oct. 18, 2019, 1:15 p.m. OK GNU C11 TESTS 33 31 0 1600
62818604 vjudge3 B Oct. 17, 2019, 3:41 p.m. OK GNU C11 TESTS 33 31 0 1600
30758383 Noureldin B Sept. 26, 2017, 5:20 p.m. OK GNU C++11 TESTS 33 15 0 1600
30913739 Soroush B Oct. 1, 2017, 4:16 p.m. OK GNU C++11 TESTS 33 15 0 1600
31238670 paregrine B Oct. 12, 2017, 11:03 a.m. OK GNU C++11 TESTS 33 15 0 1600
31276687 vicky_coder B Oct. 13, 2017, 2:07 p.m. OK GNU C++11 TESTS 33 15 0 1600
31727130 xiddw B Oct. 26, 2017, 2:47 a.m. OK GNU C++11 TESTS 33 15 0 1600
54653656 codingwarriors B May 26, 2019, 7:01 a.m. OK GNU C++11 TESTS 33 15 0 1600
41338835 Kart B Aug. 8, 2018, 2 p.m. OK GNU C++11 TESTS 33 15 0 1600
32150601 vjudge3 B Nov. 9, 2017, 3:47 a.m. OK GNU C++11 TESTS 33 15 0 1600
31966934 hopkins B Nov. 2, 2017, 3:09 a.m. OK GNU C++11 TESTS 33 15 0 1600
31966104 Gansito144 B Nov. 2, 2017, 1:55 a.m. OK GNU C++11 TESTS 33 15 0 1600
64578857 vjudge5 B Nov. 9, 2019, 11:30 a.m. OK GNU C++14 TESTS 33 15 0 1600
62909283 vjudge4 B Oct. 19, 2019, 6:48 a.m. OK GNU C++14 TESTS 33 15 0 1600
62564537 vjudge2 B Oct. 14, 2019, 12:54 p.m. OK GNU C++14 TESTS 33 15 0 1600
56694520 vjudge3 B July 8, 2019, 6:18 a.m. OK GNU C++14 TESTS 33 15 0 1600
50153460 kishanradia B Feb. 19, 2019, 8:42 a.m. OK GNU C++14 TESTS 33 15 0 1600
48554944 wreck_count B Jan. 19, 2019, 4:46 a.m. OK GNU C++14 TESTS 33 15 0 1600
43530557 sureshupadhyay900 B Sept. 28, 2018, 1:21 p.m. OK GNU C++14 TESTS 33 15 0 1600
32213125 RKS_The_Great B Nov. 11, 2017, 7:26 a.m. OK GNU C++14 TESTS 33 15 0 1600
31992112 ChulForever Acm_icpc_2017 LetsKillThis_lolol B Nov. 2, 2017, 8:22 p.m. OK GNU C++14 TESTS 33 15 0 1600
31806237 akshay_12001 abhinavchoudhary1997 abhisheksince97 B Oct. 27, 2017, 3:04 p.m. OK GNU C++14 TESTS 33 15 0 1600
65910517 3321123 B Nov. 28, 2019, 12:45 p.m. OK GNU C++17 TESTS 33 15 0 1600
54173031 Double_w B May 15, 2019, 12:24 p.m. OK GNU C++17 TESTS 33 15 0 1600
56707084 vjudge3 B July 8, 2019, 11:27 a.m. OK GNU C++17 TESTS 33 15 0 1600
62659630 vjudge4 B Oct. 16, 2019, 4:47 a.m. OK GNU C++17 TESTS 33 15 0 1600
38636218 aspirations B May 26, 2018, 2:25 p.m. OK GNU C++17 TESTS 33 15 0 1600
39084982 vjudge4 B June 10, 2018, 6:34 a.m. OK GNU C++17 TESTS 33 15 0 1600
52256742 vjudge5 B April 3, 2019, 6:15 a.m. OK GNU C++17 TESTS 33 15 0 1600
52774095 yoonware B April 15, 2019, 11 a.m. OK GNU C++17 TESTS 33 15 0 1600
41310380 redotter B Aug. 7, 2018, 3:39 p.m. OK GNU C++17 TESTS 33 15 102400 1600
59656678 BabaYaga42 B Aug. 29, 2019, 10:43 a.m. OK GNU C++17 TESTS 33 15 204800 1600
38648110 vjudge3 B May 27, 2018, 5:52 a.m. OK GNU C++17 Diagnostics TESTS 33 1060 0 1600
24854264 smalex69 B Feb. 20, 2017, 8:33 p.m. OK Go TESTS 33 31 24883200 1600
36742286 rareone0602 B March 30, 2018, 9:18 a.m. OK Haskell TESTS 33 15 44953600 1600
24953740 pr0grammer B Feb. 24, 2017, 3:45 a.m. OK Haskell TESTS 33 30 53248000 1600
24857437 nagibator B Feb. 20, 2017, 11:26 p.m. OK Haskell TESTS 33 30 53248000 1600
53482580 bhamrick B April 28, 2019, 9:55 p.m. OK Haskell TESTS 33 46 102400 1600
50384296 catforce B Feb. 23, 2019, 12:12 p.m. OK Java 8 TESTS 33 109 0 1600
45542456 SevenDeadlySins B Nov. 10, 2018, 8:24 p.m. OK Java 8 TESTS 33 109 0 1600
25162351 vbs273 B March 3, 2017, 4:10 a.m. OK Java 8 TESTS 33 109 20172800 1600
24850207 Minaa B Feb. 20, 2017, 6:31 p.m. OK Java 8 TESTS 33 109 20275200 1600
24848782 tookunn B Feb. 20, 2017, 6:16 p.m. OK Java 8 TESTS 33 109 20275200 1600
25061854 antkhorin B Feb. 26, 2017, 6:10 p.m. OK Java 8 TESTS 33 109 20582400 1600
24847450 RP_9 B Feb. 20, 2017, 6:01 p.m. OK Java 8 TESTS 33 109 20582400 1600
45919717 daniddelrio B Nov. 18, 2018, 3:51 p.m. OK Java 8 TESTS 33 124 0 1600
40292918 rusty_mayank B July 13, 2018, 5:20 p.m. OK Java 8 TESTS 33 124 0 1600
40292889 rusty_mayank B July 13, 2018, 5:18 p.m. OK Java 8 TESTS 33 124 0 1600
24851381 lionvs13 B Feb. 20, 2017, 6:39 p.m. OK JavaScript TESTS 33 514 8089600 1600
24860777 fr0st B Feb. 21, 2017, 4:10 a.m. OK MS C# TESTS 33 77 11366400 1600
25532873 Allotropia B March 15, 2017, 8:36 p.m. OK MS C# TESTS 33 124 8908800 1600
39088185 vjudge4 B June 10, 2018, 9:27 a.m. OK MS C++ TESTS 33 15 0 1600
29141705 vjudge3 B Aug. 3, 2017, 12:19 a.m. OK MS C++ TESTS 33 15 1945600 1600
35995398 vjudge2 B March 6, 2018, 2:51 p.m. OK MS C++ TESTS 33 15 2048000 1600
29124871 vjudge3 B Aug. 2, 2017, 9:27 a.m. OK MS C++ TESTS 33 15 2048000 1600
29123884 vjudge4 B Aug. 2, 2017, 8:52 a.m. OK MS C++ TESTS 33 15 2048000 1600
26318079 vjudge2 B April 12, 2017, 1:14 p.m. OK MS C++ TESTS 33 15 2048000 1600
25831918 Ally0729 B March 27, 2017, 5:31 a.m. OK MS C++ TESTS 33 15 2048000 1600
25468213 isaac.park B March 14, 2017, 8:07 a.m. OK MS C++ TESTS 33 15 2048000 1600
25336606 jslijin B March 8, 2017, 8:22 a.m. OK MS C++ TESTS 33 15 2048000 1600
25168509 vjudge2 B March 3, 2017, 11:38 a.m. OK MS C++ TESTS 33 15 2048000 1600
52732187 tori333 B April 14, 2019, 4:35 a.m. OK MS C++ 2017 TESTS 33 30 0 1600
64451761 vjudge1 B Nov. 7, 2019, 7:20 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
63918514 HatsuneHan B Oct. 31, 2019, 10:56 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
62994806 vjudge5 B Oct. 20, 2019, 9:59 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
62966432 vjudge4 B Oct. 20, 2019, 4:51 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
62929276 vjudge3 B Oct. 19, 2019, 12:14 p.m. OK MS C++ 2017 TESTS 33 31 0 1600
57844993 vjudge5 B July 27, 2019, 10:44 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
64471492 vjudge2 B Nov. 7, 2019, 1:12 p.m. OK MS C++ 2017 TESTS 33 31 307200 1600
64471452 Conan73 B Nov. 7, 2019, 1:11 p.m. OK MS C++ 2017 TESTS 33 31 307200 1600
64305758 vjudge5 B Nov. 5, 2019, 11:24 a.m. OK MS C++ 2017 TESTS 33 31 307200 1600
25068157 TangentOfA B Feb. 27, 2017, 3:18 a.m. OK PyPy 2 TESTS 33 77 22016000 1600
24861679 Yash_ B Feb. 21, 2017, 5:11 a.m. OK PyPy 2 TESTS 33 109 27852800 1600
24854817 NicolasK B Feb. 20, 2017, 8:48 p.m. OK PyPy 2 TESTS 33 171 25292800 1600
24856667 masonsbro B Feb. 20, 2017, 10:24 p.m. OK PyPy 2 TESTS 33 202 26214400 1600
24854270 har_vi B Feb. 20, 2017, 8:33 p.m. OK PyPy 2 TESTS 33 779 31846400 1600
25026900 cielavenir B Feb. 26, 2017, 2:52 a.m. OK PyPy 2 TESTS 33 1200 35430400 1600
24883087 Aghori_Sadhu B Feb. 22, 2017, 1:35 a.m. OK PyPy 2 TESTS 33 1310 35737600 1600
53482784 cherry_su B April 28, 2019, 10:16 p.m. OK PyPy 2 TESTS 33 1326 25804800 1600
24848632 yigitozen B Feb. 20, 2017, 6:14 p.m. OK PyPy 3 TESTS 33 109 23142400 1600
27826564 emayeses B June 16, 2017, 1:51 p.m. OK PyPy 3 TESTS 33 124 1433600 1600
26043669 vjudge1 B April 1, 2017, 5:38 a.m. OK PyPy 3 TESTS 33 124 23244800 1600
48035255 syechbawazier B Jan. 6, 2019, 3:03 p.m. OK PyPy 3 TESTS 33 139 0 1600
53831431 mattiasm83 B May 6, 2019, 8:21 p.m. OK PyPy 3 TESTS 33 140 0 1600
49473213 yellowflash B Feb. 4, 2019, 6:07 p.m. OK PyPy 3 TESTS 33 140 102400 1600
66457966 int100 B Dec. 7, 2019, 1:49 p.m. OK PyPy 3 TESTS 33 155 0 1600
32085444 nonis B Nov. 5, 2017, 11:47 p.m. OK PyPy 3 TESTS 33 187 6348800 1600
24888094 Chestnut B Feb. 22, 2017, 8:32 a.m. OK PyPy 3 TESTS 33 202 28467200 1600
60263051 CubeCakes B Sept. 8, 2019, 12:20 p.m. OK PyPy 3 TESTS 33 233 3993600 1600
24849807 bharadwaj75 B Feb. 20, 2017, 6:27 p.m. OK Python 2 TESTS 33 46 4608000 1600
24851396 suraj_ch77 B Feb. 20, 2017, 6:39 p.m. OK Python 2 TESTS 33 46 4710400 1600
24846745 adi28galaxyak B Feb. 20, 2017, 5:53 p.m. OK Python 2 TESTS 33 61 4608000 1600
24859348 Calvinxiao B Feb. 21, 2017, 2:20 a.m. OK Python 2 TESTS 33 61 4710400 1600
24911363 maitony B Feb. 23, 2017, 8:26 a.m. OK Python 2 TESTS 33 62 4608000 1600
25800200 nealzane B March 25, 2017, 2:42 p.m. OK Python 2 TESTS 33 62 4710400 1600
24887386 franckmy B Feb. 22, 2017, 7:51 a.m. OK Python 2 TESTS 33 62 4710400 1600
24868387 mouse_wireless B Feb. 21, 2017, 10:36 a.m. OK Python 2 TESTS 33 62 4710400 1600
24868038 edwardjrolls B Feb. 21, 2017, 10:19 a.m. OK Python 2 TESTS 33 77 4608000 1600
28069920 Trunks B June 27, 2017, 6:43 a.m. OK Python 2 TESTS 33 93 7475200 1600
30488705 polpolpol B Sept. 19, 2017, 5:27 a.m. OK Python 3 TESTS 33 62 307200 1600
24952452 rep777 B Feb. 24, 2017, 2:21 a.m. OK Python 3 TESTS 33 62 4608000 1600
24914586 Ferume B Feb. 23, 2017, 11:07 a.m. OK Python 3 TESTS 33 62 4608000 1600
24876075 max333 B Feb. 21, 2017, 4:36 p.m. OK Python 3 TESTS 33 62 4608000 1600
24861069 nanae1914 B Feb. 21, 2017, 4:30 a.m. OK Python 3 TESTS 33 62 4608000 1600
24861054 nanae1914 B Feb. 21, 2017, 4:29 a.m. OK Python 3 TESTS 33 77 4608000 1600
24856366 Tagrimar B Feb. 20, 2017, 10:03 p.m. OK Python 3 TESTS 33 77 4915200 1600
24866542 AIshutin B Feb. 21, 2017, 9:09 a.m. OK Python 3 TESTS 33 78 4915200 1600
27953050 cotefon B June 21, 2017, 9:20 p.m. OK Python 3 TESTS 33 78 5529600 1600
24895453 rofi93 B Feb. 22, 2017, 2:29 p.m. OK Python 3 TESTS 33 93 4608000 1600
24849615 thomtych B Feb. 20, 2017, 6:25 p.m. OK Ruby TESTS 33 77 6553600 1600
51792476 togatoga B March 24, 2019, 1:27 p.m. OK Rust TESTS 33 31 0 1600

remove filters

Back to search problems