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 |
---|---|---|---|---|---|---|
1852 | Codeforces Round 887 (Div. 1) | FINISHED | False | 9000 | 47057063 | July 23, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 8280 ) | A | Ntarsis' Set | PROGRAMMING | binary search implementation math two pointers |
B'Ntarsis has been given a set S , initially containing integers 1, 2, 3, ldots, 10^{1000} in sorted order. Every day, he will remove the a_1 -th, a_2 -th, ldots , a_n -th smallest numbers in S simultaneously. What is the smallest element in S after k days? Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^5 ). The description of the test cases follows. The first line of each test case consists of two integers n and k ( 1 <= q n,k <= q 2 cdot 10^5 ) -- the length of a and the number of days. The following line of each test case consists of n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 10^9 ) -- the elements of array a . It is guaranteed that: For each test case, print an integer that is the smallest element in S after k days. For the first test case, each day the 1 -st, 2 -nd, 4 -th, 5 -th, and 6 -th smallest elements need to be removed from S . So after the first day, S will become require{cancel} { cancel 1, cancel 2, 3, cancel 4, cancel 5, cancel 6, 7, 8, 9, ldots } = {3, 7, 8, 9, ldots } . The smallest element is 3 . For the second case, each day the 1 -st, 3 -rd, 5 -th, 6 -th and 7 -th smallest elements need to be removed from S . S will be changed as follows: The smallest element left after k = 3 days is 9 . '... |
Codeforces Round 887 (Div 1, Div 2) Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
215214517 | KumaTachiRen | A | July 23, 2023, 3:09 p.m. | OK | C# 8 | TESTS | 33 | 171 | 3891200 | ||
215210259 | Gassa | A | July 23, 2023, 3:01 p.m. | OK | D | TESTS | 33 | 280 | 13516800 | ||
215290624 | tokitsukaze | A | July 24, 2023, 2:34 a.m. | OK | GNU C++14 | TESTS | 33 | 31 | 1740800 | ||
215203575 | jiangtaizhe001 | A | July 23, 2023, 2:49 p.m. | OK | GNU C++14 | TESTS | 33 | 46 | 2867200 | ||
215229903 | HHH666666 | A | July 23, 2023, 3:48 p.m. | OK | GNU C++14 | TESTS | 33 | 77 | 1638400 | ||
215218507 | yutabi | A | July 23, 2023, 3:18 p.m. | OK | GNU C++14 | TESTS | 33 | 78 | 0 | ||
215302446 | cypher47 | A | July 24, 2023, 5:08 a.m. | OK | GNU C++14 | TESTS | 33 | 78 | 819200 | ||
215206434 | FSTAutoMaton | A | July 23, 2023, 2:53 p.m. | OK | GNU C++14 | TESTS | 33 | 78 | 2867200 | ||
215207776 | Blaze035 | A | July 23, 2023, 2:56 p.m. | OK | GNU C++14 | TESTS | 33 | 93 | 1228800 | ||
215215089 | Leasier | A | July 23, 2023, 3:10 p.m. | OK | GNU C++14 | TESTS | 33 | 93 | 1536000 | ||
215302228 | cypher47 | A | July 24, 2023, 5:05 a.m. | OK | GNU C++14 | TESTS | 33 | 93 | 1638400 | ||
215281654 | lovely_cyc | A | July 24, 2023, 12:09 a.m. | OK | GNU C++14 | TESTS | 33 | 93 | 1638400 | ||
215227193 | martinius | A | July 23, 2023, 3:40 p.m. | OK | GNU C++17 | TESTS | 33 | 78 | 819200 | ||
215217886 | mohamedeltair | A | July 23, 2023, 3:17 p.m. | OK | GNU C++17 | TESTS | 33 | 78 | 819200 | ||
215216926 | lddlinan | A | July 23, 2023, 3:14 p.m. | OK | GNU C++17 | TESTS | 33 | 78 | 1536000 | ||
215298671 | ccy | A | July 24, 2023, 4:19 a.m. | OK | GNU C++17 | TESTS | 33 | 78 | 1638400 | ||
215196438 | yuto1115 | A | July 23, 2023, 2:41 p.m. | OK | GNU C++17 | TESTS | 33 | 78 | 1638400 | ||
215281663 | Lucky_OvO | A | July 24, 2023, 12:10 a.m. | OK | GNU C++17 | TESTS | 33 | 78 | 7987200 | ||
215236573 | AlexanderL | A | July 23, 2023, 4:09 p.m. | OK | GNU C++17 | TESTS | 33 | 93 | 819200 | ||
215215654 | Yzm007 | A | July 23, 2023, 3:12 p.m. | OK | GNU C++17 | TESTS | 33 | 93 | 819200 | ||
215213301 | lxhgww | A | July 23, 2023, 3:07 p.m. | OK | GNU C++17 | TESTS | 33 | 93 | 819200 | ||
215207750 | Nson | A | July 23, 2023, 2:56 p.m. | OK | GNU C++17 | TESTS | 33 | 93 | 819200 | ||
215207394 | Hackenbush | A | July 23, 2023, 2:55 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 31 | 2457600 | ||
215285491 | imsuck12 | A | July 24, 2023, 1:21 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 61 | 819200 | ||
215270991 | Leoknowstheway | A | July 23, 2023, 8:32 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 61 | 819200 | ||
215200813 | BigBag | A | July 23, 2023, 2:46 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 61 | 819200 | ||
215199512 | maomao90 | A | July 23, 2023, 2:44 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 61 | 819200 | ||
215233531 | pooty | A | July 23, 2023, 3:59 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 61 | 1638400 | ||
215283301 | imsuck12 | A | July 24, 2023, 12:45 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 62 | 819200 | ||
215216772 | houren | A | July 23, 2023, 3:14 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 62 | 819200 | ||
215210280 | trainwithoutpain | A | July 23, 2023, 3:01 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 62 | 819200 | ||
215202407 | MnTm | A | July 23, 2023, 2:47 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 62 | 819200 | ||
215241928 | makcvim | A | July 23, 2023, 4:29 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 0 | ||
215301447 | Cryptic_42 | A | July 24, 2023, 4:56 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215297786 | Awesome3.14 | A | July 24, 2023, 4:06 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215274216 | maxplus | A | July 23, 2023, 9:21 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215260286 | ecnerwala | A | July 23, 2023, 6:28 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215258694 | OkClinty | A | July 23, 2023, 6:14 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215209828 | yingluosanqian | A | July 23, 2023, 3 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215207843 | coding_sword | A | July 23, 2023, 2:56 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215206340 | xindubawukong | A | July 23, 2023, 2:53 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215199007 | hypergraph_coloring | A | July 23, 2023, 2:44 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 46 | 819200 | ||
215270973 | Ginkgobiloba | A | July 23, 2023, 8:32 p.m. | OK | Go | TESTS | 33 | 61 | 5939200 | ||
215261178 | profchi | A | July 23, 2023, 6:37 p.m. | OK | Java 11 | TESTS | 33 | 311 | 8192000 | ||
215305156 | jiangqiao | A | July 24, 2023, 5:41 a.m. | OK | Java 17 | TESTS | 33 | 280 | 716800 | ||
215217391 | cc4414 | A | July 23, 2023, 3:15 p.m. | OK | Java 8 | TESTS | 33 | 327 | 3072000 | ||
215197068 | Tlatoani | A | July 23, 2023, 2:42 p.m. | OK | Kotlin 1.6 | TESTS | 33 | 1965 | 19148800 | ||
215198495 | Hakiobo | A | July 23, 2023, 2:43 p.m. | OK | Kotlin 1.7 | TESTS | 33 | 405 | 6041600 | ||
215197447 | PavelKunyavskiy | A | July 23, 2023, 2:42 p.m. | OK | Kotlin 1.7 | TESTS | 33 | 1232 | 90419200 | ||
215276245 | eogito | A | July 23, 2023, 10 p.m. | OK | MS C++ 2017 | TESTS | 33 | 296 | 819200 | ||
215209510 | SPD_9X2 | A | July 23, 2023, 2:59 p.m. | OK | PyPy 3 | TESTS | 33 | 498 | 15872000 | ||
215205037 | hxu10 | A | July 23, 2023, 2:51 p.m. | OK | PyPy 3 | TESTS | 33 | 1746 | 19558400 | ||
215236144 | plevande | A | July 23, 2023, 4:08 p.m. | OK | PyPy 3-64 | TESTS | 33 | 171 | 20172800 | ||
215203557 | wkoo | A | July 23, 2023, 2:49 p.m. | OK | PyPy 3-64 | TESTS | 33 | 171 | 23244800 | ||
215265162 | Nabeel_Ismaeel | A | July 23, 2023, 7:23 p.m. | OK | PyPy 3-64 | TESTS | 33 | 202 | 26726400 | ||
215213676 | delena0702 | A | July 23, 2023, 3:07 p.m. | OK | PyPy 3-64 | TESTS | 33 | 202 | 27545600 | ||
215211496 | toam | A | July 23, 2023, 3:03 p.m. | OK | PyPy 3-64 | TESTS | 33 | 280 | 27545600 | ||
215225163 | flygon | A | July 23, 2023, 3:35 p.m. | OK | PyPy 3-64 | TESTS | 33 | 280 | 32051200 | ||
215212273 | Maruzensky | A | July 23, 2023, 3:04 p.m. | OK | PyPy 3-64 | TESTS | 33 | 296 | 27648000 | ||
215282095 | alxwen711 | A | July 24, 2023, 12:20 a.m. | OK | PyPy 3-64 | TESTS | 33 | 389 | 30003200 | ||
215203856 | tassei903 | A | July 23, 2023, 2:49 p.m. | OK | PyPy 3-64 | TESTS | 33 | 483 | 26624000 | ||
215229508 | chinerist | A | July 23, 2023, 3:47 p.m. | OK | PyPy 3-64 | TESTS | 33 | 764 | 33587200 | ||
215274250 | wojciech_domin | A | July 23, 2023, 9:22 p.m. | OK | Python 3 | TESTS | 33 | 951 | 27033600 | ||
215213281 | nairb | A | July 23, 2023, 3:07 p.m. | OK | Rust 2021 | TESTS | 33 | 857 | 7884800 |
Back to search problems