Codeforces Round 543 (Div. 2, based on Technocup 2019 Final Round)

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
1121 Codeforces Round 543 (Div. 2, based on Technocup 2019 Final Round) FINISHED False 7200 180195899 March 3, 2019, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9089 ) B Mike and Children PROGRAMMING brute force implementation 1200

B"Mike decided to teach programming to children in an elementary school. He knows that it is not an easy task to interest children in that age to code. That is why he decided to give each child two sweets. Mike has n sweets with sizes a_1, a_2, ldots, a_n . All his sweets have different sizes. That is, there is no such pair (i, j) ( 1 <= q i, j <= q n ) such that i ne j and a_i = a_j . Since Mike has taught for many years, he knows that if he gives two sweets with sizes a_i and a_j to one child and a_k and a_p to another, where (a_i + a_j) neq (a_k + a_p) , then a child who has a smaller sum of sizes will be upset. That is, if there are two children who have different sums of sweets, then one of them will be upset. Apparently, Mike does not want somebody to be upset. Mike wants to invite children giving each of them two sweets. Obviously, he can't give one sweet to two or more children. His goal is to invite as many children as he can. Since Mike is busy preparing to his first lecture in the elementary school, he is asking you to find the maximum number of children he can invite giving each of them two sweets in such way that nobody will be upset. The first line contains one integer n ( 2 <= q n <= q 1 ,000 ) -- the number of sweets Mike has. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 10^5 ) -- the sizes of the sweets. It is guaranteed that all integers are distinct. Print one integer -- the maximum number of children Mike can invite giving each of them two sweets in such way that nobody will be upset. In the first example, Mike can give 9+2=11 to one child, 8+3=11 to another one, and 7+4=11 to the third child. Therefore, Mike can invite three children. Note that it is not the only solution. In the second example, Mike can give 3+9=12 to one child and 1+11 to another one. Therefore, Mike can invite t"...

Tutorials

Codeforces Round #543 and Technocup 2019 Final Round Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
63923246 TianZuiXing B Oct. 31, 2019, 12:20 p.m. OK Clang++17 Diagnostics TESTS 25 78 0 1200
50745623 ruban B March 3, 2019, 3:59 p.m. OK Delphi TESTS 25 421 24064000 1200
50912713 pqhieu02 B March 7, 2019, 3:53 a.m. OK FPC TESTS 25 15 1638400 1200
51852682 pqhieu B March 26, 2019, 8:58 a.m. OK FPC TESTS 25 31 819200 1200
50769993 NDK218 B March 4, 2019, 3:37 a.m. OK FPC TESTS 25 31 1024000 1200
50741675 PhuongPeu B March 3, 2019, 3:42 p.m. OK FPC TESTS 25 31 1126400 1200
50743110 Oompaloompa B March 3, 2019, 3:49 p.m. OK FPC TESTS 25 31 1228800 1200
51473447 chaorenhaha B March 19, 2019, 8 a.m. OK FPC TESTS 25 31 1638400 1200
50753736 PAG B March 3, 2019, 4:56 p.m. OK FPC TESTS 25 31 1638400 1200
51473426 chaorenhaha B March 19, 2019, 8 a.m. OK FPC TESTS 25 31 1638400 1200
51473443 chaorenhaha B March 19, 2019, 8 a.m. OK FPC TESTS 25 31 1843200 1200
51473412 chaorenhaha B March 19, 2019, 7:59 a.m. OK FPC TESTS 25 31 1843200 1200
51475935 powerkeke B March 19, 2019, 9:23 a.m. OK GNU C11 TESTS 25 15 819200 1200
50844123 vjudge1 B March 5, 2019, 4:12 p.m. OK GNU C11 TESTS 25 30 819200 1200
50806219 ritg B March 5, 2019, 5:41 a.m. OK GNU C11 TESTS 25 30 819200 1200
63923417 TianZuiXing B Oct. 31, 2019, 12:22 p.m. OK GNU C11 TESTS 25 30 819200 1200
50860035 kpranjal2047 B March 5, 2019, 5:54 p.m. OK GNU C11 TESTS 25 31 819200 1200
50901327 sachinnn B March 6, 2019, 5:35 p.m. OK GNU C11 TESTS 25 31 819200 1200
51030188 NoSoul B March 8, 2019, 1:27 p.m. OK GNU C11 TESTS 25 31 819200 1200
52507831 rainboy B April 8, 2019, 7:51 p.m. OK GNU C11 TESTS 25 31 819200 1200
53048440 Felix555 B April 20, 2019, 1:24 p.m. OK GNU C11 TESTS 25 31 819200 1200
56857234 kaiboy B July 11, 2019, 7:11 p.m. OK GNU C11 TESTS 25 31 819200 1200
50744249 Megadeth B March 3, 2019, 3:53 p.m. OK GNU C++11 TESTS 25 15 614400 1200
50746058 aymanrasheed7 B March 3, 2019, 4:01 p.m. OK GNU C++11 TESTS 25 15 819200 1200
50753489 duanfa B March 3, 2019, 4:53 p.m. OK GNU C++11 TESTS 25 15 1638400 1200
51295286 julianfernando B March 14, 2019, 12:14 p.m. OK GNU C++11 TESTS 25 30 614400 1200
50775076 _ShadowSong B March 4, 2019, 7:55 a.m. OK GNU C++11 TESTS 25 30 614400 1200
50742087 SpoonsAN B March 3, 2019, 3:44 p.m. OK GNU C++11 TESTS 25 30 614400 1200
50743745 wjyyy B March 3, 2019, 3:51 p.m. OK GNU C++11 TESTS 25 30 614400 1200
52293029 vjudge4 B April 4, 2019, 3:57 a.m. OK GNU C++11 TESTS 25 30 819200 1200
68967392 kli B Jan. 17, 2020, 5:37 a.m. OK GNU C++11 TESTS 25 30 819200 1200
52767376 morestep999 B April 15, 2019, 5:25 a.m. OK GNU C++11 TESTS 25 30 819200 1200
50930034 God_of_Thunder_Unworthy B March 7, 2019, 1:31 p.m. OK GNU C++14 TESTS 25 15 819200 1200
58962279 harrypotpot B Aug. 17, 2019, 3:52 p.m. OK GNU C++14 TESTS 25 15 819200 1200
56079444 Free_fire B June 26, 2019, 2:29 p.m. OK GNU C++14 TESTS 25 15 819200 1200
53717946 gihewapos B May 3, 2019, 8:06 p.m. OK GNU C++14 TESTS 25 15 819200 1200
52791277 moidda B April 15, 2019, 5:34 p.m. OK GNU C++14 TESTS 25 15 819200 1200
52155092 saransh_gupta B April 1, 2019, 1:08 p.m. OK GNU C++14 TESTS 25 15 819200 1200
52127642 SHAKHAWAT_SHIHAB B March 31, 2019, 6:32 p.m. OK GNU C++14 TESTS 25 15 819200 1200
51002223 13553812325 B March 8, 2019, 7:17 a.m. OK GNU C++14 TESTS 25 15 819200 1200
50912503 Mormo_1703119 B March 7, 2019, 3:42 a.m. OK GNU C++14 TESTS 25 15 819200 1200
50814317 starbot B March 5, 2019, 10:44 a.m. OK GNU C++14 TESTS 25 15 819200 1200
53123907 Zhangks B April 22, 2019, 12:50 p.m. OK GNU C++17 TESTS 25 15 819200 1200
55395808 Mastre B June 10, 2019, 11:43 a.m. OK GNU C++17 TESTS 25 15 819200 1200
55524164 mehuld B June 13, 2019, 10:16 a.m. OK GNU C++17 TESTS 25 15 819200 1200
55531903 sudodragon B June 13, 2019, 2:02 p.m. OK GNU C++17 TESTS 25 15 819200 1200
52539330 archit_akg B April 9, 2019, 5:13 p.m. OK GNU C++17 TESTS 25 15 819200 1200
55691505 m.hasan01 B June 17, 2019, 6:27 p.m. OK GNU C++17 TESTS 25 15 819200 1200
59865338 O_Ob B Sept. 1, 2019, 4:56 p.m. OK GNU C++17 TESTS 25 15 819200 1200
59956223 _Madotsuki_ B Sept. 3, 2019, 4:16 p.m. OK GNU C++17 TESTS 25 15 819200 1200
68032268 SS-123 B Jan. 1, 2020, 9:59 a.m. OK GNU C++17 TESTS 25 15 819200 1200
68932632 heon B Jan. 16, 2020, 11:47 a.m. OK GNU C++17 TESTS 25 15 819200 1200
60893144 sighduck B Sept. 19, 2019, 5:43 p.m. OK Go TESTS 25 62 4505600 1200
50743209 caidodo0_0 B March 3, 2019, 3:49 p.m. OK Go TESTS 25 62 5222400 1200
50747763 gksato B March 3, 2019, 4:09 p.m. OK Haskell TESTS 25 390 12697600 1200
50797836 4mda4mda B March 4, 2019, 7:53 p.m. OK Java 8 TESTS 25 109 0 1200
59645065 Garett B Aug. 29, 2019, 5:11 a.m. OK Java 8 TESTS 25 109 0 1200
51163048 Priyank B March 11, 2019, 1:13 p.m. OK Java 8 TESTS 25 109 0 1200
51103805 nesdi B March 9, 2019, 8:35 p.m. OK Java 8 TESTS 25 109 0 1200
51032747 Suunn B March 8, 2019, 1:46 p.m. OK Java 8 TESTS 25 109 0 1200
50769427 MubtasimShahriar B March 4, 2019, 2:56 a.m. OK Java 8 TESTS 25 109 0 1200
50753386 Shivam98 B March 3, 2019, 4:53 p.m. OK Java 8 TESTS 25 109 0 1200
67112519 adzi B Dec. 17, 2019, 4:55 p.m. OK Java 8 TESTS 25 124 0 1200
59645079 Garett B Aug. 29, 2019, 5:11 a.m. OK Java 8 TESTS 25 124 0 1200
52507830 Dukkha B April 8, 2019, 7:51 p.m. OK Java 8 TESTS 25 124 0 1200
50750432 Arkabekuly_Mukhtar B March 3, 2019, 4:26 p.m. OK Kotlin TESTS 25 171 1024000 1200
50755026 spookywooky B March 3, 2019, 5:11 p.m. OK Kotlin TESTS 25 186 1331200 1200
62103372 Spheniscine B Oct. 8, 2019, 9:54 a.m. OK Kotlin TESTS 25 233 5222400 1200
51774320 RSBat B March 23, 2019, 8:25 p.m. OK Kotlin TESTS 25 264 5529600 1200
60020235 rego97 B Sept. 4, 2019, 12:56 p.m. OK Kotlin TESTS 25 342 4915200 1200
50746984 eki B March 3, 2019, 4:05 p.m. OK Mono C# TESTS 25 46 7987200 1200
50751928 scorzh B March 3, 2019, 4:38 p.m. OK Mono C# TESTS 25 61 819200 1200
50994862 treasuryonly B March 8, 2019, 2:45 a.m. OK Mono C# TESTS 25 62 819200 1200
56060048 og.kostya B June 26, 2019, 4:48 a.m. OK Mono C# TESTS 25 77 4403200 1200
68932548 vjudge3 B Jan. 16, 2020, 11:46 a.m. OK Mono C# TESTS 25 77 6451200 1200
50780722 amit1509kumar B March 4, 2019, 11:13 a.m. OK Mono C# TESTS 25 77 11571200 1200
50868143 SegaMegaDrive B March 5, 2019, 10 p.m. OK Mono C# TESTS 25 77 16691200 1200
50797807 DarkDove B March 4, 2019, 7:52 p.m. OK Mono C# TESTS 25 78 13107200 1200
50760876 SkyStalker B March 3, 2019, 7:21 p.m. OK Mono C# TESTS 25 93 1945600 1200
50749687 omikad B March 3, 2019, 4:20 p.m. OK Mono C# TESTS 25 93 16691200 1200
54387096 vjudge4 B May 19, 2019, 1:58 p.m. OK MS C++ TESTS 25 15 819200 1200
68741555 vjudge1 B Jan. 14, 2020, 1:33 a.m. OK MS C++ TESTS 25 30 819200 1200
51135691 vjudge3 B March 10, 2019, 4 p.m. OK MS C++ TESTS 25 30 1638400 1200
51932402 MiaoTangYuan B March 28, 2019, 11:03 a.m. OK MS C++ TESTS 25 30 25702400 1200
66485679 vjudge4 B Dec. 8, 2019, 6:13 a.m. OK MS C++ TESTS 25 31 819200 1200
66484499 vjudge4 B Dec. 8, 2019, 5:35 a.m. OK MS C++ TESTS 25 31 819200 1200
64123516 TianZuiXing B Nov. 3, 2019, 3:10 a.m. OK MS C++ TESTS 25 31 819200 1200
66487432 vjudge2 B Dec. 8, 2019, 7:05 a.m. OK MS C++ TESTS 25 31 819200 1200
68709088 vjudge2 B Jan. 13, 2020, 12:22 p.m. OK MS C++ TESTS 25 31 819200 1200
68744646 vjudge4 B Jan. 14, 2020, 3:48 a.m. OK MS C++ TESTS 25 31 819200 1200
51116055 Hrbust_yr B March 10, 2019, 6:58 a.m. OK MS C++ 2017 TESTS 25 31 819200 1200
50759912 tellreak B March 3, 2019, 6:48 p.m. OK MS C++ 2017 TESTS 25 31 819200 1200
50880679 TheNie B March 6, 2019, 8:45 a.m. OK MS C++ 2017 TESTS 25 31 819200 1200
52125483 amirkho B March 31, 2019, 5:25 p.m. OK MS C++ 2017 TESTS 25 31 819200 1200
54979196 R99 B June 2, 2019, 12:18 p.m. OK MS C++ 2017 TESTS 25 31 819200 1200
57183551 dragonliulong B July 17, 2019, 8:01 a.m. OK MS C++ 2017 TESTS 25 31 819200 1200
58072203 Mad112233 B July 31, 2019, 11:06 a.m. OK MS C++ 2017 TESTS 25 31 819200 1200
61878197 mihwon B Oct. 4, 2019, 9:18 p.m. OK MS C++ 2017 TESTS 25 31 819200 1200
62038955 coder_pikachu B Oct. 7, 2019, 5:11 a.m. OK MS C++ 2017 TESTS 25 31 819200 1200
63921651 vjudge4 B Oct. 31, 2019, 11:53 a.m. OK MS C++ 2017 TESTS 25 31 819200 1200
59920560 evanli2014 B Sept. 2, 2019, 10:17 p.m. OK Node.js TESTS 25 171 1740800 1200
50821686 sngv B March 5, 2019, 1:48 p.m. OK Node.js TESTS 25 311 23142400 1200
50820212 fanos B March 5, 2019, 1:14 p.m. OK PascalABC.NET TESTS 25 186 102400 1200
50759511 sbairammariabs B March 3, 2019, 6:36 p.m. OK PascalABC.NET TESTS 25 186 78131200 1200
50751239 great_fortune B March 3, 2019, 4:32 p.m. OK PascalABC.NET TESTS 25 187 102400 1200
50759682 sbairammariabs B March 3, 2019, 6:41 p.m. OK PascalABC.NET TESTS 25 187 78131200 1200
50749405 mostyka B March 3, 2019, 4:18 p.m. OK PascalABC.NET TESTS 25 202 0 1200
51306291 mm944 B March 14, 2019, 4:57 p.m. OK PascalABC.NET TESTS 25 405 241049600 1200
50808164 Stanislav666 B March 5, 2019, 6:54 a.m. OK PascalABC.NET TESTS 25 1981 819200 1200
50750759 CrazyDr B March 3, 2019, 4:28 p.m. OK PHP TESTS 25 124 28979200 1200
50761409 mayakin B March 3, 2019, 7:40 p.m. OK PHP TESTS 25 889 87859200 1200
50921312 apoorv1999 B March 7, 2019, 9:23 a.m. OK PyPy 2 TESTS 25 140 1126400 1200
50742294 Madad_Ali_Madad B March 3, 2019, 3:45 p.m. OK PyPy 2 TESTS 25 140 1126400 1200
50744761 kipply B March 3, 2019, 3:55 p.m. OK PyPy 2 TESTS 25 155 1126400 1200
51761788 soumyasarkar1998 B March 23, 2019, 2:04 p.m. OK PyPy 2 TESTS 25 155 1126400 1200
50747966 cherry_su B March 3, 2019, 4:10 p.m. OK PyPy 2 TESTS 25 155 2048000 1200
50747097 wangkan2001 B March 3, 2019, 4:05 p.m. OK PyPy 2 TESTS 25 217 10035200 1200
50750464 supachai_pay B March 3, 2019, 4:26 p.m. OK PyPy 2 TESTS 25 217 10547200 1200
50746401 ilkerkosaroglu B March 3, 2019, 4:02 p.m. OK PyPy 2 TESTS 25 217 10649600 1200
50747161 Mukundan314 B March 3, 2019, 4:06 p.m. OK PyPy 2 TESTS 25 577 10547200 1200
50745592 Risen_Again B March 3, 2019, 3:58 p.m. OK PyPy 2 TESTS 25 654 48435200 1200
50745994 Shiisui B March 3, 2019, 4 p.m. OK PyPy 3 TESTS 25 140 921600 1200
50743948 conjecture_xyz B March 3, 2019, 3:52 p.m. OK PyPy 3 TESTS 25 140 7168000 1200
50753335 burakkahveci633 B March 3, 2019, 4:52 p.m. OK PyPy 3 TESTS 25 140 7270400 1200
51209464 greed2411 B March 12, 2019, 7:02 a.m. OK PyPy 3 TESTS 25 155 921600 1200
50759010 sanyam1101 B March 3, 2019, 6:24 p.m. OK PyPy 3 TESTS 25 155 921600 1200
50753014 beemax B March 3, 2019, 4:49 p.m. OK PyPy 3 TESTS 25 155 921600 1200
50812103 armoking B March 5, 2019, 9:23 a.m. OK PyPy 3 TESTS 25 155 1024000 1200
59375495 kchau B Aug. 23, 2019, 9:31 p.m. OK PyPy 3 TESTS 25 155 2150400 1200
51992171 Kirillov_Alexey B March 29, 2019, 8:56 p.m. OK PyPy 3 TESTS 25 155 7065600 1200
50743952 asdfqwert B March 3, 2019, 3:52 p.m. OK PyPy 3 TESTS 25 155 7168000 1200
51146536 agnusmaximus B March 11, 2019, 1:17 a.m. OK Python 2 TESTS 25 296 5939200 1200
51349580 rohan999 B March 15, 2019, 8:44 p.m. OK Python 2 TESTS 25 343 5939200 1200
50820784 noob77777 B March 5, 2019, 1:27 p.m. OK Python 2 TESTS 25 358 5939200 1200
50792102 SoSooding B March 4, 2019, 4:16 p.m. OK Python 2 TESTS 25 373 5939200 1200
50802162 nealzane B March 5, 2019, 1:13 a.m. OK Python 2 TESTS 25 389 5836800 1200
50743483 charan9948 B March 3, 2019, 3:50 p.m. OK Python 2 TESTS 25 404 5939200 1200
50747964 bl4ckc4t B March 3, 2019, 4:10 p.m. OK Python 2 TESTS 25 404 6656000 1200
50742606 ashashwat B March 3, 2019, 3:47 p.m. OK Python 2 TESTS 25 405 10035200 1200
50754278 aarush22 B March 3, 2019, 5:03 p.m. OK Python 2 TESTS 25 499 14131200 1200
50756713 bhuwanchandra.it B March 3, 2019, 5:31 p.m. OK Python 2 TESTS 25 577 6041600 1200
51208871 greed2411 B March 12, 2019, 6:43 a.m. OK Python 3 TESTS 25 218 819200 1200
51289529 greed2411 B March 14, 2019, 9:20 a.m. OK Python 3 TESTS 25 233 819200 1200
51289501 greed2411 B March 14, 2019, 9:20 a.m. OK Python 3 TESTS 25 233 819200 1200
50823079 NNasir B March 5, 2019, 2:22 p.m. OK Python 3 TESTS 25 233 819200 1200
51289645 greed2411 B March 14, 2019, 9:24 a.m. OK Python 3 TESTS 25 234 819200 1200
51208898 greed2411 B March 12, 2019, 6:44 a.m. OK Python 3 TESTS 25 234 819200 1200
50748919 Ik_noom B March 3, 2019, 4:15 p.m. OK Python 3 TESTS 25 234 1126400 1200
50747758 raj1307 B March 3, 2019, 4:09 p.m. OK Python 3 TESTS 25 234 3993600 1200
50751606 CodeMaster B March 3, 2019, 4:36 p.m. OK Python 3 TESTS 25 249 3072000 1200
50774572 pineriver B March 4, 2019, 7:35 a.m. OK Python 3 TESTS 25 249 7372800 1200
50803735 duanhv B March 5, 2019, 3:11 a.m. OK Ruby TESTS 25 295 14336000 1200
50757575 saigameplay15 B March 3, 2019, 5:54 p.m. OK Ruby TESTS 25 311 6451200 1200
51977561 yakamoto B March 29, 2019, 2:53 p.m. OK Scala TESTS 25 451 0 1200

remove filters

Back to search problems