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. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 6508 ) | D1 | Optimal Subsequences (Easy Version) | PROGRAMMING | data structures greedy | 1600 |
B'This is the easier version of the problem. In this version 1 <= n, m <= 100 . You can hack this problem only if you solve and lock 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 <= 100 ) -- 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 third line contains an integer m ( 1 <= m <= 100 ) xe2 x80'... |
Разбор задач №2 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
65734887 | dblark | D1 | Nov. 26, 2019, 7:16 a.m. | OK | FPC | TESTS | 21 | 15 | 307200 | 1600 | |
66026576 | BeNoble | D1 | Nov. 30, 2019, 8:52 a.m. | OK | GNU C++11 | TESTS | 21 | 15 | 5427200 | 1600 | |
67274735 | vjudge5 | D1 | Dec. 20, 2019, 9:45 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 0 | 1600 | |
67140619 | _dark_side | D1 | Dec. 18, 2019, 6:36 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 0 | 1600 | |
65995408 | vjudge2 | D1 | Nov. 29, 2019, 5:30 p.m. | OK | GNU C++11 | TESTS | 21 | 30 | 0 | 1600 | |
65649664 | Hirocopter | D1 | Nov. 24, 2019, 9:41 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 0 | 1600 | |
65645822 | eeestrelok | D1 | Nov. 24, 2019, 9:24 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 0 | 1600 | |
69279725 | vjudge5 | D1 | Jan. 22, 2020, 5:13 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 102400 | 1600 | |
65953520 | LinkinPony | D1 | Nov. 29, 2019, 11:51 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 102400 | 1600 | |
66011799 | luogu_bot1 | D1 | Nov. 30, 2019, 3:01 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 1638400 | 1600 | |
66674146 | luogu_bot2 | D1 | Dec. 12, 2019, 10:36 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 5632000 | 1600 | |
65648753 | kirill_zubkov | D1 | Nov. 24, 2019, 9:36 a.m. | OK | GNU C++14 | TESTS | 21 | 15 | 0 | 1600 | |
66774248 | Rohit_1221 | D1 | Dec. 13, 2019, 9:17 a.m. | OK | GNU C++14 | TESTS | 21 | 15 | 102400 | 1600 | |
66968038 | mrQalbiat | D1 | Dec. 15, 2019, 12:24 p.m. | OK | GNU C++14 | TESTS | 21 | 15 | 204800 | 1600 | |
66133312 | 03056 | D1 | Dec. 1, 2019, 11:19 a.m. | OK | GNU C++14 | TESTS | 21 | 15 | 204800 | 1600 | |
65668082 | ayushanshul07 | D1 | Nov. 24, 2019, 2:45 p.m. | OK | GNU C++14 | TESTS | 21 | 15 | 204800 | 1600 | |
65648838 | SoGood | D1 | Nov. 24, 2019, 9:37 a.m. | OK | GNU C++14 | TESTS | 21 | 15 | 307200 | 1600 | |
66598193 | ujju_sucks | D1 | Dec. 10, 2019, 3:30 p.m. | OK | GNU C++14 | TESTS | 21 | 15 | 1024000 | 1600 | |
67678670 | emanlaicepsa | D1 | Dec. 27, 2019, 4:49 a.m. | OK | GNU C++14 | TESTS | 21 | 15 | 4812800 | 1600 | |
68293824 | vovamr | D1 | Jan. 6, 2020, 12:24 a.m. | OK | GNU C++14 | TESTS | 21 | 15 | 6041600 | 1600 | |
65943505 | MoMo | D1 | Nov. 29, 2019, 7:33 a.m. | OK | GNU C++14 | TESTS | 21 | 15 | 7372800 | 1600 | |
69487324 | sky57 | D1 | Jan. 24, 2020, 8:12 p.m. | OK | GNU C++17 | TESTS | 21 | 15 | 0 | 1600 | |
66438669 | UnstoppableSuckMachine | D1 | Dec. 7, 2019, 7:11 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 0 | 1600 | |
65687935 | o.ogao | D1 | Nov. 25, 2019, 2:11 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 0 | 1600 | |
65647522 | Al.ctrl | D1 | Nov. 24, 2019, 9:31 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 0 | 1600 | |
65647308 | neohacker | D1 | Nov. 24, 2019, 9:30 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 0 | 1600 | |
65645101 | mukar | D1 | Nov. 24, 2019, 9:19 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 0 | 1600 | |
67461502 | qiaoza666 | D1 | Dec. 23, 2019, 9:21 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 102400 | 1600 | |
66303891 | ledo | D1 | Dec. 5, 2019, 8:31 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 102400 | 1600 | |
66245354 | kittuj | D1 | Dec. 3, 2019, 8:11 p.m. | OK | GNU C++17 | TESTS | 21 | 15 | 102400 | 1600 | |
65793885 | liyunfan1223 | D1 | Nov. 27, 2019, 2:18 a.m. | OK | GNU C++17 | TESTS | 21 | 15 | 102400 | 1600 | |
65677751 | potatmen | D1 | Nov. 24, 2019, 6:22 p.m. | OK | Java 11 | TESTS | 21 | 186 | 0 | 1600 | |
65766366 | IslamTalipovTop | D1 | Nov. 26, 2019, 6:09 p.m. | OK | Java 11 | TESTS | 21 | 187 | 0 | 1600 | |
65644390 | ivemari | D1 | Nov. 24, 2019, 9:14 a.m. | OK | Java 11 | TESTS | 21 | 202 | 0 | 1600 | |
65847768 | Maves | D1 | Nov. 27, 2019, 2:39 p.m. | OK | Java 11 | TESTS | 21 | 233 | 0 | 1600 | |
65928993 | alireza_sh | D1 | Nov. 28, 2019, 7:47 p.m. | OK | Java 8 | TESTS | 21 | 109 | 0 | 1600 | |
65651627 | potatmen | D1 | Nov. 24, 2019, 9:51 a.m. | OK | Java 8 | TESTS | 21 | 155 | 0 | 1600 | |
65714545 | 4mda4mda | D1 | Nov. 25, 2019, 3:55 p.m. | OK | Java 8 | TESTS | 21 | 156 | 0 | 1600 | |
65649942 | mikhaylov_boris | D1 | Nov. 24, 2019, 9:42 a.m. | OK | Java 8 | TESTS | 21 | 156 | 0 | 1600 | |
65645494 | Happy_Stove | D1 | Nov. 24, 2019, 9:22 a.m. | OK | Java 8 | TESTS | 21 | 170 | 0 | 1600 | |
66274233 | vjudge5 | D1 | Dec. 4, 2019, 1:45 p.m. | OK | MS C++ | TESTS | 21 | 30 | 0 | 1600 | |
66161973 | vjudge1 | D1 | Dec. 2, 2019, 5:08 a.m. | OK | MS C++ | TESTS | 21 | 31 | 0 | 1600 | |
66135477 | vjudge3 | D1 | Dec. 1, 2019, 12:01 p.m. | OK | MS C++ | TESTS | 21 | 31 | 0 | 1600 | |
66028617 | vjudge3 | D1 | Nov. 30, 2019, 9:26 a.m. | OK | MS C++ | TESTS | 21 | 31 | 0 | 1600 | |
66001785 | vjudge2 | D1 | Nov. 29, 2019, 7:26 p.m. | OK | MS C++ | TESTS | 21 | 31 | 0 | 1600 | |
65938243 | vjudge5 | D1 | Nov. 29, 2019, 4:10 a.m. | OK | MS C++ | TESTS | 21 | 31 | 0 | 1600 | |
69912245 | vjudge2 | D1 | Jan. 31, 2020, 3:43 p.m. | OK | MS C++ 2017 | TESTS | 21 | 30 | 0 | 1600 | |
66788646 | Still_Theory | D1 | Dec. 13, 2019, 2:30 p.m. | OK | MS C++ 2017 | TESTS | 21 | 30 | 0 | 1600 | |
65650757 | vorakt | D1 | Nov. 24, 2019, 9:46 a.m. | OK | MS C++ 2017 | TESTS | 21 | 30 | 0 | 1600 | |
65644809 | machine_solution | D1 | Nov. 24, 2019, 9:17 a.m. | OK | MS C++ 2017 | TESTS | 21 | 30 | 307200 | 1600 | |
66185377 | kurs | D1 | Dec. 2, 2019, 2:16 p.m. | OK | MS C++ 2017 | TESTS | 21 | 31 | 0 | 1600 | |
65654702 | VirtualApple | D1 | Nov. 24, 2019, 10:04 a.m. | OK | MS C++ 2017 | TESTS | 21 | 31 | 0 | 1600 | |
65653263 | katyaporay | D1 | Nov. 24, 2019, 9:58 a.m. | OK | MS C++ 2017 | TESTS | 21 | 31 | 0 | 1600 | |
65652353 | griv | D1 | Nov. 24, 2019, 9:54 a.m. | OK | MS C++ 2017 | TESTS | 21 | 31 | 0 | 1600 | |
65651152 | Sad_cat | D1 | Nov. 24, 2019, 9:48 a.m. | OK | MS C++ 2017 | TESTS | 21 | 31 | 0 | 1600 | |
65646527 | r1zzka1 | D1 | Nov. 24, 2019, 9:26 a.m. | OK | MS C++ 2017 | TESTS | 21 | 31 | 0 | 1600 | |
65648583 | Ebygeev | D1 | Nov. 24, 2019, 9:36 a.m. | OK | PascalABC.NET | TESTS | 21 | 311 | 102400 | 1600 | |
65653882 | -ilya- | D1 | Nov. 24, 2019, 10:01 a.m. | OK | PascalABC.NET | TESTS | 21 | 327 | 32256000 | 1600 | |
65640341 | Alexander_a | D1 | Nov. 24, 2019, 8:56 a.m. | OK | PyPy 3 | TESTS | 21 | 155 | 0 | 1600 | |
65639312 | team_hhh | D1 | Nov. 24, 2019, 8:52 a.m. | OK | PyPy 3 | TESTS | 21 | 155 | 0 | 1600 | |
65645249 | your_soulmate | D1 | Nov. 24, 2019, 9:20 a.m. | OK | PyPy 3 | TESTS | 21 | 155 | 1126400 | 1600 | |
65641799 | 23sergey03 | D1 | Nov. 24, 2019, 9:02 a.m. | OK | PyPy 3 | TESTS | 21 | 155 | 1126400 | 1600 | |
65652908 | yekaterina_nikolaeva | D1 | Nov. 24, 2019, 9:57 a.m. | OK | PyPy 3 | TESTS | 21 | 155 | 1228800 | 1600 | |
65643596 | Kinopitals | D1 | Nov. 24, 2019, 9:10 a.m. | OK | PyPy 3 | TESTS | 21 | 155 | 1331200 | 1600 | |
65753834 | Tihohon | D1 | Nov. 26, 2019, 2:09 p.m. | OK | PyPy 3 | TESTS | 21 | 155 | 1945600 | 1600 | |
66576212 | vegetablesandwich | D1 | Dec. 10, 2019, 7:27 a.m. | OK | PyPy 3 | TESTS | 21 | 155 | 3174400 | 1600 | |
65638957 | Svytoslav | D1 | Nov. 24, 2019, 8:50 a.m. | OK | PyPy 3 | TESTS | 21 | 156 | 1126400 | 1600 | |
65648520 | BlogUnderground | D1 | Nov. 24, 2019, 9:35 a.m. | OK | PyPy 3 | TESTS | 21 | 156 | 1228800 | 1600 | |
66975699 | sruthi_1729 | D1 | Dec. 15, 2019, 2:37 p.m. | OK | Python 3 | TESTS | 21 | 108 | 0 | 1600 | |
65647872 | bushm174 | D1 | Nov. 24, 2019, 9:32 a.m. | OK | Python 3 | TESTS | 21 | 109 | 0 | 1600 | |
65635367 | ilia-ivanov | D1 | Nov. 24, 2019, 8:37 a.m. | OK | Python 3 | TESTS | 21 | 109 | 0 | 1600 | |
65654395 | alex-kulako | D1 | Nov. 24, 2019, 10:03 a.m. | OK | Python 3 | TESTS | 21 | 124 | 0 | 1600 | |
65653030 | oktober | D1 | Nov. 24, 2019, 9:57 a.m. | OK | Python 3 | TESTS | 21 | 124 | 0 | 1600 | |
65652457 | karimr_19 | D1 | Nov. 24, 2019, 9:55 a.m. | OK | Python 3 | TESTS | 21 | 124 | 0 | 1600 | |
65649292 | Atsterk | D1 | Nov. 24, 2019, 9:39 a.m. | OK | Python 3 | TESTS | 21 | 124 | 0 | 1600 | |
65643137 | MrDanzilla | D1 | Nov. 24, 2019, 9:08 a.m. | OK | Python 3 | TESTS | 21 | 124 | 0 | 1600 | |
65642227 | CAHC | D1 | Nov. 24, 2019, 9:04 a.m. | OK | Python 3 | TESTS | 21 | 124 | 0 | 1600 | |
65640762 | tralf_strues | D1 | Nov. 24, 2019, 8:58 a.m. | OK | Python 3 | TESTS | 21 | 124 | 0 | 1600 |
Back to search problems