Codeforces Round 493 (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
998 Codeforces Round 493 (Div. 2) FINISHED False 7200 201369299 July 1, 2018, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9633 ) A Balloons PROGRAMMING constructive algorithms implementation 1000

B"There are quite a lot of ways to have fun with inflatable balloons. For example, you can fill them with water and see what happens. Grigory and Andrew have the same opinion. So, once upon a time, they went to the shop and bought n packets with inflatable balloons, where i -th of them has exactly a_i balloons inside. They want to divide the balloons among themselves. In addition, there are several conditions to hold: Help them to divide the balloons or determine that it's impossible under these conditions. The first line of input contains a single integer n ( 1 <= n <= 10 ) -- the number of packets with balloons. The second line contains n integers: a_1 , a_2 , ldots , a_n ( 1 <= a_i <= 1000 ) -- the number of balloons inside the corresponding packet. If it's impossible to divide the balloons satisfying the conditions above, print -1 . Otherwise, print an integer k -- the number of packets to give to Grigory followed by k distinct integers from 1 to n -- the indices of those. The order of packets doesn't matter. If there are multiple ways to divide balloons, output any of them. In the first test Grigory gets 3 balloons in total while Andrey gets 1 . In the second test there's only one way to divide the packets which leads to equal numbers of balloons. In the third test one of the boys won't get a packet at all. "...

Tutorials

Codeforces Round #493 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40062330 vjudge1 A July 7, 2018, 1:25 p.m. OK Clang++17 Diagnostics TESTS 49 46 307200 1000
39848534 rr_ A July 1, 2018, 6:45 p.m. OK D TESTS 49 31 0 1000
39823783 ruban A July 1, 2018, 2:10 p.m. OK Delphi TESTS 49 31 4812800 1000
39830658 Jarazorg A July 1, 2018, 2:29 p.m. OK FPC TESTS 49 31 0 1000
39837927 Igor_2017 A July 1, 2018, 3:05 p.m. OK FPC TESTS 49 31 0 1000
39863668 Bear.-. A July 2, 2018, 9:37 a.m. OK FPC TESTS 49 31 0 1000
39863688 Bear.-. A July 2, 2018, 9:37 a.m. OK FPC TESTS 49 31 0 1000
39829978 SashOK_Yatsuk A July 1, 2018, 2:27 p.m. OK FPC TESTS 49 31 0 1000
39827305 petr577 A July 1, 2018, 2:18 p.m. OK FPC TESTS 49 31 0 1000
39834429 thanhhoanglenguyen A July 1, 2018, 2:46 p.m. OK FPC TESTS 49 31 102400 1000
39838214 BaluconisTima A July 1, 2018, 3:07 p.m. OK FPC TESTS 49 31 3993600 1000
39836425 PAG A July 1, 2018, 2:56 p.m. OK FPC TESTS 49 46 0 1000
39826454 ndhuy A July 1, 2018, 2:16 p.m. OK FPC TESTS 49 46 0 1000
40094218 Shubhanshu_Kumar A July 8, 2018, 7:49 p.m. OK GNU C TESTS 49 30 0 1000
39841350 pandasamanvaya A July 1, 2018, 3:31 p.m. OK GNU C TESTS 49 30 0 1000
39832938 3mKingLUCKY A July 1, 2018, 2:39 p.m. OK GNU C TESTS 49 30 0 1000
39863286 iwriaw233 A July 2, 2018, 9:22 a.m. OK GNU C TESTS 49 30 307200 1000
42102919 el.duivel A Aug. 25, 2018, 8:48 p.m. OK GNU C TESTS 49 31 0 1000
41716935 Mahmud_Bhuiyan A Aug. 17, 2018, 4:20 p.m. OK GNU C TESTS 49 31 0 1000
41680909 Aporajita_Dutta A Aug. 17, 2018, 10:53 a.m. OK GNU C TESTS 49 31 0 1000
41680857 Nayeemz A Aug. 17, 2018, 10:51 a.m. OK GNU C TESTS 49 31 0 1000
41680489 Abdullahdidar A Aug. 17, 2018, 10:38 a.m. OK GNU C TESTS 49 31 0 1000
41680302 nahidislamz A Aug. 17, 2018, 10:31 a.m. OK GNU C TESTS 49 31 0 1000
39826268 Langman_orz A July 1, 2018, 2:15 p.m. OK GNU C++ TESTS 49 30 0 1000
40096022 GylfiSon A July 8, 2018, 10:36 p.m. OK GNU C++ TESTS 49 30 0 1000
39939617 tabbbbbb A July 4, 2018, 1:49 a.m. OK GNU C++ TESTS 49 30 0 1000
39883927 vjudge5 A July 3, 2018, 5:17 a.m. OK GNU C++ TESTS 49 30 0 1000
39868528 vjudge3 A July 2, 2018, 12:50 p.m. OK GNU C++ TESTS 49 30 0 1000
39856580 nk1879570236 A July 2, 2018, 4:14 a.m. OK GNU C++ TESTS 49 30 0 1000
39831493 kailashlimba22 A July 1, 2018, 2:33 p.m. OK GNU C++ TESTS 49 30 0 1000
39828153 mohitkn01 A July 1, 2018, 2:21 p.m. OK GNU C++ TESTS 49 30 0 1000
39827187 BohdanVey A July 1, 2018, 2:18 p.m. OK GNU C++ TESTS 49 30 0 1000
39826484 diaosipan A July 1, 2018, 2:16 p.m. OK GNU C++ TESTS 49 30 0 1000
61034566 gabriel61944307 A Sept. 21, 2019, 7:08 p.m. OK GNU C11 TESTS 49 30 0 1000
49895219 deathsword A Feb. 14, 2019, 6:34 a.m. OK GNU C11 TESTS 49 31 0 1000
49892305 III_Wolverine_III A Feb. 14, 2019, 4:53 a.m. OK GNU C11 TESTS 49 31 0 1000
64746966 DTUPIS A Nov. 12, 2019, 1:52 p.m. OK GNU C11 TESTS 49 31 0 1000
63509924 DevJewel A Oct. 26, 2019, 8:06 p.m. OK GNU C11 TESTS 49 31 0 1000
63289580 vjudge1 A Oct. 24, 2019, 11:23 a.m. OK GNU C11 TESTS 49 31 0 1000
58423504 _null_ptr_ A Aug. 7, 2019, 8:43 a.m. OK GNU C11 TESTS 49 31 0 1000
57593208 vjudge3 A July 23, 2019, 12:58 p.m. OK GNU C11 TESTS 49 31 0 1000
57288297 You_Know_Who A July 18, 2019, 3:31 p.m. OK GNU C11 TESTS 49 31 0 1000
55179477 patilc125 A June 5, 2019, 8:38 p.m. OK GNU C11 TESTS 49 31 0 1000
39882430 kiranjc A July 3, 2018, 3:08 a.m. OK GNU C++11 TESTS 49 15 0 1000
39871845 1597673762 A July 2, 2018, 2:57 p.m. OK GNU C++11 TESTS 49 15 0 1000
64554553 vjudge3 A Nov. 9, 2019, 2:38 a.m. OK GNU C++11 TESTS 49 30 0 1000
61358055 jiuzhou A Sept. 27, 2019, 11:14 a.m. OK GNU C++11 TESTS 49 30 0 1000
56783910 jtybsdd A July 10, 2019, 7:31 a.m. OK GNU C++11 TESTS 49 30 0 1000
54901361 agl A June 1, 2019, 6:46 a.m. OK GNU C++11 TESTS 49 30 0 1000
51468866 thesourceisthetruth A March 19, 2019, 4:48 a.m. OK GNU C++11 TESTS 49 30 0 1000
49376184 Samra_ A Feb. 2, 2019, 8:18 p.m. OK GNU C++11 TESTS 49 30 0 1000
47538286 graceoflives A Dec. 27, 2018, 4:49 a.m. OK GNU C++11 TESTS 49 30 0 1000
45510695 wjyyy A Nov. 10, 2018, 12:52 p.m. OK GNU C++11 TESTS 49 30 0 1000
56767661 immortal_101 A July 9, 2019, 7:20 p.m. OK GNU C++14 TESTS 49 15 0 1000
62399405 rush_29 A Oct. 12, 2019, 6:48 a.m. OK GNU C++14 TESTS 49 15 0 1000
57616343 vjudge1 A July 24, 2019, 1:46 a.m. OK GNU C++14 TESTS 49 15 0 1000
50083452 reaperdarkshadow A Feb. 18, 2019, 6 a.m. OK GNU C++14 TESTS 49 15 0 1000
49470347 Jasmit63 A Feb. 4, 2019, 4:52 p.m. OK GNU C++14 TESTS 49 15 0 1000
46978673 sarthak1220 A Dec. 13, 2018, 6:14 p.m. OK GNU C++14 TESTS 49 15 0 1000
46139503 basem.maher A Nov. 24, 2018, 6:45 a.m. OK GNU C++14 TESTS 49 15 0 1000
41579846 Matei.Chirita A Aug. 14, 2018, 7:30 a.m. OK GNU C++14 TESTS 49 15 0 1000
41122074 sujeetkr A Aug. 2, 2018, 12:28 p.m. OK GNU C++14 TESTS 49 15 0 1000
40684217 n_0_thing A July 24, 2018, 12:18 a.m. OK GNU C++14 TESTS 49 15 0 1000
63362745 Mohammed_khaled123 A Oct. 25, 2019, 6:21 a.m. OK GNU C++17 TESTS 49 15 0 1000
41508550 PolarisChiba A Aug. 11, 2018, 11:36 p.m. OK GNU C++17 TESTS 49 15 0 1000
43824171 inficreator A Oct. 5, 2018, 10:58 a.m. OK GNU C++17 TESTS 49 15 0 1000
47488527 Dark_proger A Dec. 25, 2018, 10:34 a.m. OK GNU C++17 TESTS 49 15 0 1000
39865364 OO_I_LOVE_YZQ__OO A July 2, 2018, 10:48 a.m. OK GNU C++17 TESTS 49 15 0 1000
39865389 OO_I_LOVE_YZQ__OO A July 2, 2018, 10:50 a.m. OK GNU C++17 TESTS 49 15 0 1000
39881096 HanaYukii A July 3, 2018, 1:17 a.m. OK GNU C++17 TESTS 49 15 0 1000
39884157 vjudge5 A July 3, 2018, 5:30 a.m. OK GNU C++17 TESTS 49 15 0 1000
40018538 YouKiND A July 6, 2018, 5 a.m. OK GNU C++17 TESTS 49 15 0 1000
40077150 Hanano A July 8, 2018, 6:24 a.m. OK GNU C++17 TESTS 49 15 0 1000
40583451 dejavu6299 A July 20, 2018, 4:03 p.m. OK GNU C++17 Diagnostics TESTS 49 873 0 1000
40599800 zhangyin_ A July 21, 2018, 7:53 a.m. OK GNU C++17 Diagnostics TESTS 49 920 0 1000
41323367 pmduc12 A Aug. 8, 2018, 3:04 a.m. OK GNU C++17 Diagnostics TESTS 49 997 2252800 1000
39866900 Arthur A July 2, 2018, 11:50 a.m. OK Go TESTS 49 31 102400 1000
40085655 isergey.am A July 8, 2018, 12:55 p.m. OK Haskell TESTS 49 31 0 1000
69401353 maheshwari_madhav A Jan. 23, 2020, 8:59 a.m. OK Java 11 TESTS 49 202 0 1000
58347577 Hardikkumar_Katakiya A Aug. 5, 2019, 3:41 p.m. OK Java 8 TESTS 49 108 0 1000
67310524 fundamentals A Dec. 21, 2019, 2:20 a.m. OK Java 8 TESTS 49 109 0 1000
63391427 ijxjdjd A Oct. 25, 2019, 3:22 p.m. OK Java 8 TESTS 49 109 0 1000
54542769 Vatsal53 A May 24, 2019, 3:39 a.m. OK Java 8 TESTS 49 109 0 1000
52321663 O_E A April 4, 2019, 8:10 p.m. OK Java 8 TESTS 49 109 0 1000
51992988 ArmourOfGod A March 29, 2019, 9:43 p.m. OK Java 8 TESTS 49 109 0 1000
50313548 horseprabhat625 A Feb. 22, 2019, 11:07 a.m. OK Java 8 TESTS 49 109 0 1000
48569994 Shivam_72 A Jan. 19, 2019, 11:31 a.m. OK Java 8 TESTS 49 109 0 1000
47094678 Hazard10 A Dec. 16, 2018, 7:51 a.m. OK Java 8 TESTS 49 109 0 1000
46893970 01rajatmalhotra A Dec. 11, 2018, 8:03 a.m. OK Java 8 TESTS 49 109 0 1000
39834405 avi2d A July 1, 2018, 2:46 p.m. OK JavaScript TESTS 49 31 0 1000
39852382 yodhacs A July 1, 2018, 10:33 p.m. OK Kotlin TESTS 49 140 0 1000
39830318 Rushan A July 1, 2018, 2:28 p.m. OK Kotlin TESTS 49 171 102400 1000
39826854 0442A403 A July 1, 2018, 2:17 p.m. OK Kotlin TESTS 49 171 716800 1000
39862036 n.a.borisov A July 2, 2018, 8:36 a.m. OK Mono C# TESTS 49 46 0 1000
54912499 og.kostya A June 1, 2019, 11:55 a.m. OK Mono C# TESTS 49 46 0 1000
39876268 Ruban_Denic A July 2, 2018, 6:21 p.m. OK Mono C# TESTS 49 61 0 1000
39825110 kuuso A July 1, 2018, 2:13 p.m. OK Mono C# TESTS 49 61 3584000 1000
39876982 Allotropia A July 2, 2018, 7:03 p.m. OK Mono C# TESTS 49 62 3584000 1000
44588868 nemars A Oct. 20, 2018, 10:26 a.m. OK Mono C# TESTS 49 62 3584000 1000
39863440 vansang1706 A July 2, 2018, 9:27 a.m. OK Mono C# TESTS 49 62 3584000 1000
66550936 ansergeyg A Dec. 9, 2019, 2:53 p.m. OK Mono C# TESTS 49 77 0 1000
39827435 DMN A July 1, 2018, 2:18 p.m. OK Mono C# TESTS 49 77 3584000 1000
39827855 cumt_fyj971217 A July 1, 2018, 2:20 p.m. OK MS C++ TESTS 49 30 0 1000
46817414 vjudge4 A Dec. 9, 2018, 12:59 p.m. OK MS C++ TESTS 49 30 0 1000
63649406 vjudge3 A Oct. 28, 2019, 10:55 a.m. OK MS C++ TESTS 49 31 0 1000
67507534 weijiu A Dec. 24, 2019, 7:56 a.m. OK MS C++ TESTS 49 31 0 1000
67155172 vjudge4 A Dec. 18, 2019, 12:15 p.m. OK MS C++ TESTS 49 31 0 1000
64724037 vjudge1 A Nov. 12, 2019, 5:42 a.m. OK MS C++ TESTS 49 31 0 1000
63908876 vjudge2 A Oct. 31, 2019, 7:31 a.m. OK MS C++ TESTS 49 31 0 1000
63906899 vjudge4 A Oct. 31, 2019, 6:54 a.m. OK MS C++ TESTS 49 31 0 1000
63897606 vjudge3 A Oct. 31, 2019, 3:09 a.m. OK MS C++ TESTS 49 31 0 1000
63373466 vjudge4 A Oct. 25, 2019, 10:12 a.m. OK MS C++ TESTS 49 31 0 1000
55432703 Mad112233 A June 11, 2019, 12:16 p.m. OK MS C++ 2017 TESTS 49 31 0 1000
63292939 vjudge1 A Oct. 24, 2019, 12:14 p.m. OK MS C++ 2017 TESTS 49 31 0 1000
60315972 tejalnaik A Sept. 9, 2019, 5:55 p.m. OK MS C++ 2017 TESTS 49 31 0 1000
61881716 vjudge5 A Oct. 5, 2019, 12:30 a.m. OK MS C++ 2017 TESTS 49 31 0 1000
56784002 eyesofgod123 A July 10, 2019, 7:33 a.m. OK MS C++ 2017 TESTS 49 31 0 1000
60185969 parisa.mqdm A Sept. 6, 2019, 6:30 p.m. OK MS C++ 2017 TESTS 49 31 0 1000
63118216 Ragnarok54 A Oct. 22, 2019, 10:13 a.m. OK MS C++ 2017 TESTS 49 31 614400 1000
63301942 vjudge5 A Oct. 24, 2019, 2:32 p.m. OK MS C++ 2017 TESTS 49 46 0 1000
61932959 Moen1578 A Oct. 5, 2019, 4:55 p.m. OK MS C++ 2017 TESTS 49 46 0 1000
39881906 JhonTorres A July 3, 2018, 2:20 a.m. OK Node.js TESTS 49 155 204800 1000
47789001 pirvu.catalin94 A Dec. 31, 2018, 12:19 p.m. OK Node.js TESTS 49 170 409600 1000
48302505 moballack A Jan. 12, 2019, 5:44 p.m. OK Node.js TESTS 49 170 409600 1000
47788791 pirvu.catalin94 A Dec. 31, 2018, 12:12 p.m. OK Node.js TESTS 49 171 512000 1000
39830174 fondation A July 1, 2018, 2:28 p.m. OK Ocaml TESTS 49 15 0 1000
39891948 stalst A July 3, 2018, 11:22 a.m. OK PascalABC.NET TESTS 49 46 102400 1000
39830035 Arcadii A July 1, 2018, 2:27 p.m. OK PascalABC.NET TESTS 49 46 819200 1000
39823430 TShT A July 1, 2018, 2:09 p.m. OK PascalABC.NET TESTS 49 62 819200 1000
56555048 Gimber A July 5, 2019, 11:56 a.m. OK PascalABC.NET TESTS 49 327 204800 1000
58256109 28Nik A Aug. 4, 2019, 10:05 a.m. OK PascalABC.NET TESTS 49 327 307200 1000
39850955 takepan2 A July 1, 2018, 8:40 p.m. OK PHP TESTS 49 31 409600 1000
39891605 SamarQusai A July 3, 2018, 11:08 a.m. OK PHP TESTS 49 46 204800 1000
39846615 mayakin A July 1, 2018, 5:43 p.m. OK PHP TESTS 49 46 409600 1000
39823928 _kawaii_neko_ A July 1, 2018, 2:10 p.m. OK PyPy 2 TESTS 49 124 0 1000
39880213 a03090 A July 2, 2018, 11:49 p.m. OK PyPy 2 TESTS 49 124 0 1000
39834612 BurntArgonPancakes A July 1, 2018, 2:47 p.m. OK PyPy 2 TESTS 49 124 0 1000
39846327 aeternalis1 A July 1, 2018, 5:38 p.m. OK PyPy 2 TESTS 49 139 0 1000
39835859 rkstalker A July 1, 2018, 2:53 p.m. OK PyPy 2 TESTS 49 139 0 1000
39825678 pavankatta A July 1, 2018, 2:14 p.m. OK PyPy 2 TESTS 49 139 0 1000
39824700 akshay125 A July 1, 2018, 2:12 p.m. OK PyPy 2 TESTS 49 139 0 1000
39884389 sasasagagaga A July 3, 2018, 5:46 a.m. OK PyPy 2 TESTS 49 140 0 1000
39826661 SerChirag A July 1, 2018, 2:16 p.m. OK PyPy 2 TESTS 49 140 0 1000
39824323 abhigyank A July 1, 2018, 2:11 p.m. OK PyPy 2 TESTS 49 140 0 1000
59087451 tanu38 A Aug. 19, 2019, 11:33 a.m. OK PyPy 3 TESTS 49 124 0 1000
48447518 AbduSharif A Jan. 16, 2019, 8:17 a.m. OK PyPy 3 TESTS 49 124 0 1000
45885220 RasMalai A Nov. 17, 2018, 3:41 p.m. OK PyPy 3 TESTS 49 124 0 1000
45462192 mug A Nov. 9, 2018, 1:49 a.m. OK PyPy 3 TESTS 49 124 0 1000
40544652 egozverev A July 19, 2018, 10:55 a.m. OK PyPy 3 TESTS 49 124 0 1000
50537118 myway_82 A Feb. 26, 2019, 4:15 p.m. OK PyPy 3 TESTS 49 139 0 1000
68127787 k0ndr A Jan. 3, 2020, 3:50 p.m. OK PyPy 3 TESTS 49 140 0 1000
63901940 vishhesh A Oct. 31, 2019, 5:03 a.m. OK PyPy 3 TESTS 49 140 0 1000
61671089 WA-----Me-----AC A Oct. 1, 2019, 6:45 p.m. OK PyPy 3 TESTS 49 140 0 1000
56986441 kchau A July 13, 2019, 4 p.m. OK PyPy 3 TESTS 49 140 0 1000
41613286 tnowakow A Aug. 15, 2018, 7:37 a.m. OK Python 2 TESTS 49 155 0 1000
40050076 snusmumrik A July 7, 2018, 3:40 a.m. OK Python 2 TESTS 49 156 0 1000
39985433 deewan A July 5, 2018, 1:17 p.m. OK Python 2 TESTS 49 156 0 1000
39856062 utoppia A July 2, 2018, 3:35 a.m. OK Python 2 TESTS 49 156 0 1000
39853083 eugalt A July 1, 2018, 11:41 p.m. OK Python 2 TESTS 49 156 0 1000
45201236 SoSooding A Nov. 2, 2018, 10:05 a.m. OK Python 2 TESTS 49 171 0 1000
40894420 god1048 A July 28, 2018, 6:31 p.m. OK Python 2 TESTS 49 171 0 1000
40153425 nealzane A July 10, 2018, 12:27 a.m. OK Python 2 TESTS 49 171 0 1000
39889912 bary A July 3, 2018, 9:53 a.m. OK Python 2 TESTS 49 171 0 1000
39864678 __dangerous__ A July 2, 2018, 10:19 a.m. OK Python 2 TESTS 49 171 0 1000
54471405 yerzh A May 22, 2019, 5:42 a.m. OK Python 3 TESTS 49 108 0 1000
39956975 bahumajanu A July 4, 2018, 1:34 p.m. OK Python 3 TESTS 49 108 0 1000
69184513 cs1g A Jan. 20, 2020, 11:28 a.m. OK Python 3 TESTS 49 109 0 1000
61547249 Annvv A Sept. 30, 2019, 10:59 a.m. OK Python 3 TESTS 49 109 0 1000
61376732 prsb123 safal.gupta001 ranjan123 A Sept. 27, 2019, 4:27 p.m. OK Python 3 TESTS 49 109 0 1000
59606500 jvti A Aug. 28, 2019, 9:04 a.m. OK Python 3 TESTS 49 109 0 1000
58708637 zahra.kh A Aug. 13, 2019, 11:24 a.m. OK Python 3 TESTS 49 109 0 1000
58551544 ziddi A Aug. 10, 2019, 8:19 p.m. OK Python 3 TESTS 49 109 0 1000
52793027 LintuStorm A April 15, 2019, 6:36 p.m. OK Python 3 TESTS 49 109 0 1000
52415320 Mehrdad_ravenS A April 6, 2019, 3:01 p.m. OK Python 3 TESTS 49 109 0 1000
41621030 betrue12 A Aug. 15, 2018, 12:01 p.m. OK Ruby TESTS 49 62 0 1000
39854875 adhi93 A July 2, 2018, 2:20 a.m. OK Ruby TESTS 49 62 102400 1000
39828529 AnandVeeramani A July 1, 2018, 2:22 p.m. OK Ruby TESTS 49 78 0 1000
39831823 provident_napper A July 1, 2018, 2:34 p.m. OK Rust TESTS 49 31 0 1000
39826727 8uk.8ak A July 1, 2018, 2:17 p.m. OK Rust TESTS 49 46 0 1000
39832499 EnBee A July 1, 2018, 2:37 p.m. OK Scala TESTS 49 529 0 1000
39829341 dedok19971 A July 1, 2018, 2:25 p.m. OK Scala TESTS 49 592 0 1000

remove filters

Back to search problems