Codeforces Round 544 (Div. 3)

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
1133 Codeforces Round 544 (Div. 3) FINISHED False 7200 185468087 March 7, 2019, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13081 ) B Preparation for International Women's Day PROGRAMMING math number theory 1300

B'International Women 's Day is coming soon! Polycarp is preparing for the holiday. There are n candy boxes in the shop for sale. The i -th box contains d_i candies. Polycarp wants to prepare the maximum number of gifts for k girls. Each gift will consist of exactly two boxes. The girls should be able to share each gift equally, so the total amount of candies in a gift (in a pair of boxes) should be divisible by k . In other words, two boxes i and j ( i ne j ) can be combined as a gift if d_i + d_j is divisible by k . How many boxes will Polycarp be able to give? Of course, each box can be a part of no more than one gift. Polycarp cannot use boxes "partially" or redistribute candies between them. The first line of the input contains two integers n and k ( 1 <= n <= 2 cdot 10^5, 1 <= k <= 100 ) -- the number the boxes and the number the girls. The second line of the input contains n integers d_1, d_2, ... , d_n ( 1 <= d_i <= 10^9 ), where d_i is the number of candies in the i -th box. Print one integer -- the maximum number of the boxes Polycarp can give as gifts. In the first example Polycarp can give the following pairs of boxes (pairs are presented by indices of corresponding boxes): So the answer is 6 . In the second example Polycarp can give the following pairs of boxes (pairs are presented by indices of corresponding boxes): So the answer is 8 . In the third example Polycarp can give the following pairs of boxes (pairs are presented by indices of corresponding boxes): So the answer is 4 . '...

Tutorials

Codeforces Round #544 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
53608581 champion812r B May 1, 2019, 11:47 a.m. OK Clang++17 Diagnostics TESTS 22 1029 0 1300
62548613 sash0 B Oct. 14, 2019, 7:35 a.m. OK D TESTS 22 93 0 1300
52799936 Denor B April 16, 2019, 2:10 a.m. OK Delphi TESTS 22 62 0 1300
51814254 pqhieu B March 25, 2019, 8:06 a.m. OK FPC TESTS 22 62 819200 1300
52290454 omlgg jamienguyen d4rkn19ht B April 4, 2019, 12:51 a.m. OK FPC TESTS 22 77 921600 1300
51432136 chaorenhaha B March 18, 2019, 2:01 a.m. OK FPC TESTS 22 77 4300800 1300
52580962 vjudge2 B April 10, 2019, 7:09 p.m. OK GNU C11 TESTS 22 46 0 1300
52143604 Felix555 B April 1, 2019, 8:09 a.m. OK GNU C11 TESTS 22 46 0 1300
54421034 rainboy B May 20, 2019, 3:27 p.m. OK GNU C11 TESTS 22 46 0 1300
53818766 Overstars Houbunsha Macarons B May 6, 2019, 12:04 p.m. OK GNU C11 TESTS 22 46 0 1300
53273496 ishank1010 B April 25, 2019, 7:57 a.m. OK GNU C11 TESTS 22 46 0 1300
51937092 ananaygupta70 B March 28, 2019, 12:54 p.m. OK GNU C11 TESTS 22 46 819200 1300
53979876 vjudge4 B May 11, 2019, 6:34 a.m. OK GNU C11 TESTS 22 61 0 1300
53304449 hyperbolae B April 26, 2019, 1:02 a.m. OK GNU C11 TESTS 22 61 0 1300
51360891 LangZi B March 16, 2019, 7:13 a.m. OK GNU C11 TESTS 22 61 0 1300
54648574 Anber B May 26, 2019, 3:19 a.m. OK GNU C11 TESTS 22 61 819200 1300
51293850 _o__o__ B March 14, 2019, 11:41 a.m. OK GNU C++11 TESTS 22 31 0 1300
51221993 whhQAQ B March 12, 2019, 12:47 p.m. OK GNU C++11 TESTS 22 31 0 1300
51123690 xiezichen B March 10, 2019, 10:35 a.m. OK GNU C++11 TESTS 22 31 0 1300
51088526 guaguastandup B March 9, 2019, 1:56 p.m. OK GNU C++11 TESTS 22 31 0 1300
53982069 rid.dle B May 11, 2019, 7:39 a.m. OK GNU C++11 TESTS 22 31 0 1300
56848693 littletiger B July 11, 2019, 2:42 p.m. OK GNU C++11 TESTS 22 31 0 1300
53293180 vjudge1 B April 25, 2019, 4:26 p.m. OK GNU C++11 TESTS 22 31 0 1300
52773522 luogu_bot1 B April 15, 2019, 10:38 a.m. OK GNU C++11 TESTS 22 31 0 1300
51358881 lalalaqwq B March 16, 2019, 6:09 a.m. OK GNU C++11 TESTS 22 31 0 1300
54844861 UBERMENSCH. B May 30, 2019, 1:22 p.m. OK GNU C++11 TESTS 22 31 819200 1300
51345230 ..vince B March 15, 2019, 6:05 p.m. OK GNU C++14 TESTS 22 61 0 1300
51088709 MS1908 B March 9, 2019, 2 p.m. OK GNU C++14 TESTS 22 61 819200 1300
68348233 Scut82 B Jan. 7, 2020, 8:28 a.m. OK GNU C++14 TESTS 22 61 1638400 1300
60339023 sushil123 B Sept. 10, 2019, 9:55 a.m. OK GNU C++14 TESTS 22 62 0 1300
62976300 Saurabh66 B Oct. 20, 2019, 8:42 a.m. OK GNU C++14 TESTS 22 62 0 1300
62899814 kyrgyz.nomad B Oct. 19, 2019, 3:28 a.m. OK GNU C++14 TESTS 22 62 0 1300
55679213 ilmaxwell B June 17, 2019, 12:08 p.m. OK GNU C++14 TESTS 22 62 0 1300
69650591 Scut82 B Jan. 28, 2020, 4:57 a.m. OK GNU C++14 TESTS 22 62 0 1300
69174660 You_Know_Who B Jan. 20, 2020, 7:37 a.m. OK GNU C++14 TESTS 22 62 0 1300
64731758 Love_dkq_Forever B Nov. 12, 2019, 8:42 a.m. OK GNU C++14 TESTS 22 62 0 1300
51104859 .tx B March 9, 2019, 9:24 p.m. OK GNU C++17 TESTS 22 31 0 1300
52312240 vjudge4 B April 4, 2019, 3:13 p.m. OK GNU C++17 TESTS 22 46 0 1300
51229501 hansc0320 B March 12, 2019, 3:31 p.m. OK GNU C++17 TESTS 22 61 0 1300
51548812 kessido B March 19, 2019, 10:02 p.m. OK GNU C++17 TESTS 22 61 819200 1300
53188032 cry353767361 B April 23, 2019, 11:25 a.m. OK GNU C++17 TESTS 22 61 819200 1300
52273351 wcliao B April 3, 2019, 1:53 p.m. OK GNU C++17 TESTS 22 61 4812800 1300
58885814 vjudge1 B Aug. 16, 2019, 2:07 a.m. OK GNU C++17 TESTS 22 62 0 1300
65598000 nbsjy B Nov. 23, 2019, 4:43 p.m. OK GNU C++17 TESTS 22 62 0 1300
66593600 vjudge4 B Dec. 10, 2019, 1:51 p.m. OK GNU C++17 TESTS 22 62 0 1300
68430597 vjudge3 B Jan. 9, 2020, 6:38 a.m. OK GNU C++17 TESTS 22 62 0 1300
51471047 365050244 B March 19, 2019, 6:31 a.m. OK Go TESTS 22 46 0 1300
61685975 120405217 B Oct. 2, 2019, 3:49 a.m. OK Go TESTS 22 202 0 1300
51958032 sonowz B March 29, 2019, 4:35 a.m. OK Haskell TESTS 22 529 47308800 1300
69518986 satya_p54 B Jan. 25, 2020, 12:53 p.m. OK Java 11 TESTS 22 234 0 1300
54883028 cribabby B May 31, 2019, 3:29 p.m. OK Java 8 TESTS 22 108 0 1300
60659026 gamesterrex B Sept. 16, 2019, 3:01 a.m. OK Java 8 TESTS 22 109 0 1300
56910295 Snow B July 12, 2019, 3:20 p.m. OK Java 8 TESTS 22 124 0 1300
56908896 Snow B July 12, 2019, 3:16 p.m. OK Java 8 TESTS 22 124 0 1300
56725718 swapnil9090 B July 8, 2019, 7:34 p.m. OK Java 8 TESTS 22 124 0 1300
54531777 shubhammitt B May 23, 2019, 5:26 p.m. OK Java 8 TESTS 22 124 0 1300
52478165 chojh1222 B April 8, 2019, 2:14 a.m. OK Java 8 TESTS 22 124 0 1300
51620414 ahaddce B March 21, 2019, 2:05 p.m. OK Java 8 TESTS 22 124 0 1300
51441328 abhi2601 B March 18, 2019, 10:06 a.m. OK Java 8 TESTS 22 124 0 1300
51432961 dyhu083 B March 18, 2019, 3:14 a.m. OK Java 8 TESTS 22 124 0 1300
51145064 Harolinch B March 10, 2019, 10:53 p.m. OK JavaScript TESTS 22 140 18944000 1300
54282337 Quaternion B May 17, 2019, 2:03 p.m. OK Kotlin TESTS 22 343 17203200 1300
51485773 GiackAloZ B March 19, 2019, 1:30 p.m. OK Kotlin TESTS 22 358 17203200 1300
60197114 jmrh_1 B Sept. 7, 2019, 2:34 a.m. OK Kotlin TESTS 22 358 20582400 1300
59908353 david_varela B Sept. 2, 2019, 4:15 p.m. OK Kotlin TESTS 22 374 17203200 1300
58887413 Spheniscine B Aug. 16, 2019, 3:06 a.m. OK Kotlin TESTS 22 374 17203200 1300
51485750 GiackAloZ B March 19, 2019, 1:29 p.m. OK Kotlin TESTS 22 374 17203200 1300
51484928 GiackAloZ B March 19, 2019, 1:10 p.m. OK Kotlin TESTS 22 374 17203200 1300
58887444 Spheniscine B Aug. 16, 2019, 3:07 a.m. OK Kotlin TESTS 22 405 17203200 1300
56411660 sashamc B July 2, 2019, 12:42 a.m. OK Kotlin TESTS 22 405 17510400 1300
54964457 og.kostya B June 2, 2019, 5:43 a.m. OK Mono C# TESTS 22 62 0 1300
51094085 Mosyagin B March 9, 2019, 3:33 p.m. OK Mono C# TESTS 22 124 18944000 1300
51361682 mayumi B March 16, 2019, 7:36 a.m. OK Mono C# TESTS 22 124 18944000 1300
52934539 treasuryonly B April 18, 2019, 5:32 a.m. OK Mono C# TESTS 22 124 19763200 1300
54712412 maxkh B May 27, 2019, 11:12 a.m. OK Mono C# TESTS 22 124 22835200 1300
51289352 TRR B March 14, 2019, 9:15 a.m. OK Mono C# TESTS 22 139 18944000 1300
51094152 Mosyagin B March 9, 2019, 3:35 p.m. OK Mono C# TESTS 22 140 18944000 1300
51197577 NataliVol4ica B March 11, 2019, 8:25 p.m. OK Mono C# TESTS 22 140 24678400 1300
63216445 Natasha888 B Oct. 23, 2019, 6:16 a.m. OK Mono C# TESTS 22 140 25497600 1300
51359160 nastya1199 B March 16, 2019, 6:19 a.m. OK Mono C# TESTS 22 155 22528000 1300
51448844 vjudge4 B March 18, 2019, 1:45 p.m. OK MS C++ TESTS 22 46 0 1300
51889816 vjudge2 B March 27, 2019, 8:33 a.m. OK MS C++ TESTS 22 46 819200 1300
51889545 vjudge5 B March 27, 2019, 8:24 a.m. OK MS C++ TESTS 22 46 819200 1300
51471648 vjudge3 B March 19, 2019, 6:53 a.m. OK MS C++ TESTS 22 46 819200 1300
51132443 vjudge3 B March 10, 2019, 2:20 p.m. OK MS C++ TESTS 22 46 819200 1300
52307192 vjudge4 B April 4, 2019, 12:50 p.m. OK MS C++ TESTS 22 46 1638400 1300
51088527 vjudge1 B March 9, 2019, 1:56 p.m. OK MS C++ TESTS 22 61 0 1300
62516667 vjudge2 B Oct. 13, 2019, 2:34 p.m. OK MS C++ TESTS 22 61 0 1300
54335021 vjudge4 B May 18, 2019, 7:43 a.m. OK MS C++ TESTS 22 61 0 1300
51435335 vjudge3 B March 18, 2019, 5:56 a.m. OK MS C++ TESTS 22 61 0 1300
52066457 booiris B March 31, 2019, 5:42 a.m. OK MS C++ 2017 TESTS 22 77 0 1300
58689114 ZSTU-2018329621261 B Aug. 13, 2019, 2:07 a.m. OK MS C++ 2017 TESTS 22 78 0 1300
62452134 catplatypus B Oct. 13, 2019, 4:46 a.m. OK MS C++ 2017 TESTS 22 78 0 1300
69820330 vjudge4 B Jan. 30, 2020, 7:35 a.m. OK MS C++ 2017 TESTS 22 78 0 1300
57726588 vjudge4 B July 25, 2019, 7:21 a.m. OK MS C++ 2017 TESTS 22 78 0 1300
52501656 NVX B April 8, 2019, 4:24 p.m. OK MS C++ 2017 TESTS 22 78 409600 1300
51152427 S-plus B March 11, 2019, 8:43 a.m. OK MS C++ 2017 TESTS 22 78 819200 1300
51444660 minhphuong14 B March 18, 2019, 11:56 a.m. OK MS C++ 2017 TESTS 22 78 819200 1300
51896579 R99 B March 27, 2019, 11:50 a.m. OK MS C++ 2017 TESTS 22 78 819200 1300
54536370 MortyThePlatypus B May 23, 2019, 8:30 p.m. OK MS C++ 2017 TESTS 22 78 819200 1300
52352384 Houy3 B April 5, 2019, 3:08 p.m. OK PascalABC.NET TESTS 22 498 0 1300
51587485 mm944 B March 20, 2019, 5:02 p.m. OK PascalABC.NET TESTS 22 514 1638400 1300
52026741 mike88ua B March 30, 2019, 3:18 p.m. OK PyPy 2 TESTS 22 171 11468800 1300
51144922 Maruchan B March 10, 2019, 10:41 p.m. OK PyPy 2 TESTS 22 171 13004800 1300
55313259 shafwanur010 B June 8, 2019, 7:09 p.m. OK PyPy 2 TESTS 22 186 14131200 1300
51141649 fortmax120 B March 10, 2019, 7:41 p.m. OK PyPy 2 TESTS 22 187 12083200 1300
51153575 gatsko B March 11, 2019, 9:20 a.m. OK PyPy 2 TESTS 22 202 12800000 1300
51209855 oscarchichun B March 12, 2019, 7:16 a.m. OK PyPy 2 TESTS 22 202 14745600 1300
64753802 nosy B Nov. 12, 2019, 4:11 p.m. OK PyPy 2 TESTS 22 218 11264000 1300
51667460 artifexbm B March 22, 2019, 6:43 a.m. OK PyPy 3 TESTS 22 265 16793600 1300
51277883 yfo B March 13, 2019, 11:50 p.m. OK PyPy 3 TESTS 22 265 16896000 1300
51231047 Captainum B March 12, 2019, 4:16 p.m. OK PyPy 3 TESTS 22 265 16896000 1300
51132182 spikh B March 10, 2019, 2:12 p.m. OK PyPy 3 TESTS 22 265 16896000 1300
52538383 ArthurT B April 9, 2019, 4:47 p.m. OK PyPy 3 TESTS 22 265 17100800 1300
52335813 hmnid B April 5, 2019, 7:55 a.m. OK PyPy 3 TESTS 22 280 16588800 1300
51109490 thevirtual B March 10, 2019, 3:05 a.m. OK PyPy 3 TESTS 22 280 16588800 1300
51328493 vovosch B March 15, 2019, 11:06 a.m. OK PyPy 3 TESTS 22 280 16793600 1300
51267918 Stephan B March 13, 2019, 4:30 p.m. OK PyPy 3 TESTS 22 280 16896000 1300
53115669 vit_72 B April 22, 2019, 7:48 a.m. OK PyPy 3 TESTS 22 280 17305600 1300
51736103 jrobsonjr B March 23, 2019, 2:34 a.m. OK Python 2 TESTS 22 280 11161600 1300
51214105 SoSooding B March 12, 2019, 9:30 a.m. OK Python 2 TESTS 22 280 11161600 1300
59331667 vjudge3 B Aug. 23, 2019, 1:37 a.m. OK Python 2 TESTS 22 296 11161600 1300
54844775 musayime B May 30, 2019, 1:20 p.m. OK Python 2 TESTS 22 296 11161600 1300
51653874 vjudge2 B March 21, 2019, 8:12 p.m. OK Python 2 TESTS 22 296 11161600 1300
51417759 nealzane B March 17, 2019, 2:55 p.m. OK Python 2 TESTS 22 296 11161600 1300
59331637 mateusqc B Aug. 23, 2019, 1:36 a.m. OK Python 2 TESTS 22 311 11161600 1300
51443908 smunjal96 B March 18, 2019, 11:35 a.m. OK Python 2 TESTS 22 311 11161600 1300
52242974 vjudge4 B April 2, 2019, 5:34 p.m. OK Python 2 TESTS 22 342 11161600 1300
51993173 vjudge5 B March 29, 2019, 9:54 p.m. OK Python 2 TESTS 22 342 11161600 1300
62057019 vjudge2 B Oct. 7, 2019, 12:25 p.m. OK Python 3 TESTS 22 202 14028800 1300
51328303 vladl2802 B March 15, 2019, 11 a.m. OK Python 3 TESTS 22 202 16486400 1300
53799616 FedorX B May 5, 2019, 5:39 p.m. OK Python 3 TESTS 22 217 16179200 1300
51480794 nstoyanov1256 B March 19, 2019, 11:30 a.m. OK Python 3 TESTS 22 217 16486400 1300
51204818 baebae B March 12, 2019, 3:48 a.m. OK Python 3 TESTS 22 217 16486400 1300
51124844 galim665 B March 10, 2019, 11:08 a.m. OK Python 3 TESTS 22 217 16486400 1300
62056103 vjudge3 B Oct. 7, 2019, 12:07 p.m. OK Python 3 TESTS 22 218 13721600 1300
57585218 Vasiliy_48 B July 23, 2019, 10:21 a.m. OK Python 3 TESTS 22 218 13926400 1300
62056064 condado B Oct. 7, 2019, 12:06 p.m. OK Python 3 TESTS 22 218 14028800 1300
52550537 lamn B April 10, 2019, 3:46 a.m. OK Python 3 TESTS 22 218 14028800 1300
51106380 dmitry_vk B March 9, 2019, 10:59 p.m. OK Rust TESTS 22 46 4198400 1300
55406443 kobae964 B June 10, 2019, 4:50 p.m. OK Rust TESTS 22 124 1126400 1300
51334664 yakamoto B March 15, 2019, 1:38 p.m. OK Scala TESTS 22 452 0 1300

remove filters

Back to search problems