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
( 3813 ) C Jon Snow and his Favourite Number PROGRAMMING brute force dp implementation sortings 1800

B"Jon Snow now has to fight with White Walkers. He has n rangers, each of which has his own strength. Also Jon Snow has his favourite number x. Each ranger can fight with a white walker only if the strength of the white walker equals his strength. He however thinks that his rangers are weak and need to improve. Jon now thinks that if he takes the bitwise XOR of strengths of some of rangers with his favourite number x, he might get soldiers of high strength. So, he decided to do the following operation k times: Now, Jon wants to know the maximum and minimum strength of the rangers after performing the above operations k times. He wants your help for this task. Can you help him? First line consists of three integers n, k, x (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89103) -- number of rangers Jon has, the number of times Jon will carry out the operation and Jon's favourite number respectively. Second line consists of n integers representing the strengths of the rangers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89103). Output two integers, the maximum and the minimum strength of the rangers after performing the operation k times. "...

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
51547242 rr_ C March 19, 2019, 8:54 p.m. OK D TESTS 87 857 4198400 1800
24853964 TheHedgehog C Feb. 20, 2017, 8:28 p.m. OK Delphi TESTS 87 530 1433600 1800
24898285 StarScreamOwl C Feb. 22, 2017, 4:54 p.m. OK Delphi TESTS 87 686 2560000 1800
24858777 ruban C Feb. 21, 2017, 1:37 a.m. OK Delphi TESTS 87 701 33996800 1800
24858284 ruban C Feb. 21, 2017, 12:55 a.m. OK Delphi TESTS 87 1248 33996800 1800
24853890 Zeron C Feb. 20, 2017, 8:27 p.m. OK FPC TESTS 87 61 203673600 1800
33494168 AsahiKasugano C Dec. 22, 2017, 3:33 a.m. OK FPC TESTS 87 421 1638400 1800
28870377 lkmcfj C July 25, 2017, 8:41 a.m. OK FPC TESTS 87 514 1638400 1800
24858881 Zymeth C Feb. 21, 2017, 1:44 a.m. OK FPC TESTS 87 655 1638400 1800
25098438 lkmcfj C Feb. 28, 2017, 10:59 a.m. OK FPC TESTS 87 748 1638400 1800
24868484 prosmgeorg C Feb. 21, 2017, 10:40 a.m. OK FPC TESTS 87 997 1638400 1800
24850576 NikNag C Feb. 20, 2017, 6:34 p.m. OK FPC TESTS 87 1466 1740800 1800
24888775 Gray_58 C Feb. 22, 2017, 9:13 a.m. OK FPC TESTS 87 2324 2662400 1800
25308611 nikih.10 C March 7, 2017, 6:28 a.m. OK FPC TESTS 87 2340 2662400 1800
25329418 chb19 C March 7, 2017, 8:30 p.m. OK FPC TESTS 87 2449 2048000 1800
25332347 pedro.mendes C March 8, 2017, 2:15 a.m. OK GNU C TESTS 87 124 2252800 1800
27497488 vjudge4 C June 1, 2017, 3:28 p.m. OK GNU C TESTS 87 296 409600 1800
27497232 16310520122 C June 1, 2017, 3:26 p.m. OK GNU C TESTS 87 311 409600 1800
24903195 pschuprikov C Feb. 22, 2017, 10:42 p.m. OK GNU C TESTS 87 342 1945600 1800
24876583 hello-noob C Feb. 21, 2017, 5:02 p.m. OK GNU C TESTS 87 343 2662400 1800
24902994 pschuprikov C Feb. 22, 2017, 10:18 p.m. OK GNU C TESTS 87 420 1945600 1800
24846799 zzhao1996 C Feb. 20, 2017, 5:54 p.m. OK GNU C TESTS 87 483 1945600 1800
24857128 rainboy C Feb. 20, 2017, 11 p.m. OK GNU C TESTS 87 530 1945600 1800
24902938 pschuprikov C Feb. 22, 2017, 10:12 p.m. OK GNU C TESTS 87 655 1945600 1800
24903154 pschuprikov C Feb. 22, 2017, 10:38 p.m. OK GNU C TESTS 87 685 1945600 1800
26892261 L1937434926 C May 6, 2017, 3:48 a.m. OK GNU C++ TESTS 87 30 1331200 1800
29541497 vjudge3 C Aug. 18, 2017, 1:58 a.m. OK GNU C++ TESTS 87 31 1024000 1800
27669718 vjudge5 C June 8, 2017, 11:12 a.m. OK GNU C++ TESTS 87 31 1024000 1800
26973717 vjudge1 C May 9, 2017, 12:36 p.m. OK GNU C++ TESTS 87 31 1228800 1800
25450501 vjudge3 C March 13, 2017, 9:38 a.m. OK GNU C++ TESTS 87 31 2457600 1800
32974918 vjudge2 C Dec. 6, 2017, 12:16 p.m. OK GNU C++ TESTS 87 31 3072000 1800
28404074 zser C July 10, 2017, 9:41 a.m. OK GNU C++ TESTS 87 31 3174400 1800
25360420 org441 C March 9, 2017, 1:05 p.m. OK GNU C++ TESTS 87 31 3174400 1800
26721342 Gurutamin C April 28, 2017, 2:39 p.m. OK GNU C++ TESTS 87 31 3276800 1800
32849015 passer__ C Dec. 2, 2017, 5:58 a.m. OK GNU C++ TESTS 87 31 3276800 1800
24903433 pschuprikov C Feb. 22, 2017, 11:16 p.m. OK GNU C11 TESTS 87 265 1945600 1800
24874933 abhinashjain C Feb. 21, 2017, 3:29 p.m. OK GNU C11 TESTS 87 421 2252800 1800
24874867 abhinashjain C Feb. 21, 2017, 3:26 p.m. OK GNU C11 TESTS 87 795 2252800 1800
27720995 supy C June 11, 2017, 12:39 p.m. OK GNU C++11 TESTS 87 30 6451200 1800
27044788 Dream_set_sail C May 12, 2017, 1:54 a.m. OK GNU C++11 TESTS 87 31 1024000 1800
25140392 EAJOYS C March 2, 2017, 5:22 a.m. OK GNU C++11 TESTS 87 31 2252800 1800
24855627 Lius C Feb. 20, 2017, 9:23 p.m. OK GNU C++11 TESTS 87 31 2457600 1800
26319237 Eivense C April 12, 2017, 2:04 p.m. OK GNU C++11 TESTS 87 31 3174400 1800
24906586 Cherries C Feb. 23, 2017, 1:44 a.m. OK GNU C++11 TESTS 87 31 3276800 1800
25548960 Copper C March 16, 2017, 12:48 p.m. OK GNU C++11 TESTS 87 31 3276800 1800
25122376 zy03 C March 1, 2017, 11:58 a.m. OK GNU C++11 TESTS 87 31 3379200 1800
24863773 Len C Feb. 21, 2017, 7:02 a.m. OK GNU C++11 TESTS 87 31 6041600 1800
24863746 Len C Feb. 21, 2017, 7:01 a.m. OK GNU C++11 TESTS 87 31 6041600 1800
31825511 deadpool_18 C Oct. 28, 2017, 5:50 a.m. OK GNU C++14 TESTS 87 31 0 1800
25102391 Hqhq C Feb. 28, 2017, 1:55 p.m. OK GNU C++14 TESTS 87 31 3072000 1800
25422330 Torrance C March 12, 2017, 2:31 a.m. OK GNU C++14 TESTS 87 31 3072000 1800
25422408 Torrance C March 12, 2017, 2:38 a.m. OK GNU C++14 TESTS 87 31 3072000 1800
25070313 lygsbw C Feb. 27, 2017, 6:32 a.m. OK GNU C++14 TESTS 87 31 3276800 1800
25103466 xin58 C Feb. 28, 2017, 2:47 p.m. OK GNU C++14 TESTS 87 31 3891200 1800
31388383 saumyadip C Oct. 16, 2017, 10:51 a.m. OK GNU C++14 TESTS 87 31 5939200 1800
42207698 biaoge C Aug. 28, 2018, 12:31 p.m. OK GNU C++14 TESTS 87 46 1228800 1800
32150582 GStnt C Nov. 9, 2017, 3:45 a.m. OK GNU C++14 TESTS 87 46 1228800 1800
29542114 BadboyQAQ C Aug. 18, 2017, 2:57 a.m. OK GNU C++14 TESTS 87 46 1228800 1800
52609237 heon C April 11, 2019, 3:16 p.m. OK GNU C++17 TESTS 87 46 409600 1800
42201397 yiqzq C Aug. 28, 2018, 8:58 a.m. OK GNU C++17 TESTS 87 46 1433600 1800
43886222 logic123 C Oct. 6, 2018, 7:36 a.m. OK GNU C++17 TESTS 87 46 6041600 1800
38592175 Mr_leon C May 24, 2018, 4:31 p.m. OK GNU C++17 TESTS 87 46 24064000 1800
42207675 xxtz C Aug. 28, 2018, 12:30 p.m. OK GNU C++17 TESTS 87 46 42700800 1800
47711849 vjudge4 C Dec. 30, 2018, 4:28 a.m. OK GNU C++17 TESTS 87 61 409600 1800
47711801 vjudge5 C Dec. 30, 2018, 4:25 a.m. OK GNU C++17 TESTS 87 62 409600 1800
47711790 vjudge4 C Dec. 30, 2018, 4:24 a.m. OK GNU C++17 TESTS 87 62 409600 1800
62051404 vjudge4 C Oct. 7, 2019, 9:33 a.m. OK GNU C++17 TESTS 87 62 409600 1800
42201963 yiqzq C Aug. 28, 2018, 9:13 a.m. OK GNU C++17 TESTS 87 62 1433600 1800
40701919 woshixiguagua C July 24, 2018, 11:22 a.m. OK GNU C++17 Diagnostics TESTS 87 3322 5120000 1800
25011850 AhmedSoliman C Feb. 25, 2017, 12:12 p.m. OK Java 8 TESTS 87 140 20787200 1800
24854049 fetetriste C Feb. 20, 2017, 8:30 p.m. OK Java 8 TESTS 87 155 20787200 1800
43420025 KulikAlex C Sept. 25, 2018, 5:13 p.m. OK Java 8 TESTS 87 156 2048000 1800
37054218 alphacarrot C April 7, 2018, 3:19 p.m. OK Java 8 TESTS 87 156 20889600 1800
24875953 Safrout C Feb. 21, 2017, 4:27 p.m. OK Java 8 TESTS 87 156 22630400 1800
43420112 KulikAlex C Sept. 25, 2018, 5:15 p.m. OK Java 8 TESTS 87 171 2048000 1800
37052876 alphacarrot C April 7, 2018, 2:20 p.m. OK Java 8 TESTS 87 171 20889600 1800
24856001 Juniorandrade C Feb. 20, 2017, 9:42 p.m. OK Java 8 TESTS 87 186 20684800 1800
24875969 Safrout C Feb. 21, 2017, 4:29 p.m. OK Java 8 TESTS 87 186 22630400 1800
24866202 rahulkhairwar C Feb. 21, 2017, 8:55 a.m. OK Java 8 TESTS 87 186 26726400 1800
24871279 Neverauskas C Feb. 21, 2017, 12:44 p.m. OK MS C# TESTS 87 685 23142400 1800
24856456 lionvs13 C Feb. 20, 2017, 10:08 p.m. OK MS C# TESTS 87 779 18944000 1800
24856515 lionvs13 C Feb. 20, 2017, 10:12 p.m. OK MS C# TESTS 87 841 18636800 1800
24856330 lionvs13 C Feb. 20, 2017, 10 p.m. OK MS C# TESTS 87 842 18636800 1800
24850230 fr0st C Feb. 20, 2017, 6:31 p.m. OK MS C# TESTS 87 842 18636800 1800
24846787 Neverauskas C Feb. 20, 2017, 5:54 p.m. OK MS C# TESTS 87 889 23244800 1800
27559033 artsin666 C June 4, 2017, 8:46 a.m. OK MS C# TESTS 87 935 6451200 1800
24871303 Neverauskas C Feb. 21, 2017, 12:45 p.m. OK MS C# TESTS 87 935 23244800 1800
24856540 lionvs13 C Feb. 20, 2017, 10:14 p.m. OK MS C# TESTS 87 935 23961600 1800
29541554 vjudge3 C Aug. 18, 2017, 2:04 a.m. OK MS C++ TESTS 87 31 1433600 1800
29541507 vjudge2 C Aug. 18, 2017, 2 a.m. OK MS C++ TESTS 87 31 1433600 1800
40408864 vjudge3 C July 16, 2018, 11:22 a.m. OK MS C++ TESTS 87 46 1331200 1800
44841516 vjudge1 C Oct. 25, 2018, 12:56 p.m. OK MS C++ TESTS 87 46 2355200 1800
24849995 Madball C Feb. 20, 2017, 6:28 p.m. OK MS C++ TESTS 87 46 2560000 1800
24887849 Player1_SERG C Feb. 22, 2017, 8:17 a.m. OK MS C++ TESTS 87 46 7680000 1800
48886758 vjudge3 C Jan. 24, 2019, 12:36 p.m. OK MS C++ TESTS 87 46 11980800 1800
29147513 marszed C Aug. 3, 2017, 6:29 a.m. OK MS C++ TESTS 87 78 3686400 1800
24886198 Lobanov_VAVKO C Feb. 22, 2017, 6:37 a.m. OK MS C++ TESTS 87 124 2457600 1800
48880226 vjudge3 C Jan. 24, 2019, 9:55 a.m. OK MS C++ TESTS 87 156 409600 1800
24861904 Yash_ C Feb. 21, 2017, 5:26 a.m. OK PyPy 2 TESTS 87 140 29593600 1800
26708030 decoder123 C April 27, 2017, 6:22 p.m. OK PyPy 2 TESTS 87 155 29491200 1800
25018440 har_vi C Feb. 25, 2017, 5:01 p.m. OK PyPy 2 TESTS 87 249 32768000 1800
53483466 cherry_su C April 28, 2019, 11:27 p.m. OK PyPy 2 TESTS 87 342 23347200 1800
42152364 Onesh0t C Aug. 27, 2018, 12:51 p.m. OK PyPy 2 TESTS 87 1544 9625600 1800
25804953 nealzane C March 25, 2017, 7:21 p.m. OK PyPy 2 TESTS 87 1559 26624000 1800
25068479 TangentOfA C Feb. 27, 2017, 3:50 a.m. OK PyPy 2 TESTS 87 1980 29491200 1800
24883373 Aghori_Sadhu C Feb. 22, 2017, 2:09 a.m. OK PyPy 2 TESTS 87 2682 26931200 1800
24884988 JustAni C Feb. 22, 2017, 4:51 a.m. OK PyPy 3 TESTS 87 451 31129600 1800
24871462 Ferume C Feb. 21, 2017, 12:52 p.m. OK PyPy 3 TESTS 87 561 36761600 1800
32319491 mpcque C Nov. 14, 2017, 8:03 p.m. OK PyPy 3 TESTS 87 592 8192000 1800
52776347 saku7 C April 15, 2019, 12:11 p.m. OK PyPy 3 TESTS 87 1466 10854400 1800
52938211 homoeconomicus C April 18, 2019, 7:47 a.m. OK PyPy 3 TESTS 87 2542 10137600 1800
26074223 0w1 C April 2, 2017, 9:26 a.m. OK PyPy 3 TESTS 87 3478 31232000 1800
24888319 franckmy C Feb. 22, 2017, 8:46 a.m. OK Python 2 TESTS 87 452 19353600 1800
24869597 denny_sem C Feb. 21, 2017, 11:31 a.m. OK Python 2 TESTS 87 545 10137600 1800
24882955 lfforu C Feb. 22, 2017, 1:18 a.m. OK Python 2 TESTS 87 763 10240000 1800
25000842 whn6325689 C Feb. 25, 2017, 4:06 a.m. OK Python 2 TESTS 87 936 10240000 1800
24875041 8140898 C Feb. 21, 2017, 3:35 p.m. OK Python 2 TESTS 87 1044 10240000 1800
24866420 yunidc C Feb. 21, 2017, 9:05 a.m. OK Python 2 TESTS 87 1044 10240000 1800
25000793 whn6325689 C Feb. 25, 2017, 4:03 a.m. OK Python 2 TESTS 87 1185 35635200 1800
31470788 RccHD C Oct. 18, 2017, 6:43 a.m. OK Python 3 TESTS 87 264 11673600 1800
51331358 elsa_math C March 15, 2019, 12:17 p.m. OK Python 3 TESTS 87 358 6246400 1800
51325472 slava2322 C March 15, 2019, 9:28 a.m. OK Python 3 TESTS 87 373 6656000 1800
27158107 xehoth C May 16, 2017, 11:41 a.m. OK Python 3 TESTS 87 373 6656000 1800
33922523 madn C Jan. 5, 2018, 1:22 p.m. OK Python 3 TESTS 87 405 11673600 1800
42141186 Mk_Python_v1 C Aug. 27, 2018, 5:36 a.m. OK Python 3 TESTS 87 467 6860800 1800
24854313 raven38 C Feb. 20, 2017, 8:34 p.m. OK Python 3 TESTS 87 467 11264000 1800
25952788 cgfs10000 C March 30, 2017, 12:53 p.m. OK Python 3 TESTS 87 483 19353600 1800
32992184 vjudge4 C Dec. 7, 2017, 5:13 a.m. OK Python 3 TESTS 87 530 20070400 1800
32992121 jadelemon C Dec. 7, 2017, 5:09 a.m. OK Python 3 TESTS 87 530 20070400 1800
24861842 mio_h C Feb. 21, 2017, 5:22 a.m. OK Rust TESTS 87 468 2560000 1800

remove filters

Back to search problems