Educational Codeforces Round 87 (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
1354 Educational Codeforces Round 87 (Rated for Div. 2) FINISHED False 7200 186698423 May 17, 2020, 9:20 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 10101 ) D Multiset PROGRAMMING binary search data structures 1900

Note that the memory limit is unusual. You are given a multiset consisting of n integers. You have to process queries of two types: k -th order statistics in the multiset is the k -th element in the sorted list of all elements of the multiset. For example, if the multiset contains elements 1 , 4 , 2 , 1 , 4 , 5 , 7 , and k = 3 , then you have to find the 3 -rd element in [1, 1, 2, 4, 4, 5, 7] , which is 2 . If you try to delete an element which occurs multiple times in the multiset, only one occurence is removed. After processing all queries, print any number belonging to the multiset, or say that it is empty. The first line contains two integers n and q ( 1 <= n, q <= 10^6 ) -- the number of elements in the initial multiset and the number of queries, respectively. The second line contains n integers a_1 , a_2 , ..., a_n ( 1 <= a_1 <= a_2 <= ... <= a_n <= n ) -- the elements of the multiset. The third line contains q integers k_1 , k_2 , ..., k_q , each representing a query: If the multiset is empty after all queries, print 0 . Otherwise, print any integer that belongs to the resulting multiset. In the first example, all elements of the multiset are deleted. In the second example, the elements 5 , 1 , 4 , 2 are deleted (they are listed in chronological order of their removal). In the third example, 6 is not the only answer.

Tutorials

77593

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
80547207 Gassa D May 17, 2020, 6:36 p.m. OK D TESTS 55 982 7884800 1900
80546886 Gassa D May 17, 2020, 6:32 p.m. OK D TESTS 55 1044 12083200 1900
80547141 Gassa D May 17, 2020, 6:35 p.m. OK D TESTS 55 1060 7884800 1900
80547059 Gassa D May 17, 2020, 6:34 p.m. OK D TESTS 55 1075 10035200 1900
80546505 Gassa D May 17, 2020, 6:26 p.m. OK D TESTS 55 1091 9932800 1900
80547644 Gassa D May 17, 2020, 6:43 p.m. OK D TESTS 55 1107 12083200 1900
80546986 Gassa D May 17, 2020, 6:33 p.m. OK D TESTS 55 1154 12083200 1900
80548052 Gassa D May 17, 2020, 6:49 p.m. OK D TESTS 55 1184 12083200 1900
80724860 trans_el D May 19, 2020, 8:21 p.m. OK GNU C11 TESTS 55 514 12390400 1900
80516354 DanielW48 D May 17, 2020, 11:50 a.m. OK GNU C11 TESTS 55 608 7680000 1900
81555118 The_Hidden_Man D May 26, 2020, 6:22 p.m. OK GNU C11 TESTS 55 841 3993600 1900
80589738 Jagadish D May 18, 2020, 10:01 a.m. OK GNU C11 TESTS 55 842 12083200 1900
81559292 nidhigoel D May 26, 2020, 7:20 p.m. OK GNU C11 TESTS 55 873 3993600 1900
80860417 abcd227 D May 21, 2020, 2:16 p.m. OK GNU C11 TESTS 55 1481 16281600 1900
80677184 luogu_bot3 D May 19, 2020, 10:25 a.m. OK GNU C++11 TESTS 55 171 8294400 1900
81012073 Skypower D May 23, 2020, 11:58 a.m. OK GNU C++11 TESTS 55 171 8294400 1900
80562115 paleprince D May 18, 2020, 1:48 a.m. OK GNU C++11 TESTS 55 171 19968000 1900
80617243 SaltiedFish D May 18, 2020, 3:29 p.m. OK GNU C++11 TESTS 55 186 11878400 1900
80596403 Feng D May 18, 2020, 11:25 a.m. OK GNU C++11 TESTS 55 186 11878400 1900
80523988 Liameitimie D May 17, 2020, 1:31 p.m. OK GNU C++11 TESTS 55 187 9420800 1900
80601470 Feng D May 18, 2020, 12:26 p.m. OK GNU C++11 TESTS 55 187 11878400 1900
80687877 Thomasguo666 D May 19, 2020, 12:40 p.m. OK GNU C++11 TESTS 55 202 8294400 1900
80674707 HNFMS_Lsk D May 19, 2020, 9:50 a.m. OK GNU C++11 TESTS 55 265 16281600 1900
80601699 luogu_bot4 D May 18, 2020, 12:29 p.m. OK GNU C++11 TESTS 55 280 19968000 1900
80590904 fa_555 D May 18, 2020, 10:16 a.m. OK GNU C++14 TESTS 55 155 20787200 1900
80586280 QAQAutoMaton D May 18, 2020, 9:08 a.m. OK GNU C++14 TESTS 55 358 12185600 1900
80886310 vishnu_m D May 21, 2020, 8:18 p.m. OK GNU C++14 TESTS 55 404 3993600 1900
80711574 yueguang D May 19, 2020, 5:04 p.m. OK GNU C++14 TESTS 55 452 17100800 1900
80573283 mpvgiitbhu D May 18, 2020, 6:05 a.m. OK GNU C++14 TESTS 55 483 19865600 1900
80882253 vishnu_m D May 21, 2020, 7:01 p.m. OK GNU C++14 TESTS 55 514 4300800 1900
81321722 V1lg3for7z D May 24, 2020, 5:45 p.m. OK GNU C++14 TESTS 55 514 7987200 1900
80738501 gg_14 D May 20, 2020, 3:49 a.m. OK GNU C++14 TESTS 55 514 8294400 1900
80669585 Willem D May 19, 2020, 8:39 a.m. OK GNU C++14 TESTS 55 529 5120000 1900
80638059 Bedo_Sayed D May 18, 2020, 8:20 p.m. OK GNU C++14 TESTS 55 529 7987200 1900
80615658 mightymercado D May 18, 2020, 3:14 p.m. OK GNU C++17 TESTS 55 124 12800000 1900
80743638 Jaydeep999997 D May 20, 2020, 5:48 a.m. OK GNU C++17 TESTS 55 140 8294400 1900
80614700 mightymercado D May 18, 2020, 3:05 p.m. OK GNU C++17 TESTS 55 155 12800000 1900
80743727 Jaydeep999997 D May 20, 2020, 5:49 a.m. OK GNU C++17 TESTS 55 171 8294400 1900
80772087 _andyli D May 20, 2020, 12:29 p.m. OK GNU C++17 TESTS 55 171 12185600 1900
80615416 mightymercado D May 18, 2020, 3:12 p.m. OK GNU C++17 TESTS 55 171 12800000 1900
80614399 mightymercado D May 18, 2020, 3:02 p.m. OK GNU C++17 TESTS 55 171 12800000 1900
80762997 _andyli D May 20, 2020, 10:30 a.m. OK GNU C++17 TESTS 55 187 12185600 1900
80763022 _andyli D May 20, 2020, 10:30 a.m. OK GNU C++17 TESTS 55 187 12185600 1900
80771756 _andyli D May 20, 2020, 12:25 p.m. OK GNU C++17 TESTS 55 202 12185600 1900
80612506 RiverHamster D May 18, 2020, 2:41 p.m. OK GNU C++17 (64) TESTS 55 343 12492800 1900
80556060 emorgan5289 D May 17, 2020, 9:47 p.m. OK GNU C++17 (64) TESTS 55 358 9420800 1900
80534648 neal D May 17, 2020, 3:39 p.m. OK GNU C++17 (64) TESTS 55 373 8396800 1900
81057307 smax D May 24, 2020, 3:14 a.m. OK GNU C++17 (64) TESTS 55 374 7987200 1900
81657491 Geothermal D May 27, 2020, 10:09 p.m. OK GNU C++17 (64) TESTS 55 374 7987200 1900
81332135 bmu D May 24, 2020, 8:47 p.m. OK GNU C++17 (64) TESTS 55 374 12083200 1900
81027645 _Trung_Nguyen D May 23, 2020, 3:39 p.m. OK GNU C++17 (64) TESTS 55 389 7987200 1900
81382549 olphe D May 25, 2020, 12:30 p.m. OK GNU C++17 (64) TESTS 55 389 7987200 1900
81425343 killer4639 D May 25, 2020, 11:25 p.m. OK GNU C++17 (64) TESTS 55 389 8089600 1900
80830816 Mc3X D May 21, 2020, 7:51 a.m. OK GNU C++17 (64) TESTS 55 389 11571200 1900
80829974 synapse D May 21, 2020, 7:38 a.m. OK Go TESTS 55 233 13004800 1900
80830653 synapse D May 21, 2020, 7:48 a.m. OK Go TESTS 55 312 13107200 1900
80829797 synapse D May 21, 2020, 7:35 a.m. OK Go TESTS 55 327 13004800 1900
80903563 acesine D May 22, 2020, 5:29 a.m. OK Java 11 TESTS 55 327 3788800 1900
80654404 avijit_agarwal D May 19, 2020, 4:42 a.m. OK Java 11 TESTS 55 358 4505600 1900
80585363 Richard727 D May 18, 2020, 8:54 a.m. OK Java 11 TESTS 55 624 23449600 1900
80697830 rohanxyzg D May 19, 2020, 2:29 p.m. OK Java 11 TESTS 55 639 4608000 1900
80566084 derrick20 D May 18, 2020, 3:36 a.m. OK Java 11 TESTS 55 639 23449600 1900
80886208 bckslsh03 D May 21, 2020, 8:15 p.m. OK Java 11 TESTS 55 701 6963200 1900
80729125 dauom D May 19, 2020, 10:28 p.m. OK Java 11 TESTS 55 763 0 1900
80624091 liebert D May 18, 2020, 4:46 p.m. OK Java 11 TESTS 55 904 3993600 1900
80609729 saikaushik333 D May 18, 2020, 2:08 p.m. OK Java 11 TESTS 55 919 23347200 1900
80517909 bobib D May 17, 2020, 12:07 p.m. OK Java 11 TESTS 55 920 23449600 1900
80647612 luchy0120 D May 19, 2020, 1:38 a.m. OK Java 8 TESTS 55 265 7680000 1900
80600631 MubtasimShahriar D May 18, 2020, 12:16 p.m. OK Java 8 TESTS 55 311 29388800 1900
81581785 out_of_the_box D May 27, 2020, 5:03 a.m. OK Java 8 TESTS 55 327 8192000 1900
80677910 undisputedAshu D May 19, 2020, 10:34 a.m. OK Java 8 TESTS 55 421 8089600 1900
80525943 arsh1598 D May 17, 2020, 1:56 p.m. OK Java 8 TESTS 55 421 26419200 1900
80677330 undisputedAshu D May 19, 2020, 10:27 a.m. OK Java 8 TESTS 55 436 8089600 1900
81455758 aminul D May 26, 2020, 9:29 a.m. OK Java 8 TESTS 55 436 11776000 1900
80544912 aman28rwt D May 17, 2020, 6:01 p.m. OK Java 8 TESTS 55 436 26521600 1900
80614504 RitvikMittal D May 18, 2020, 3:03 p.m. OK Java 8 TESTS 55 436 29388800 1900
81440243 ritesharma D May 26, 2020, 6:01 a.m. OK Java 8 TESTS 55 451 3379200 1900
80565269 Spheniscine D May 18, 2020, 3:16 a.m. OK Kotlin TESTS 55 452 25907200 1900
81366360 cristian1997 D May 25, 2020, 9:15 a.m. OK Kotlin TESTS 55 498 10956800 1900
80564774 Spheniscine D May 18, 2020, 3:04 a.m. OK Kotlin TESTS 55 498 25907200 1900
80645230 Spheniscine D May 19, 2020, 12:08 a.m. OK Kotlin TESTS 55 561 5529600 1900
80665796 Spheniscine D May 19, 2020, 7:49 a.m. OK Kotlin TESTS 55 576 4710400 1900
80626695 Spheniscine D May 18, 2020, 5:21 p.m. OK Kotlin TESTS 55 577 4710400 1900
80655541 Spheniscine D May 19, 2020, 5:07 a.m. OK Kotlin TESTS 55 608 4710400 1900
80627472 Spheniscine D May 18, 2020, 5:32 p.m. OK Kotlin TESTS 55 623 4710400 1900
80655098 Spheniscine D May 19, 2020, 4:58 a.m. OK Kotlin TESTS 55 639 4710400 1900
80569782 Tlatoani D May 18, 2020, 5:04 a.m. OK Kotlin TESTS 55 686 25907200 1900
80700103 teru D May 19, 2020, 2:52 p.m. OK Mono C# TESTS 55 1091 7884800 1900
80606332 oboltus D May 18, 2020, 1:28 p.m. OK MS C++ 2017 TESTS 55 624 11776000 1900
80795200 _-qwerty-_ D May 20, 2020, 5:28 p.m. OK MS C++ 2017 TESTS 55 639 8396800 1900
80937527 vjudge5 D May 22, 2020, 1:38 p.m. OK MS C++ 2017 TESTS 55 670 11673600 1900
80519478 lioshik_ D May 17, 2020, 12:27 p.m. OK MS C++ 2017 TESTS 55 748 7987200 1900
81555404 ningBr D May 26, 2020, 6:25 p.m. OK MS C++ 2017 TESTS 55 764 4300800 1900
81555481 ningBr D May 26, 2020, 6:26 p.m. OK MS C++ 2017 TESTS 55 780 4300800 1900
80554980 PanZverski D May 17, 2020, 9:14 p.m. OK MS C++ 2017 TESTS 55 795 12083200 1900
81555367 ningBr D May 26, 2020, 6:25 p.m. OK MS C++ 2017 TESTS 55 826 4300800 1900
80534657 tarattata1 D May 17, 2020, 3:39 p.m. OK MS C++ 2017 TESTS 55 904 7782400 1900
80597652 brined_fish D May 18, 2020, 11:41 a.m. OK MS C++ 2017 TESTS 55 1075 7782400 1900
80671418 amit_dwivedi D May 19, 2020, 9:04 a.m. OK PyPy 2 TESTS 55 1169 13107200 1900
80633433 aberent D May 18, 2020, 6:58 p.m. OK PyPy 3 TESTS 55 639 25600000 1900
80682745 ashokchoudhary2212 D May 19, 2020, 11:37 a.m. OK PyPy 3 TESTS 55 701 26112000 1900
80762564 codershuvo D May 20, 2020, 10:25 a.m. OK PyPy 3 TESTS 55 732 14848000 1900
80738874 nehan_der_thal D May 20, 2020, 3:59 a.m. OK PyPy 3 TESTS 55 748 14848000 1900
80807195 Galkowsky D May 20, 2020, 9:03 p.m. OK PyPy 3 TESTS 55 904 10956800 1900
80807215 Galkowsky D May 20, 2020, 9:04 p.m. OK PyPy 3 TESTS 55 935 14438400 1900
80762132 codershuvo D May 20, 2020, 10:18 a.m. OK PyPy 3 TESTS 55 998 14745600 1900
80710846 dominator1234 D May 19, 2020, 4:55 p.m. OK PyPy 3 TESTS 55 1014 14848000 1900
80671642 Sud_geek D May 19, 2020, 9:08 a.m. OK PyPy 3 TESTS 55 1060 14540800 1900
80630268 pajenegod D May 18, 2020, 6:11 p.m. OK PyPy 3 TESTS 55 1106 7680000 1900
80741376 sansen D May 20, 2020, 5:04 a.m. OK Rust TESTS 55 405 25395200 1900
80741005 sansen D May 20, 2020, 4:55 a.m. OK Rust TESTS 55 436 23654400 1900
80776585 sansen D May 20, 2020, 1:30 p.m. OK Rust TESTS 55 467 3993600 1900
80741429 sansen D May 20, 2020, 5:05 a.m. OK Rust TESTS 55 483 25395200 1900
80776459 sansen D May 20, 2020, 1:28 p.m. OK Rust TESTS 55 577 3993600 1900
80758342 sansen D May 20, 2020, 9:27 a.m. OK Rust TESTS 55 701 3993600 1900
80777696 sansen D May 20, 2020, 1:45 p.m. OK Rust TESTS 55 732 3993600 1900

remove filters

Back to search problems