Codeforces Round 488 by NEAR (Div. 2)

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
994 Codeforces Round 488 by NEAR (Div. 2) FINISHED False 9000 208358724 June 16, 2018, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5769 ) B Knights of a Polygonal Table PROGRAMMING greedy implementation sortings 1400

B"Unlike Knights of a Round Table, Knights of a Polygonal Table deprived of nobility and happy to kill each other. But each knight has some power and a knight can kill another knight if and only if his power is greater than the power of victim. However, even such a knight will torment his conscience, so he can kill no more than k other knights. Also, each knight has some number of coins. After a kill, a knight can pick up all victim's coins. Now each knight ponders: how many coins he can have if only he kills other knights? You should answer this question for each knight. The first line contains two integers n and k (1 <= n <= 10^5, 0 <= k <= min(n-1,10)) -- the number of knights and the number k from the statement. The second line contains n integers p_1, p_2 , ldots,p_n (1 <= p_i <= 10^9) -- powers of the knights. All p_i are distinct. The third line contains n integers c_1, c_2 , ldots,c_n (0 <= c_i <= 10^9) -- the number of coins each knight has. Print n integers -- the maximum number of coins each knight can have it only he kills other knights. Consider the first example. In the second example the first knight can't kill anyone, while all the others should kill the one with the index less by one than their own. In the third example there is only one knight, so he can't kill anyone. "...

Tutorials

Codeforces Round #488 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39298124 rr_ B June 16, 2018, 5:02 p.m. OK D TESTS 73 140 11571200 1400
39325815 ruban B June 17, 2018, 5:51 a.m. OK Delphi TESTS 73 249 74854400 1400
39311900 ruban B June 16, 2018, 6:33 p.m. OK Delphi TESTS 73 280 74854400 1400
40196479 chaorenhaha B July 11, 2018, 9:30 a.m. OK FPC TESTS 73 264 3993600 1400
40196519 chaorenhaha B July 11, 2018, 9:31 a.m. OK FPC TESTS 73 265 3993600 1400
39352986 AHTOH._. B June 18, 2018, 10:08 a.m. OK FPC TESTS 73 280 2048000 1400
39419737 Bear.-. B June 19, 2018, 6:44 p.m. OK FPC TESTS 73 280 3174400 1400
40406127 chaorenhaha B July 16, 2018, 9:52 a.m. OK FPC TESTS 73 280 7987200 1400
44475857 chaorenhaha B Oct. 18, 2018, 8:54 a.m. OK FPC TESTS 73 374 3993600 1400
39346817 shreyasbalakrishna19 B June 18, 2018, 4:21 a.m. OK GNU C TESTS 73 93 1945600 1400
39300920 C1ariS B June 16, 2018, 5:18 p.m. OK GNU C TESTS 73 108 2764800 1400
39329533 vjudge2 B June 17, 2018, 8:27 a.m. OK GNU C TESTS 73 109 2355200 1400
39301674 forlfs B June 16, 2018, 5:22 p.m. OK GNU C TESTS 73 124 2457600 1400
39404354 Kaneki123 B June 19, 2018, 9 a.m. OK GNU C TESTS 73 140 4812800 1400
39312787 rajput1999 B June 16, 2018, 6:40 p.m. OK GNU C TESTS 73 140 4812800 1400
39297352 Position B June 16, 2018, 4:58 p.m. OK GNU C++ TESTS 73 62 2048000 1400
39530649 luogu_bot2 B June 23, 2018, 2:20 a.m. OK GNU C++ TESTS 73 62 2457600 1400
39320908 Siyuan B June 16, 2018, 11:22 p.m. OK GNU C++ TESTS 73 62 3276800 1400
39344359 Siyuan B June 17, 2018, 10:53 p.m. OK GNU C++ TESTS 73 62 4198400 1400
40931746 ReaLNero1 B July 30, 2018, 1:17 a.m. OK GNU C++ TESTS 73 77 2048000 1400
40399704 Rye_Catcher B July 16, 2018, 7:05 a.m. OK GNU C++ TESTS 73 77 2048000 1400
39299064 Rye_Catcher B June 16, 2018, 5:07 p.m. OK GNU C++ TESTS 73 77 2048000 1400
39396486 redbag B June 19, 2018, 2:51 a.m. OK GNU C++ TESTS 73 77 2457600 1400
39537281 HNYLMS_MuQiuFeng B June 23, 2018, 9:29 a.m. OK GNU C++ TESTS 73 78 1945600 1400
39461138 wibE B June 21, 2018, noon OK GNU C++ TESTS 73 78 2048000 1400
46706459 akshat_goyal B Dec. 7, 2018, 7:28 a.m. OK GNU C11 TESTS 73 390 1945600 1400
39319583 likcoras B June 16, 2018, 9:36 p.m. OK GNU C11 TESTS 73 514 4403200 1400
39429693 psp.643a B June 20, 2018, 8:10 a.m. OK GNU C11 TESTS 73 530 4812800 1400
39319709 likcoras B June 16, 2018, 9:42 p.m. OK GNU C11 TESTS 73 546 4403200 1400
39400146 rajashish B June 19, 2018, 6:16 a.m. OK GNU C11 TESTS 73 561 3174400 1400
62105030 Heartbeat666 B Oct. 8, 2019, 10:29 a.m. OK GNU C++11 TESTS 73 62 2048000 1400
39333735 Scandium B June 17, 2018, 11:27 a.m. OK GNU C++11 TESTS 73 62 2048000 1400
62105060 luogu_bot3 B Oct. 8, 2019, 10:30 a.m. OK GNU C++11 TESTS 73 62 2048000 1400
39337894 lornd B June 17, 2018, 2:35 p.m. OK GNU C++11 TESTS 73 62 3276800 1400
39344460 GrowingUp B June 17, 2018, 11:05 p.m. OK GNU C++11 TESTS 73 62 3993600 1400
56078665 luogu_bot4 B June 26, 2019, 2:04 p.m. OK GNU C++11 TESTS 73 62 3993600 1400
44077534 Langlangago B Oct. 10, 2018, 1:39 p.m. OK GNU C++11 TESTS 73 77 2457600 1400
39298992 2018szb B June 16, 2018, 5:07 p.m. OK GNU C++11 TESTS 73 77 3276800 1400
40384134 iamworldian B July 15, 2018, 4:44 p.m. OK GNU C++11 TESTS 73 77 3993600 1400
47953069 vjudge1 B Jan. 5, 2019, 3:26 a.m. OK GNU C++11 TESTS 73 77 5632000 1400
39687628 ..vince B June 26, 2018, 11:38 p.m. OK GNU C++14 TESTS 73 93 2048000 1400
39345582 avwl017 B June 18, 2018, 1:57 a.m. OK GNU C++14 TESTS 73 93 2048000 1400
44347297 ZGalaxy B Oct. 15, 2018, 8:04 a.m. OK GNU C++14 TESTS 73 93 2048000 1400
39357382 arg_53 B June 18, 2018, 1:27 p.m. OK GNU C++14 TESTS 73 108 2048000 1400
39334092 libra9z B June 17, 2018, 11:43 a.m. OK GNU C++14 TESTS 73 108 2048000 1400
44347109 ZGalaxy B Oct. 15, 2018, 7:58 a.m. OK GNU C++14 TESTS 73 108 2048000 1400
47683250 Roohi B Dec. 29, 2018, 1:14 p.m. OK GNU C++14 TESTS 73 108 2048000 1400
40190338 Certified_Intellectual B July 11, 2018, 6:09 a.m. OK GNU C++14 TESTS 73 108 2048000 1400
39406049 karamkontar B June 19, 2018, 9:54 a.m. OK GNU C++14 TESTS 73 108 2048000 1400
40750158 jishnusaha B July 25, 2018, 5:14 p.m. OK GNU C++14 TESTS 73 108 2457600 1400
50639427 Dup4 B March 1, 2019, 1:17 p.m. OK GNU C++17 TESTS 73 93 2867200 1400
39810604 lavin B July 1, 2018, 2:02 a.m. OK GNU C++17 TESTS 73 93 11264000 1400
39396255 cjnwq B June 19, 2018, 2:38 a.m. OK GNU C++17 TESTS 73 108 2048000 1400
39327130 vjudge1 B June 17, 2018, 6:54 a.m. OK GNU C++17 TESTS 73 108 2048000 1400
65525773 alif_cse_ju B Nov. 22, 2019, 10:19 a.m. OK GNU C++17 TESTS 73 109 1945600 1400
54520914 Ztrk B May 23, 2019, 12:14 p.m. OK GNU C++17 TESTS 73 109 2048000 1400
67317491 vjudge5 B Dec. 21, 2019, 6:41 a.m. OK GNU C++17 TESTS 73 109 2048000 1400
52290528 vikram.jee2012 B April 4, 2019, 12:58 a.m. OK GNU C++17 TESTS 73 109 2048000 1400
47713456 vjudge4 B Dec. 30, 2018, 5:54 a.m. OK GNU C++17 TESTS 73 109 2048000 1400
47713446 vjudge5 B Dec. 30, 2018, 5:54 a.m. OK GNU C++17 TESTS 73 109 2048000 1400
39311784 yuki2006 B June 16, 2018, 6:32 p.m. OK Go TESTS 73 202 14336000 1400
39300108 Allen_3 B June 16, 2018, 5:13 p.m. OK Go TESTS 73 421 9728000 1400
39304495 likcoras B June 16, 2018, 5:40 p.m. OK Go TESTS 73 530 5427200 1400
69070562 Anonymous B Jan. 18, 2020, 9:29 p.m. OK Java 11 TESTS 73 265 0 1400
39427053 Jeel_Vaishnav B June 20, 2018, 5:45 a.m. OK Java 8 TESTS 73 187 0 1400
39297511 spar5h B June 16, 2018, 4:59 p.m. OK Java 8 TESTS 73 202 0 1400
53944914 jebaited B May 10, 2019, 6:02 a.m. OK Java 8 TESTS 73 202 0 1400
41009944 hack1nt0 B July 31, 2018, 12:04 p.m. OK Java 8 TESTS 73 202 0 1400
39401767 apurvaj B June 19, 2018, 7:25 a.m. OK Java 8 TESTS 73 202 0 1400
39325439 java_geek B June 17, 2018, 5:29 a.m. OK Java 8 TESTS 73 202 0 1400
39299013 ViciousCoder B June 16, 2018, 5:07 p.m. OK Java 8 TESTS 73 202 0 1400
39296497 ShowStopper728 B June 16, 2018, 4:53 p.m. OK Java 8 TESTS 73 202 0 1400
39295378 hulk_man B June 16, 2018, 4:48 p.m. OK Java 8 TESTS 73 202 0 1400
52282220 -f00- B April 3, 2019, 5:39 p.m. OK Java 8 TESTS 73 202 5017600 1400
39330807 0442A403 B June 17, 2018, 9:20 a.m. OK Kotlin TESTS 73 561 10137600 1400
39360695 Bobko B June 18, 2018, 4:29 p.m. OK Kotlin TESTS 73 717 10444800 1400
56499304 og.kostya B July 4, 2019, 5:28 a.m. OK Mono C# TESTS 73 93 5017600 1400
39319305 T-D-K B June 16, 2018, 9:20 p.m. OK Mono C# TESTS 73 124 11468800 1400
39353834 fr0st B June 18, 2018, 10:51 a.m. OK Mono C# TESTS 73 186 69632000 1400
39302652 gonchenko B June 16, 2018, 5:28 p.m. OK Mono C# TESTS 73 187 42291200 1400
39302654 GustavK B June 16, 2018, 5:28 p.m. OK Mono C# TESTS 73 202 34201600 1400
55405719 m1_k3 B June 10, 2019, 4:25 p.m. OK Mono C# TESTS 73 218 18022400 1400
55405653 m1_k3 B June 10, 2019, 4:23 p.m. OK Mono C# TESTS 73 218 18124800 1400
39317507 mircea85 B June 16, 2018, 8:27 p.m. OK Mono C# TESTS 73 218 32256000 1400
55405519 m1_k3 B June 10, 2019, 4:19 p.m. OK Mono C# TESTS 73 233 18124800 1400
57643260 walticotc B July 24, 2019, 1:20 p.m. OK Mono C# TESTS 73 233 38195200 1400
41809260 scorpiowf B Aug. 19, 2018, 1:40 a.m. OK MS C++ TESTS 73 109 2662400 1400
39411491 j4357j B June 19, 2018, 12:57 p.m. OK MS C++ TESTS 73 109 3174400 1400
39322616 henudhl B June 17, 2018, 2:05 a.m. OK MS C++ TESTS 73 124 7270400 1400
39295947 wRabbits_AlMag B June 16, 2018, 4:51 p.m. OK MS C++ TESTS 73 171 8089600 1400
39298551 FireBlaze B June 16, 2018, 5:04 p.m. OK MS C++ TESTS 73 187 12083200 1400
40300715 NguyenfromVN B July 14, 2018, 1:46 a.m. OK MS C++ TESTS 73 202 4096000 1400
43976546 Zombie358 B Oct. 7, 2018, 9:31 p.m. OK MS C++ TESTS 73 265 2048000 1400
39453000 XD.Escanor B June 21, 2018, 6:31 a.m. OK MS C++ TESTS 73 265 2662400 1400
39354333 MenOfPassion B June 18, 2018, 11:13 a.m. OK MS C++ TESTS 73 265 3174400 1400
39438123 Ancient_mage B June 20, 2018, 2:11 p.m. OK MS C++ TESTS 73 265 23142400 1400
63849115 Y_is_sunshine B Oct. 30, 2019, 3:11 p.m. OK MS C++ 2017 TESTS 73 265 3072000 1400
63849198 vjudge1 B Oct. 30, 2019, 3:13 p.m. OK MS C++ 2017 TESTS 73 280 3072000 1400
64459605 Mad112233 B Nov. 7, 2019, 9:52 a.m. OK MS C++ 2017 TESTS 73 311 5939200 1400
51977181 sohailk1999 B March 29, 2019, 2:44 p.m. OK MS C++ 2017 TESTS 73 592 3276800 1400
39447476 Fardale B June 20, 2018, 11:20 p.m. OK Ocaml TESTS 73 655 14028800 1400
39337823 mayakin B June 17, 2018, 2:31 p.m. OK PHP TESTS 73 514 56320000 1400
39403234 anshuman16423 B June 19, 2018, 8:18 a.m. OK PyPy 2 TESTS 73 342 21606400 1400
39677332 Pratik_2106 B June 26, 2018, 1:51 p.m. OK PyPy 2 TESTS 73 343 20582400 1400
39303903 akshay125 B June 16, 2018, 5:36 p.m. OK PyPy 2 TESTS 73 343 28160000 1400
39333124 inishchith. B June 17, 2018, 11:01 a.m. OK PyPy 2 TESTS 73 358 20582400 1400
39425423 a03090 B June 20, 2018, 3:37 a.m. OK PyPy 2 TESTS 73 420 17100800 1400
39303408 pa.n.ik B June 16, 2018, 5:33 p.m. OK PyPy 2 TESTS 73 655 16896000 1400
39301960 algmyr B June 16, 2018, 5:24 p.m. OK PyPy 2 TESTS 73 982 16896000 1400
39332600 soheil_r B June 17, 2018, 10:38 a.m. OK PyPy 3 TESTS 73 545 21094400 1400
39364937 salexandru B June 18, 2018, 4:48 p.m. OK PyPy 3 TESTS 73 576 32051200 1400
39426227 jh05013 B June 20, 2018, 4:45 a.m. OK PyPy 3 TESTS 73 577 20172800 1400
39307496 JJF B June 16, 2018, 6 p.m. OK PyPy 3 TESTS 73 577 26828800 1400
39529373 thelastprime B June 22, 2018, 11:41 p.m. OK PyPy 3 TESTS 73 592 21606400 1400
39308139 artemuk B June 16, 2018, 6:05 p.m. OK PyPy 3 TESTS 73 592 31948800 1400
39318257 bernie B June 16, 2018, 8:40 p.m. OK PyPy 3 TESTS 73 592 34304000 1400
69879697 Drago_ B Jan. 31, 2020, 5:51 a.m. OK PyPy 3 TESTS 73 608 23449600 1400
42456939 nns2009 B Sept. 4, 2018, 11:57 a.m. OK PyPy 3 TESTS 73 624 26214400 1400
45887155 mug B Nov. 17, 2018, 4:37 p.m. OK PyPy 3 TESTS 73 639 24371200 1400
39303928 JoaoMauricio B June 16, 2018, 5:36 p.m. OK Python 2 TESTS 73 436 13516800 1400
39327395 pdev250 B June 17, 2018, 7:06 a.m. OK Python 2 TESTS 73 483 11980800 1400
39318004 thirsty_crow B June 16, 2018, 8:34 p.m. OK Python 2 TESTS 73 483 16179200 1400
39310827 atrades B June 16, 2018, 6:24 p.m. OK Python 2 TESTS 73 483 17612800 1400
39338337 nealzane B June 17, 2018, 2:54 p.m. OK Python 2 TESTS 73 498 11980800 1400
39313737 wangkan2001 B June 16, 2018, 6:47 p.m. OK Python 2 TESTS 73 514 13926400 1400
39340939 sragavan B June 17, 2018, 5:37 p.m. OK Python 2 TESTS 73 514 15257600 1400
39314756 slitvinov B June 16, 2018, 6:54 p.m. OK Python 2 TESTS 73 514 16793600 1400
39401153 homie B June 19, 2018, 6:59 a.m. OK Python 2 TESTS 73 514 18227200 1400
39606595 SerChirag B June 24, 2018, 3:17 p.m. OK Python 2 TESTS 73 514 19148800 1400
39299726 pyrus B June 16, 2018, 5:11 p.m. OK Python 3 TESTS 73 312 16384000 1400
39318977 Yee_172 B June 16, 2018, 9:05 p.m. OK Python 3 TESTS 73 343 20275200 1400
39334242 orailly B June 17, 2018, 11:50 a.m. OK Python 3 TESTS 73 358 16179200 1400
39499092 m7mdbadawy B June 21, 2018, 7:25 p.m. OK Python 3 TESTS 73 389 20377600 1400
48798187 wxy1800011848 B Jan. 23, 2019, 1:25 p.m. OK Python 3 TESTS 73 405 27340800 1400
39326673 Knowmyself B June 17, 2018, 6:34 a.m. OK Python 3 TESTS 73 420 19968000 1400
39326545 Knowmyself B June 17, 2018, 6:28 a.m. OK Python 3 TESTS 73 421 19968000 1400
39521146 tokarev.vlad B June 22, 2018, 3:50 p.m. OK Python 3 TESTS 73 436 20582400 1400
39340823 alessandrosolbiati B June 17, 2018, 5:31 p.m. OK Python 3 TESTS 73 436 20582400 1400
39301593 Kenig B June 16, 2018, 5:22 p.m. OK Python 3 TESTS 73 451 21606400 1400
39318517 jrodrigues B June 16, 2018, 8:47 p.m. OK Rust TESTS 73 77 11673600 1400
39299038 cympfh B June 16, 2018, 5:07 p.m. OK Rust TESTS 73 124 6553600 1400

remove filters

Back to search problems