Technocup 2020 - Elimination Round 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
1227 Technocup 2020 - Elimination Round 3 FINISHED False 7200 162856487 Nov. 24, 2019, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4428 ) D2 Optimal Subsequences (Hard Version) PROGRAMMING data structures greedy 1800

B'This is the harder version of the problem. In this version, 1 <= n, m <= 2 cdot10^5 . You can hack this problem if you locked it. But you can hack the previous problem only if you locked both problems. You are given a sequence of integers a=[a_1,a_2, ... ,a_n] of length n . Its subsequence is obtained by removing zero or more elements from the sequence a (they do not necessarily go consecutively). For example, for the sequence a=[11,20,11,33,11,20,11] : Suppose that an additional non-negative integer k ( 1 <= k <= n ) is given, then the subsequence is called optimal if: Recall that the sequence b=[b_1, b_2, ... , b_k] is lexicographically smaller than the sequence c=[c_1, c_2, ... , c_k] if the first element (from the left) in which they differ less in the sequence b than in c . Formally: there exists t ( 1 <= t <= k ) such that b_1=c_1 , b_2=c_2 , ..., b_{t-1}=c_{t-1} and at the same time b_t<c_t . For example: You are given a sequence of a=[a_1,a_2, ... ,a_n] and m requests, each consisting of two numbers k_j and pos_j ( 1 <= k <= n , 1 <= pos_j <= k_j ). For each query, print the value that is in the index pos_j of the optimal subsequence of the given sequence a for k=k_j . For example, if n=4 , a=[10,20,30,20] , k_j=2 , then the optimal subsequence is [20,30] -- it is the minimum lexicographically among all subsequences of length 2 with the maximum total sum of items. Thus, the answer to the request k_j=2 , pos_j=1 is the number 20 , and the answer to the request k_j=2 , pos_j=2 is the number 30 . The first line contains an integer n ( 1 <= n <= 2 cdot10^5 ) -- the length of the sequence a . The second line contains elements of the sequence a : integer numbers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ). The th'...

Tutorials

Разбор задач №2

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66026555 BeNoble D2 Nov. 30, 2019, 8:52 a.m. OK GNU C++11 TESTS 31 109 10137600 1800
65698669 pufanyi D2 Nov. 25, 2019, 9:39 a.m. OK GNU C++11 TESTS 29 124 9011200 1800
66275551 WhiteCmile D2 Dec. 4, 2019, 2:31 p.m. OK GNU C++11 TESTS 31 171 10342400 1800
66045560 xht37 D2 Nov. 30, 2019, 2:55 p.m. OK GNU C++11 TESTS 31 171 12185600 1800
66401140 sunny_fei D2 Dec. 6, 2019, 12:19 p.m. OK GNU C++11 TESTS 31 171 80998400 1800
65708138 yqlm D2 Nov. 25, 2019, 1:20 p.m. OK GNU C++11 TESTS 31 187 7270400 1800
69455694 wasa855 D2 Jan. 24, 2020, 8:31 a.m. OK GNU C++11 TESTS 31 187 8806400 1800
66275480 WhiteCmile D2 Dec. 4, 2019, 2:29 p.m. OK GNU C++11 TESTS 31 187 10342400 1800
65957508 luogu_bot1 D2 Nov. 29, 2019, 1:25 p.m. OK GNU C++11 TESTS 31 187 12083200 1800
66410199 wqst D2 Dec. 6, 2019, 3:03 p.m. OK GNU C++11 TESTS 31 202 16384000 1800
65712441 Andreasyan D2 Nov. 25, 2019, 2:56 p.m. OK GNU C++14 TESTS 31 249 8806400 1800
65687726 jiangly D2 Nov. 25, 2019, 1:55 a.m. OK GNU C++14 TESTS 29 265 8601600 1800
65753696 JSZX11556 D2 Nov. 26, 2019, 2:06 p.m. OK GNU C++14 TESTS 31 280 9011200 1800
67255930 torpedo11 D2 Dec. 19, 2019, 10:09 p.m. OK GNU C++14 TESTS 31 280 9625600 1800
68702170 Heart_Blue D2 Jan. 13, 2020, 9:50 a.m. OK GNU C++14 TESTS 31 280 12697600 1800
66137659 NoTeamName D2 Dec. 1, 2019, 12:56 p.m. OK GNU C++14 TESTS 31 280 15257600 1800
67678659 emanlaicepsa D2 Dec. 27, 2019, 4:48 a.m. OK GNU C++14 TESTS 31 296 10649600 1800
65724038 Temirulan D2 Nov. 25, 2019, 9:02 p.m. OK GNU C++14 TESTS 31 296 12697600 1800
65636782 _romanchick_ D2 Nov. 24, 2019, 8:42 a.m. OK GNU C++14 TESTS 29 311 7270400 1800
65699880 Muhammad_Hokimiyon D2 Nov. 25, 2019, 10:15 a.m. OK GNU C++14 TESTS 29 311 16588800 1800
65687088 HatsuneMikuo D2 Nov. 25, 2019, 1:07 a.m. OK GNU C++17 TESTS 29 156 12390400 1800
65729161 24khandsome D2 Nov. 26, 2019, 3:25 a.m. OK GNU C++17 TESTS 31 233 7680000 1800
65765162 nan0S D2 Nov. 26, 2019, 5:35 p.m. OK GNU C++17 TESTS 31 249 7680000 1800
69572037 rananjay23 D2 Jan. 26, 2020, 2:23 p.m. OK GNU C++17 TESTS 31 249 9830400 1800
66171994 .tx D2 Dec. 2, 2019, 10:50 a.m. OK GNU C++17 TESTS 31 249 15974400 1800
65924446 TryMax D2 Nov. 28, 2019, 5:38 p.m. OK GNU C++17 TESTS 31 264 13209600 1800
65652806 Serega_Balyuk D2 Nov. 24, 2019, 9:56 a.m. OK GNU C++17 TESTS 29 265 8499200 1800
67790487 MADKIRUS D2 Dec. 28, 2019, 2:28 p.m. OK GNU C++17 TESTS 31 265 10342400 1800
65819957 VioletSaber D2 Nov. 27, 2019, 10:01 a.m. OK GNU C++17 TESTS 31 280 6451200 1800
65643164 Kuyan D2 Nov. 24, 2019, 9:08 a.m. OK GNU C++17 TESTS 29 280 7782400 1800
66604775 tusharjape007 D2 Dec. 10, 2019, 6 p.m. OK Java 11 TESTS 31 764 34508800 1800
65766369 IslamTalipovTop D2 Nov. 26, 2019, 6:09 p.m. OK Java 11 TESTS 31 935 31334400 1800
65644419 ivemari D2 Nov. 24, 2019, 9:14 a.m. OK Java 11 TESTS 29 2745 15974400 1800
65714553 4mda4mda D2 Nov. 25, 2019, 3:55 p.m. OK Java 8 TESTS 31 639 23244800 1800
66542370 yaoct D2 Dec. 9, 2019, 12:01 p.m. OK Java 8 TESTS 31 686 28057600 1800
68010879 fatnot D2 Dec. 31, 2019, 3:43 p.m. OK MS C++ 2017 TESTS 31 733 8089600 1800
66279421 kurs D2 Dec. 4, 2019, 4:36 p.m. OK MS C++ 2017 TESTS 31 733 12800000 1800
65644935 gravitsapa D2 Nov. 24, 2019, 9:18 a.m. OK MS C++ 2017 TESTS 29 779 19558400 1800
65652815 TeaTime D2 Nov. 24, 2019, 9:56 a.m. OK MS C++ 2017 TESTS 29 826 25804800 1800
65639784 Catmoonlight D2 Nov. 24, 2019, 8:53 a.m. OK MS C++ 2017 TESTS 29 966 27238400 1800
65715956 heartsker D2 Nov. 25, 2019, 4:35 p.m. OK MS C++ 2017 TESTS 31 1590 26521600 1800
66311288 Simon_Chen D2 Dec. 5, 2019, 11:32 a.m. OK MS C++ 2017 TESTS 31 1684 80384000 1800
65746425 AndreWiking D2 Nov. 26, 2019, 12:25 p.m. OK MS C++ 2017 TESTS 31 2652 5632000 1800
65736808 AndreWiking D2 Nov. 26, 2019, 8:13 a.m. OK MS C++ 2017 TESTS 31 2652 5632000 1800
65947166 nik-in-au D2 Nov. 29, 2019, 9:11 a.m. OK PyPy 3 TESTS 31 2667 107929600 1800
66003809 arbrk1 D2 Nov. 29, 2019, 8:17 p.m. OK Python 3 TESTS 31 2979 65331200 1800

remove filters

Back to search problems