Educational Codeforces Round 69 (Rated for 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
1197 Educational Codeforces Round 69 (Rated for Div. 2) FINISHED False 7200 168017099 July 22, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13576 ) A DIY Wooden Ladder PROGRAMMING greedy math sortings 1000

B'Let 's denote a k -step ladder as the following structure: exactly k + 2 wooden planks, of which Note that neither the base planks, nor the steps planks are required to be equal. For example, ladders 1 and 3 are correct 2 -step ladders and ladder 2 is a correct 1 -step ladder. On the first picture the lengths of planks are [3, 3] for the base and [1] for the step. On the second picture lengths are [3, 3] for the base and [2] for the step. On the third picture lengths are [3, 4] for the base and [2, 3] for the steps. You have n planks. The length of the i -th planks is a_i . You don 't have a saw, so you can 't cut the planks you have. Though you have a hammer and nails, so you can assemble the improvised "ladder" from the planks. The question is: what is the maximum number k such that you can choose some subset of the given planks and assemble a k -step ladder using them? The first line contains a single integer T ( 1 <= T <= 100 ) -- the number of queries. The queries are independent. Each query consists of two lines. The first line contains a single integer n ( 2 <= n <= 10^5 ) -- the number of planks you have. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^5 ) -- the lengths of the corresponding planks. It 's guaranteed that the total number of planks from all queries doesn 't exceed 10^5 . Print T integers -- one per query. The i -th integer is the maximum number k , such that you can choose some subset of the planks given in the i -th query and assemble a k -step ladder using them. Print 0 if you can 't make even 1 -step ladder from the given set of planks. Examples for the queries 1-3 are shown at the image in the legend section. The Russian meme to express the quality of the ladders: '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57634774 arounderstands A July 24, 2019, 10:15 a.m. OK Clang++17 Diagnostics TESTS 135 77 0 1000
58256452 zzzzzzxxx A Aug. 4, 2019, 10:16 a.m. OK Clang++17 Diagnostics TESTS 135 124 0 1000
57912589 0xdia A July 28, 2019, 9:31 p.m. OK Clang++17 Diagnostics TESTS 135 467 512000 1000
58054408 Manirathnamgodi A July 31, 2019, 4:17 a.m. OK Clang++17 Diagnostics TESTS 135 483 1024000 1000
60927701 harshit36 A Sept. 20, 2019, 12:46 p.m. OK Clang++17 Diagnostics TESTS 135 499 409600 1000
57555048 bilotiavaibhav A July 22, 2019, 7:14 p.m. OK Clang++17 Diagnostics TESTS 134 514 819200 1000
58428461 agibson A Aug. 7, 2019, 10:48 a.m. OK D TESTS 135 78 4300800 1000
59673040 duydec1 A Aug. 29, 2019, 4:55 p.m. OK FPC TESTS 135 46 409600 1000
57619227 Lucky_Noob A July 24, 2019, 3:30 a.m. OK FPC TESTS 135 46 40038400 1000
57535227 MR_Asshole A July 22, 2019, 3:37 p.m. OK FPC TESTS 134 1403 3174400 1000
57530875 ti19_btvan A July 22, 2019, 3:20 p.m. OK FPC TESTS 134 1466 3174400 1000
57715692 jaeokbr A July 25, 2019, 2:35 a.m. OK GNU C11 TESTS 135 46 0 1000
61960206 rackeh A Oct. 6, 2019, 7:14 a.m. OK GNU C11 TESTS 135 46 0 1000
61959615 rackeh A Oct. 6, 2019, 7:02 a.m. OK GNU C11 TESTS 135 46 0 1000
61446211 DevJewel A Sept. 28, 2019, 9:19 p.m. OK GNU C11 TESTS 135 46 0 1000
58912490 NoSoul A Aug. 16, 2019, 1:37 p.m. OK GNU C11 TESTS 135 46 0 1000
61960444 rackeh A Oct. 6, 2019, 7:18 a.m. OK GNU C11 TESTS 135 46 0 1000
57715463 WilliamB103 A July 25, 2019, 2:29 a.m. OK GNU C11 TESTS 135 46 0 1000
57610747 TARIQ A July 23, 2019, 8:38 p.m. OK GNU C11 TESTS 135 46 0 1000
57606565 ifran09 A July 23, 2019, 6:12 p.m. OK GNU C11 TESTS 135 46 0 1000
57606422 Soumya_123 A July 23, 2019, 6:08 p.m. OK GNU C11 TESTS 135 46 0 1000
57563567 parker0523 A July 23, 2019, 2:03 a.m. OK GNU C++11 TESTS 134 31 0 1000
62924195 Kylin_ A Oct. 19, 2019, 10:52 a.m. OK GNU C++11 TESTS 135 31 0 1000
60383643 tur.vd A Sept. 11, 2019, 10:31 a.m. OK GNU C++11 TESTS 135 31 0 1000
60379419 tur.vd A Sept. 11, 2019, 8:21 a.m. OK GNU C++11 TESTS 135 31 0 1000
60379170 tur.vd A Sept. 11, 2019, 8:13 a.m. OK GNU C++11 TESTS 135 31 0 1000
57916539 luogu_bot3 A July 29, 2019, 1:46 a.m. OK GNU C++11 TESTS 135 31 0 1000
57641134 wxyww A July 24, 2019, 12:39 p.m. OK GNU C++11 TESTS 135 31 0 1000
57573439 luogu_bot3 A July 23, 2019, 6:11 a.m. OK GNU C++11 TESTS 134 31 0 1000
57700942 luogu_bot5 A July 24, 2019, 5:50 p.m. OK GNU C++11 TESTS 135 31 102400 1000
58255380 CTP_314 A Aug. 4, 2019, 9:45 a.m. OK GNU C++11 TESTS 135 31 204800 1000
60343615 zhixiang A Sept. 10, 2019, 11:47 a.m. OK GNU C++14 TESTS 135 31 204800 1000
57629968 greenblade A July 24, 2019, 8:25 a.m. OK GNU C++14 TESTS 135 46 0 1000
57718642 AMnu A July 25, 2019, 4:04 a.m. OK GNU C++14 TESTS 135 46 0 1000
57965240 VankineeniTawrun249 A July 30, 2019, 2:22 a.m. OK GNU C++14 TESTS 135 46 0 1000
58070338 rutul204 A July 31, 2019, 10:24 a.m. OK GNU C++14 TESTS 135 46 0 1000
58172859 vjudge3 A Aug. 2, 2019, 12:01 p.m. OK GNU C++14 TESTS 135 46 0 1000
58227409 isomurodov A Aug. 3, 2019, 3:05 p.m. OK GNU C++14 TESTS 135 46 0 1000
58519791 7oda_coder A Aug. 10, 2019, 3:42 a.m. OK GNU C++14 TESTS 135 46 0 1000
60063576 chetansai A Sept. 5, 2019, 8:07 a.m. OK GNU C++14 TESTS 135 46 0 1000
60332151 Scut82 A Sept. 10, 2019, 6:38 a.m. OK GNU C++14 TESTS 135 46 0 1000
62445493 pootis A Oct. 12, 2019, 10:35 p.m. OK GNU C++17 TESTS 135 46 0 1000
62419628 mutreta A Oct. 12, 2019, 12:33 p.m. OK GNU C++17 TESTS 135 46 0 1000
62071278 Juvitus A Oct. 7, 2019, 4:48 p.m. OK GNU C++17 TESTS 135 46 0 1000
61792640 Husam_ A Oct. 3, 2019, 4:18 p.m. OK GNU C++17 TESTS 135 46 0 1000
58867082 KenjiH A Aug. 15, 2019, 1:48 p.m. OK GNU C++17 TESTS 135 46 0 1000
58856396 Blackpanther1 A Aug. 15, 2019, 9:28 a.m. OK GNU C++17 TESTS 135 46 0 1000
58856061 Blackpanther1 A Aug. 15, 2019, 9:20 a.m. OK GNU C++17 TESTS 135 46 0 1000
58855822 Blackpanther1 A Aug. 15, 2019, 9:15 a.m. OK GNU C++17 TESTS 135 46 0 1000
58800554 daongochaidang A Aug. 14, 2019, 7:18 a.m. OK GNU C++17 TESTS 135 46 0 1000
58493319 wjfwjfwjf A Aug. 9, 2019, 11:01 a.m. OK GNU C++17 TESTS 135 46 0 1000
58457420 reanimatorzon A Aug. 7, 2019, 4:34 p.m. OK Go TESTS 135 46 0 1000
62380706 DMOVE A Oct. 11, 2019, 7:01 p.m. OK Go TESTS 135 46 0 1000
60902668 sighduck A Sept. 19, 2019, 11:27 p.m. OK Go TESTS 135 109 0 1000
58108409 suryanshv23 A Aug. 1, 2019, 5:48 a.m. OK Go TESTS 135 109 0 1000
57801053 serhiimazurok A July 26, 2019, 1:17 p.m. OK Go TESTS 135 109 0 1000
57541861 BLF2 A July 22, 2019, 4:08 p.m. OK Go TESTS 134 1793 4505600 1000
57532790 lbrown_b A July 22, 2019, 3:28 p.m. OK Go TESTS 134 1871 15769600 1000
57608925 soldier_md A July 23, 2019, 7:29 p.m. OK Haskell TESTS 135 109 15769600 1000
57760831 LogXx A July 25, 2019, 5:56 p.m. OK Haskell TESTS 135 280 17817600 1000
68949717 TheDarkKnight03 A Jan. 16, 2020, 5:30 p.m. OK Java 11 TESTS 135 248 8294400 1000
60578098 vjudge5 A Sept. 14, 2019, 5:20 p.m. OK Java 8 TESTS 135 124 0 1000
59340955 T_Nady A Aug. 23, 2019, 7:30 a.m. OK Java 8 TESTS 135 124 0 1000
57970117 shivamcyfun A July 30, 2019, 5:30 a.m. OK Java 8 TESTS 135 124 0 1000
57904404 niketan A July 28, 2019, 5:02 p.m. OK Java 8 TESTS 135 124 0 1000
57803308 In_The_Name_Of_Love A July 26, 2019, 2:09 p.m. OK Java 8 TESTS 135 124 0 1000
57968888 hasan5788 A July 30, 2019, 4:39 a.m. OK Java 8 TESTS 135 139 0 1000
58878791 Hardikkumar_Katakiya A Aug. 15, 2019, 7:27 p.m. OK Java 8 TESTS 135 139 0 1000
57591341 azooz97 A July 23, 2019, 12:23 p.m. OK Java 8 TESTS 134 139 0 1000
57569970 IBatJ A July 23, 2019, 4:48 a.m. OK Java 8 TESTS 134 139 0 1000
68726971 Bhavya_Arora A Jan. 13, 2020, 6:17 p.m. OK Java 8 TESTS 135 140 0 1000
59798187 gRaphael A Aug. 31, 2019, 9:19 a.m. OK Kotlin TESTS 135 187 1024000 1000
58909688 Killer45 A Aug. 16, 2019, 12:34 p.m. OK Kotlin TESTS 135 187 1126400 1000
61419461 0xCAFB A Sept. 28, 2019, 11:19 a.m. OK Kotlin TESTS 135 249 5324800 1000
57533412 grine4ka A July 22, 2019, 3:30 p.m. OK Kotlin TESTS 134 264 4403200 1000
57860516 wbars A July 27, 2019, 5:34 p.m. OK Kotlin TESTS 135 296 512000 1000
57561939 Spheniscine A July 23, 2019, 1:17 a.m. OK Kotlin TESTS 134 326 3276800 1000
58085493 og.kostya A July 31, 2019, 3:25 p.m. OK Mono C# TESTS 135 62 409600 1000
58540769 amit1509kumar A Aug. 10, 2019, 2:04 p.m. OK Mono C# TESTS 135 78 9625600 1000
57542142 Bloodskys A July 22, 2019, 4:10 p.m. OK Mono C# TESTS 134 93 7270400 1000
57897932 TRR A July 28, 2019, 2:24 p.m. OK Mono C# TESTS 135 93 9625600 1000
58898757 ygtcnl A Aug. 16, 2019, 8:26 a.m. OK Mono C# TESTS 135 93 10035200 1000
57635846 SKProCH A July 24, 2019, 10:44 a.m. OK Mono C# TESTS 135 93 12800000 1000
57728486 ololonso A July 25, 2019, 7:53 a.m. OK Mono C# TESTS 135 93 12902400 1000
63615717 ProtectMan3 A Oct. 27, 2019, 7:22 p.m. OK Mono C# TESTS 135 93 13926400 1000
60558799 igoroshko A Sept. 14, 2019, 2:33 p.m. OK Mono C# TESTS 135 93 14336000 1000
57576945 vjudge3 A July 23, 2019, 7:24 a.m. OK MS C++ TESTS 134 46 0 1000
57580054 vjudge1 A July 23, 2019, 8:32 a.m. OK MS C++ TESTS 134 46 0 1000
57618387 vjudge1 A July 24, 2019, 2:59 a.m. OK MS C++ TESTS 135 46 0 1000
59131420 vjudge1 A Aug. 20, 2019, 11:09 a.m. OK MS C++ TESTS 135 46 0 1000
57572783 vjudge3 A July 23, 2019, 5:56 a.m. OK MS C++ TESTS 134 46 0 1000
57576878 vjudge1 A July 23, 2019, 7:23 a.m. OK MS C++ TESTS 134 46 0 1000
57571824 vjudge1 A July 23, 2019, 5:34 a.m. OK MS C++ TESTS 134 46 0 1000
57574326 vjudge2 A July 23, 2019, 6:28 a.m. OK MS C++ TESTS 134 46 0 1000
58697865 vjudge2 A Aug. 13, 2019, 6:45 a.m. OK MS C++ TESTS 135 46 409600 1000
63648368 vjudge5 A Oct. 28, 2019, 10:34 a.m. OK MS C++ TESTS 135 46 409600 1000
57572203 firdbire A July 23, 2019, 5:43 a.m. OK MS C++ 2017 TESTS 134 46 819200 1000
63533495 vjudge1 A Oct. 27, 2019, 7:24 a.m. OK MS C++ 2017 TESTS 135 61 307200 1000
57569517 RANCAFE A July 23, 2019, 4:37 a.m. OK MS C++ 2017 TESTS 134 62 409600 1000
66811306 vjudge5 A Dec. 14, 2019, 2:44 a.m. OK MS C++ 2017 TESTS 135 62 409600 1000
59686008 guoriyue A Aug. 30, 2019, 1:34 a.m. OK MS C++ 2017 TESTS 135 62 409600 1000
57628275 hwangganzi A July 24, 2019, 7:52 a.m. OK MS C++ 2017 TESTS 135 62 409600 1000
57582927 Ahmad_Faour A July 23, 2019, 9:30 a.m. OK MS C++ 2017 TESTS 134 62 409600 1000
57574789 blgpm A July 23, 2019, 6:37 a.m. OK MS C++ 2017 TESTS 134 62 409600 1000
57562229 anlen A July 23, 2019, 1:26 a.m. OK MS C++ 2017 TESTS 134 62 409600 1000
57557134 pmitkov A July 22, 2019, 8:31 p.m. OK MS C++ 2017 TESTS 134 62 409600 1000
57586346 badawhite A July 23, 2019, 10:47 a.m. OK Node.js TESTS 134 218 11980800 1000
57731866 badawhite A July 25, 2019, 8:48 a.m. OK Node.js TESTS 135 233 12902400 1000
57586259 badawhite A July 23, 2019, 10:45 a.m. OK Node.js TESTS 134 327 11878400 1000
57545181 badawhite A July 22, 2019, 4:25 p.m. OK Node.js TESTS 134 343 11878400 1000
57544808 romanporsh A July 22, 2019, 4:23 p.m. OK PascalABC.NET TESTS 134 389 307200 1000
57735921 lostamok A July 25, 2019, 9:56 a.m. OK PHP TESTS 135 124 8396800 1000
57735606 lostamok A July 25, 2019, 9:51 a.m. OK PHP TESTS 135 124 8396800 1000
57736423 lostamok A July 25, 2019, 10:04 a.m. OK PHP TESTS 135 124 8396800 1000
57530050 Bekzaat17 A July 22, 2019, 3:17 p.m. OK PHP TESTS 134 139 12595200 1000
57542221 erbolat0311 A July 22, 2019, 4:10 p.m. OK PHP TESTS 134 140 12185600 1000
57548735 mayakin A July 22, 2019, 4:47 p.m. OK PHP TESTS 134 156 12595200 1000
57571521 lumino_sity A July 23, 2019, 5:27 a.m. OK PyPy 2 TESTS 134 155 5222400 1000
57538308 spdd3 A July 22, 2019, 3:51 p.m. OK PyPy 2 TESTS 134 155 5222400 1000
60400090 jolt.tks A Sept. 11, 2019, 4:21 p.m. OK PyPy 2 TESTS 135 156 6656000 1000
57709935 -Morass- A July 24, 2019, 10:56 p.m. OK PyPy 2 TESTS 135 170 5017600 1000
57547843 hoangphuoc25 A July 22, 2019, 4:37 p.m. OK PyPy 2 TESTS 134 202 6758400 1000
57910847 smunjal96 A July 28, 2019, 8:06 p.m. OK PyPy 2 TESTS 135 202 7168000 1000
58317401 yumtam A Aug. 5, 2019, 3:48 a.m. OK PyPy 2 TESTS 135 217 6041600 1000
60403323 thenewguy39 A Sept. 11, 2019, 5:32 p.m. OK PyPy 2 TESTS 135 233 9830400 1000
57944474 fortmax120 A July 29, 2019, 1:47 p.m. OK PyPy 2 TESTS 135 280 6758400 1000
58239127 ironmind A Aug. 3, 2019, 10:07 p.m. OK PyPy 3 TESTS 135 202 8294400 1000
61400192 _viru_ A Sept. 28, 2019, 4:48 a.m. OK PyPy 3 TESTS 135 202 10137600 1000
57634079 Shrenika A July 24, 2019, 9:57 a.m. OK PyPy 3 TESTS 135 202 10137600 1000
57603168 wrqwqelnfdsa A July 23, 2019, 4:43 p.m. OK PyPy 3 TESTS 135 202 10137600 1000
60173493 JulRkh A Sept. 6, 2019, 1:41 p.m. OK PyPy 3 TESTS 135 202 10240000 1000
59111837 plourde27 A Aug. 19, 2019, 9:22 p.m. OK PyPy 3 TESTS 135 202 10240000 1000
57899299 mawek A July 28, 2019, 2:59 p.m. OK PyPy 3 TESTS 135 202 10240000 1000
57765585 Theo_S A July 25, 2019, 8:11 p.m. OK PyPy 3 TESTS 135 202 10240000 1000
67658788 dhruva_shashi A Dec. 26, 2019, 2:55 p.m. OK PyPy 3 TESTS 135 202 10444800 1000
66593513 ng24_7 A Dec. 10, 2019, 1:49 p.m. OK PyPy 3 TESTS 135 202 10444800 1000
69414725 bsr011 A Jan. 23, 2020, 12:46 p.m. OK Python 2 TESTS 135 233 5324800 1000
57591749 elistark A July 23, 2019, 12:31 p.m. OK Python 2 TESTS 134 234 5427200 1000
58267612 anish_t A Aug. 4, 2019, 3:18 p.m. OK Python 2 TESTS 135 249 5324800 1000
57603299 ashutoshnaveen A July 23, 2019, 4:46 p.m. OK Python 2 TESTS 135 249 5324800 1000
57642532 Luxo A July 24, 2019, 1:06 p.m. OK Python 2 TESTS 135 249 5427200 1000
57589260 _icewiz_ A July 23, 2019, 11:43 a.m. OK Python 2 TESTS 134 249 5427200 1000
57555595 Helli.code A July 22, 2019, 7:32 p.m. OK Python 2 TESTS 134 249 5427200 1000
57536826 pein_7 A July 22, 2019, 3:44 p.m. OK Python 2 TESTS 134 264 5324800 1000
57534497 bankerprem3 A July 22, 2019, 3:34 p.m. OK Python 2 TESTS 134 295 6348800 1000
57588740 google13 A July 23, 2019, 11:34 a.m. OK Python 2 TESTS 134 327 5427200 1000
58127538 BTur A Aug. 1, 2019, 1:07 p.m. OK Python 3 TESTS 135 140 7782400 1000
57702934 UR5ANO A July 24, 2019, 6:36 p.m. OK Python 3 TESTS 135 140 7782400 1000
57616047 mygenel A July 24, 2019, 1:35 a.m. OK Python 3 TESTS 135 155 7475200 1000
69858449 Deepanshu101 A Jan. 30, 2020, 5:43 p.m. OK Python 3 TESTS 135 155 7680000 1000
68434376 karan_chawla A Jan. 9, 2020, 8:21 a.m. OK Python 3 TESTS 135 155 7680000 1000
68994970 cs1g A Jan. 17, 2020, 5:02 p.m. OK Python 3 TESTS 135 155 7782400 1000
67701273 _IchBin_ A Dec. 27, 2019, 2:42 p.m. OK Python 3 TESTS 135 155 7782400 1000
67640284 KamilRizatdinov A Dec. 26, 2019, 8:22 a.m. OK Python 3 TESTS 135 155 7782400 1000
65333383 shinben0327 A Nov. 19, 2019, 7:38 a.m. OK Python 3 TESTS 135 155 7782400 1000
61083049 galim665 A Sept. 22, 2019, 5:09 p.m. OK Python 3 TESTS 135 155 7782400 1000
57799650 Lancern A July 26, 2019, 12:48 p.m. OK Rust TESTS 135 46 2048000 1000
57740846 Swordelf A July 25, 2019, 11:25 a.m. OK Rust TESTS 135 46 2048000 1000
57717993 tigertang A July 25, 2019, 3:43 a.m. OK Rust TESTS 135 46 2048000 1000
57618824 Ransln A July 24, 2019, 3:15 a.m. OK Rust TESTS 135 46 2150400 1000
57588130 C051N3 A July 23, 2019, 11:23 a.m. OK Rust TESTS 134 46 2150400 1000
58435835 manta1130 A Aug. 7, 2019, 1:49 p.m. OK Rust TESTS 135 46 2252800 1000
57763654 NegrN7 A July 25, 2019, 7:03 p.m. OK Rust TESTS 135 46 2252800 1000
58259297 rasphino A Aug. 4, 2019, 11:32 a.m. OK Rust TESTS 135 62 921600 1000
57598897 kobae964 A July 23, 2019, 2:59 p.m. OK Rust TESTS 135 62 921600 1000
57531749 Som3t1me5 A July 22, 2019, 3:24 p.m. OK Scala TESTS 134 468 0 1000

remove filters

Back to search problems