Codeforces Round 579 (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
1203 Codeforces Round 579 (Div. 3) FINISHED False 8400 166116299 Aug. 13, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13902 ) E Boxers PROGRAMMING greedy sortings 1500

B"There are n boxers, the weight of the i -th boxer is a_i . Each of them can change the weight by no more than 1 before the competition (the weight cannot become equal to zero, that is, it must remain positive). Weight is always an integer number. It is necessary to choose the largest boxing team in terms of the number of people, that all the boxers' weights in the team are different (i.e. unique). Write a program that for given current values xe2 x80 x8b a_i will find the maximum possible number of boxers in a team. It is possible that after some change the weight of some boxer is 150001 (but no more). The first line contains an integer n ( 1 <= n <= 150000 ) -- the number of boxers. The next line contains n integers a_1, a_2, ... , a_n , where a_i ( 1 <= a_i <= 150000 ) is the weight of the i -th boxer. Print a single integer -- the maximum possible number of people in a team. In the first example, boxers should not change their weights -- you can just make a team out of all of them. In the second example, one boxer with a weight of 1 can be increased by one (get the weight of 2 ), one boxer with a weight of 4 can be reduced by one, and the other can be increased by one (resulting the boxers with a weight of 3 and 5 , respectively). Thus, you can get a team consisting of boxers with weights of 5, 4, 3, 2, 1 ."...

Tutorials

Codeforces Round #579 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59033899 demantarnir E Aug. 18, 2019, 3:02 p.m. OK Clang++17 Diagnostics TESTS 55 187 0 1500
65567880 vjudge2 E Nov. 23, 2019, 6:40 a.m. OK Clang++17 Diagnostics TESTS 55 763 2048000 1500
60575010 Denor E Sept. 14, 2019, 4:28 p.m. OK Delphi TESTS 55 62 716800 1500
60235874 canhtoanPASCAL E Sept. 7, 2019, 6:26 p.m. OK FPC TESTS 55 46 40140800 1500
62409716 avash E Oct. 12, 2019, 10:03 a.m. OK GNU C11 TESTS 55 46 819200 1500
59551069 shenlihong E Aug. 27, 2019, 3:01 a.m. OK GNU C11 TESTS 55 46 2457600 1500
58902735 pslin39 E Aug. 16, 2019, 9:51 a.m. OK GNU C11 TESTS 55 61 614400 1500
63736473 vjudge4 E Oct. 29, 2019, 3:28 p.m. OK GNU C11 TESTS 55 61 1228800 1500
58965694 R2r E Aug. 17, 2019, 5:40 p.m. OK GNU C11 TESTS 55 62 614400 1500
64053680 larswe E Nov. 1, 2019, 11:39 p.m. OK GNU C11 TESTS 55 62 614400 1500
63701895 vjudge4 E Oct. 29, 2019, 7:36 a.m. OK GNU C11 TESTS 55 62 614400 1500
67844845 kaiboy E Dec. 28, 2019, 8:59 p.m. OK GNU C11 TESTS 55 62 716800 1500
63771624 luogu_bot4 E Oct. 30, 2019, 8:12 a.m. OK GNU C11 TESTS 55 62 1228800 1500
63771524 vjudge5 E Oct. 30, 2019, 8:10 a.m. OK GNU C11 TESTS 55 62 1228800 1500
59046859 Houston-Rockets E Aug. 18, 2019, 3:56 p.m. OK GNU C++11 TESTS 55 31 409600 1500
61373663 hzy9819 E Sept. 27, 2019, 3:42 p.m. OK GNU C++11 TESTS 55 31 614400 1500
59267848 _shl. E Aug. 22, 2019, 11:32 a.m. OK GNU C++11 TESTS 55 31 614400 1500
59094976 _23333 E Aug. 19, 2019, 1:55 p.m. OK GNU C++11 TESTS 55 31 614400 1500
58903910 Yiwai E Aug. 16, 2019, 10:14 a.m. OK GNU C++11 TESTS 55 31 614400 1500
65233837 lidaming E Nov. 17, 2019, 6:22 a.m. OK GNU C++11 TESTS 55 31 614400 1500
60058186 tabbbbbb E Sept. 5, 2019, 5:34 a.m. OK GNU C++11 TESTS 55 31 819200 1500
62683193 yalizjc E Oct. 16, 2019, 1:24 p.m. OK GNU C++11 TESTS 55 31 819200 1500
59409917 Garen9527 E Aug. 24, 2019, 3:24 p.m. OK GNU C++11 TESTS 55 31 1228800 1500
58887649 AyoAyowei E Aug. 16, 2019, 3:15 a.m. OK GNU C++11 TESTS 55 31 1638400 1500
61577485 brenner1 E Sept. 30, 2019, 10:01 p.m. OK GNU C++14 TESTS 55 46 614400 1500
61537806 Subconscious E Sept. 30, 2019, 7:19 a.m. OK GNU C++14 TESTS 55 46 614400 1500
59323230 aLT_eGO E Aug. 22, 2019, 7:13 p.m. OK GNU C++14 TESTS 55 46 614400 1500
59545309 siddhugzp E Aug. 26, 2019, 9:20 p.m. OK GNU C++14 TESTS 55 46 614400 1500
59599846 dapu81000 E Aug. 28, 2019, 5:12 a.m. OK GNU C++14 TESTS 55 46 614400 1500
62451813 2891112980 E Oct. 13, 2019, 4:36 a.m. OK GNU C++14 TESTS 55 46 1228800 1500
61860225 Megurine_Luka E Oct. 4, 2019, 3:09 p.m. OK GNU C++14 TESTS 55 46 1228800 1500
58868757 ILSM E Aug. 15, 2019, 2:27 p.m. OK GNU C++14 TESTS 55 46 1331200 1500
61107591 xsjlmzs E Sept. 23, 2019, 9:53 a.m. OK GNU C++14 TESTS 55 46 1331200 1500
60059474 dh_love_fzw E Sept. 5, 2019, 6:14 a.m. OK GNU C++14 TESTS 55 46 2252800 1500
58900831 Yiwai E Aug. 16, 2019, 9:04 a.m. OK GNU C++17 TESTS 55 30 2662400 1500
58904011 Yiwai E Aug. 16, 2019, 10:16 a.m. OK GNU C++17 TESTS 55 31 2662400 1500
66507129 Rahul990 E Dec. 8, 2019, 2:53 p.m. OK GNU C++17 TESTS 55 46 614400 1500
58886618 hjk04abc E Aug. 16, 2019, 2:36 a.m. OK GNU C++17 TESTS 55 46 716800 1500
59345282 nickluo E Aug. 23, 2019, 9:24 a.m. OK GNU C++17 TESTS 55 46 1126400 1500
58919082 davitavtandilashvili E Aug. 16, 2019, 4:15 p.m. OK GNU C++17 TESTS 55 46 1228800 1500
62369028 WinterSoldierXXX E Oct. 11, 2019, 2:45 p.m. OK GNU C++17 TESTS 55 46 1228800 1500
59210594 benzikun E Aug. 21, 2019, 8:25 a.m. OK GNU C++17 TESTS 55 46 1843200 1500
58901104 Justwayyouare E Aug. 16, 2019, 9:10 a.m. OK GNU C++17 TESTS 55 46 1843200 1500
59634125 Self_patroit E Aug. 28, 2019, 7:41 p.m. OK GNU C++17 TESTS 55 46 2252800 1500
59623631 reanimatorzon E Aug. 28, 2019, 3:03 p.m. OK Go TESTS 55 78 0 1500
59658953 yang12138 E Aug. 29, 2019, 11:39 a.m. OK Go TESTS 55 124 0 1500
59705508 M4X1M E Aug. 30, 2019, 12:29 p.m. OK Go TESTS 55 140 0 1500
59664805 M4X1M E Aug. 29, 2019, 1:49 p.m. OK Go TESTS 55 156 4505600 1500
59859256 mangojunior E Sept. 1, 2019, 2:39 p.m. OK Haskell TESTS 55 468 25292800 1500
69253486 CodAR E Jan. 21, 2020, 2:58 p.m. OK Java 11 TESTS 55 420 0 1500
60608139 housni E Sept. 15, 2019, 10:11 a.m. OK Java 8 TESTS 55 109 0 1500
59095619 stupid_username E Aug. 19, 2019, 2:07 p.m. OK Java 8 TESTS 55 124 0 1500
59086638 kumarmonu0522 E Aug. 19, 2019, 11:16 a.m. OK Java 8 TESTS 55 124 0 1500
58961542 kusomushi E Aug. 17, 2019, 3:31 p.m. OK Java 8 TESTS 55 124 2048000 1500
63744352 _Sergey_ E Oct. 29, 2019, 6:01 p.m. OK Java 8 TESTS 55 139 0 1500
58929070 NormalGeek E Aug. 16, 2019, 9:59 p.m. OK Java 8 TESTS 55 139 0 1500
58865221 ISSAM_LAKOUAM E Aug. 15, 2019, 1:06 p.m. OK Java 8 TESTS 55 139 2048000 1500
58902231 Ahmad E Aug. 16, 2019, 9:39 a.m. OK Java 8 TESTS 55 140 0 1500
60503163 Zeina_Kandil E Sept. 13, 2019, 7:48 p.m. OK Java 8 TESTS 55 140 2048000 1500
60347878 yaoct E Sept. 10, 2019, 1:13 p.m. OK Java 8 TESTS 55 140 2048000 1500
61570543 walborn E Sept. 30, 2019, 6:30 p.m. OK JavaScript TESTS 55 139 17408000 1500
58992934 2hpwrrbm E Aug. 18, 2019, 10:01 a.m. OK JavaScript TESTS 55 156 29593600 1500
61571232 walborn E Sept. 30, 2019, 6:45 p.m. OK JavaScript TESTS 55 171 23961600 1500
60061487 Killer45 E Sept. 5, 2019, 7:13 a.m. OK Kotlin TESTS 55 202 5734400 1500
60176421 liouzhou_101 E Sept. 6, 2019, 2:35 p.m. OK Kotlin TESTS 55 280 19968000 1500
60640995 enslinmike E Sept. 15, 2019, 3:24 p.m. OK Kotlin TESTS 55 373 13209600 1500
59679138 mayakwd E Aug. 29, 2019, 7:36 p.m. OK Kotlin TESTS 55 436 13004800 1500
59102298 og.kostya E Aug. 19, 2019, 4:33 p.m. OK Mono C# TESTS 55 77 4198400 1500
59140030 TRR E Aug. 20, 2019, 2:04 p.m. OK Mono C# TESTS 55 108 12185600 1500
59942933 tomasz.masternak E Sept. 3, 2019, 12:04 p.m. OK Mono C# TESTS 55 109 17920000 1500
58975059 zazak E Aug. 17, 2019, 11:42 p.m. OK Mono C# TESTS 55 109 23552000 1500
59216646 liudve612 E Aug. 21, 2019, 10:33 a.m. OK Mono C# TESTS 55 124 19558400 1500
62186948 NEvOl E Oct. 9, 2019, 8:33 a.m. OK Mono C# TESTS 55 155 25395200 1500
59497334 alexagapov E Aug. 25, 2019, 11:38 p.m. OK Mono C# TESTS 55 171 27955200 1500
59326453 Anastasiya_Andreevna E Aug. 22, 2019, 8:57 p.m. OK Mono C# TESTS 55 296 23244800 1500
64121417 vjudge1 E Nov. 3, 2019, 1:39 a.m. OK MS C++ TESTS 55 46 614400 1500
58908614 vjudge2 E Aug. 16, 2019, 12:10 p.m. OK MS C++ TESTS 55 46 614400 1500
58908464 vjudge5 E Aug. 16, 2019, 12:07 p.m. OK MS C++ TESTS 55 46 614400 1500
65570467 vjudge2 E Nov. 23, 2019, 7:40 a.m. OK MS C++ TESTS 55 46 614400 1500
65572377 vjudge2 E Nov. 23, 2019, 8:17 a.m. OK MS C++ TESTS 55 46 614400 1500
62451879 vjudge2 E Oct. 13, 2019, 4:38 a.m. OK MS C++ TESTS 55 46 1228800 1500
65570477 vjudge2 E Nov. 23, 2019, 7:40 a.m. OK MS C++ TESTS 55 46 3993600 1500
65571171 vjudge2 E Nov. 23, 2019, 7:54 a.m. OK MS C++ TESTS 55 61 614400 1500
59524392 APTX_4869_ E Aug. 26, 2019, 12:57 p.m. OK MS C++ TESTS 55 61 716800 1500
69937840 vjudge3 E Feb. 1, 2020, 4:54 a.m. OK MS C++ TESTS 55 61 1228800 1500
64024119 vjudge4 E Nov. 1, 2019, 3:48 p.m. OK MS C++ 2017 TESTS 55 62 614400 1500
58938759 succ1815406055 E Aug. 17, 2019, 5:56 a.m. OK MS C++ 2017 TESTS 55 62 614400 1500
62937777 b06083397010 E Oct. 19, 2019, 2:37 p.m. OK MS C++ 2017 TESTS 55 62 1228800 1500
64070109 vjudge3 E Nov. 2, 2019, 7:07 a.m. OK MS C++ 2017 TESTS 55 78 614400 1500
69287147 vjudge2 E Jan. 22, 2020, 8:41 a.m. OK MS C++ 2017 TESTS 55 78 716800 1500
59939179 hwangganzi E Sept. 3, 2019, 10:46 a.m. OK MS C++ 2017 TESTS 55 78 1228800 1500
59135594 pmitkov E Aug. 20, 2019, 12:33 p.m. OK MS C++ 2017 TESTS 55 78 4198400 1500
58993255 yorky E Aug. 18, 2019, 10:09 a.m. OK MS C++ 2017 TESTS 55 124 1638400 1500
59333277 guoriyue E Aug. 23, 2019, 2:48 a.m. OK MS C++ 2017 TESTS 55 124 5427200 1500
58902214 NewLul E Aug. 16, 2019, 9:38 a.m. OK MS C++ 2017 TESTS 55 139 614400 1500
59090591 rv270195 E Aug. 19, 2019, 12:38 p.m. OK Node.js TESTS 55 342 23859200 1500
58919099 mayakin E Aug. 16, 2019, 4:16 p.m. OK PHP TESTS 55 343 49971200 1500
59673672 MVP E Aug. 29, 2019, 5:11 p.m. OK PyPy 2 TESTS 55 218 8499200 1500
58881745 GTrigger E Aug. 15, 2019, 9:44 p.m. OK PyPy 2 TESTS 55 233 10240000 1500
61464677 iamprayush E Sept. 29, 2019, 9:56 a.m. OK PyPy 2 TESTS 55 233 16588800 1500
58984480 thenewguy39 E Aug. 18, 2019, 6:20 a.m. OK PyPy 2 TESTS 55 295 18227200 1500
59897740 Benq E Sept. 2, 2019, 12:41 p.m. OK PyPy 3 TESTS 55 249 15564800 1500
68322690 galim665 E Jan. 6, 2020, 3:34 p.m. OK PyPy 3 TESTS 55 249 17203200 1500
64585014 lke_python E Nov. 9, 2019, 1:07 p.m. OK PyPy 3 TESTS 55 249 17203200 1500
61797124 niksparmar22 E Oct. 3, 2019, 5:38 p.m. OK PyPy 3 TESTS 55 265 14028800 1500
62606093 dronev02 E Oct. 15, 2019, 7:49 a.m. OK PyPy 3 TESTS 55 265 14233600 1500
59880353 nealzane E Sept. 2, 2019, 4:21 a.m. OK PyPy 3 TESTS 55 265 14336000 1500
63266859 roaris E Oct. 24, 2019, 12:55 a.m. OK PyPy 3 TESTS 55 265 14438400 1500
59907715 SamuelLH E Sept. 2, 2019, 4:01 p.m. OK PyPy 3 TESTS 55 265 14643200 1500
62348219 slava2322 E Oct. 11, 2019, 8:26 a.m. OK PyPy 3 TESTS 55 265 14848000 1500
61583497 recuraki E Oct. 1, 2019, 3:31 a.m. OK PyPy 3 TESTS 55 265 15360000 1500
59891362 vjudge1 E Sept. 2, 2019, 10:31 a.m. OK Python 2 TESTS 55 343 8908800 1500
61840527 shubhankarsharma00 E Oct. 4, 2019, 9:29 a.m. OK Python 2 TESTS 55 577 11161600 1500
62881243 riskingh E Oct. 18, 2019, 4:49 p.m. OK Python 3 TESTS 55 233 10444800 1500
61097784 vjudge5 E Sept. 23, 2019, 4:44 a.m. OK Python 3 TESTS 55 249 10444800 1500
58877533 Gramotei E Aug. 15, 2019, 6:44 p.m. OK Python 3 TESTS 55 249 10444800 1500
58876969 xodeChemist E Aug. 15, 2019, 6:25 p.m. OK Python 3 TESTS 55 249 10444800 1500
59209735 eunsung.lim93 E Aug. 21, 2019, 8:08 a.m. OK Python 3 TESTS 55 249 10752000 1500
68320785 dazlersan1 Munchy_1 E Jan. 6, 2020, 2:53 p.m. OK Python 3 TESTS 55 249 11161600 1500
64318170 vjudge4 E Nov. 5, 2019, 2:44 p.m. OK Python 3 TESTS 55 264 10444800 1500
64163218 vjudge2 E Nov. 3, 2019, 3:18 p.m. OK Python 3 TESTS 55 264 10444800 1500
63698346 vjudge4 E Oct. 29, 2019, 6:23 a.m. OK Python 3 TESTS 55 264 10444800 1500
62530942 welydharmaputra E Oct. 13, 2019, 7:19 p.m. OK Python 3 TESTS 55 264 10444800 1500
59643146 nemi_zzz E Aug. 29, 2019, 3:42 a.m. OK Ruby TESTS 55 202 11366400 1500
58886715 Lancern E Aug. 16, 2019, 2:40 a.m. OK Rust TESTS 55 46 614400 1500
67982565 StrausMG E Dec. 30, 2019, 8:08 p.m. OK Rust TESTS 55 46 3891200 1500
61346455 chinmaykousik1 E Sept. 27, 2019, 5:18 a.m. OK Rust TESTS 55 62 9625600 1500
61540111 ikazuya0201 E Sept. 30, 2019, 8:24 a.m. OK Rust TESTS 55 77 4096000 1500

remove filters

Back to search problems