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 |
---|---|---|---|---|---|---|
1997 | Educational Codeforces Round 168 (Rated for Div. 2) | FINISHED | False | 7200 | 14829863 | July 30, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3243 ) | E | Level Up | PROGRAMMING | binary search brute force data structures implementation |
B'Monocarp is playing a computer game. He starts the game being level 1 . He is about to fight n monsters, in order from 1 to n . The level of the i -th monster is a_i . For each monster in the given order, Monocarp 's encounter goes as follows: After every k -th fight with a monster (fleeing monsters do not count), Monocarp 's level increases by 1 . So, his level becomes 2 after k monsters he fights, 3 after 2k monsters, 4 after 3k monsters, and so on. You need to process q queries of the following form: The first line contains two integers n and q ( 1 <= n, q <= 2 cdot 10^5 ) -- the number of monsters and the number of queries. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 2 cdot 10^5 ) -- the levels of the monsters. In the j -th of the following q lines, two integers i and x ( 1 <= i, x <= n ) -- the index of the monster and the number of fights required for a level up in the j -th query. For each query, output "YES", if Monocarp will fight the i -th monster in this query, and "NO", if the i -th monster flees. '... |
Video Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
273652529 | jiangbowen | E | July 31, 2024, 3:03 a.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 109 | 3686400 | ||
273663030 | QingLian_WuZhe | E | July 31, 2024, 4:54 a.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 218 | 2457600 | ||
273644698 | GGapa | E | July 31, 2024, 1:40 a.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 234 | 102400 | ||
273643737 | GGapa | E | July 31, 2024, 1:28 a.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 249 | 0 | ||
273599499 | Top-G- | E | July 30, 2024, 5:03 p.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 249 | 1024000 | ||
273661378 | Aurora_N | E | July 31, 2024, 4:36 a.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 249 | 4812800 | ||
273603573 | hqmm | E | July 30, 2024, 5:23 p.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 249 | 6041600 | ||
273605985 | ethandong | E | July 30, 2024, 5:36 p.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 280 | 2457600 | ||
273627148 | M_SQRT | E | July 30, 2024, 8:38 p.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 296 | 3788800 | ||
273662277 | zhuchenyao | E | July 31, 2024, 4:46 a.m. | OK | C++14 (GCC 6-32) | TESTS | 80 | 327 | 7270400 | ||
273652411 | jiangbowen | E | July 31, 2024, 3:02 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 93 | 3584000 | ||
273652357 | jiangbowen | E | July 31, 2024, 3:02 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 93 | 3584000 | ||
273653891 | 2210030140 | E | July 31, 2024, 3:16 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 108 | 3584000 | ||
273656689 | PhoenixRebirth | E | July 31, 2024, 3:44 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 124 | 4505600 | ||
273656391 | PhoenixRebirth | E | July 31, 2024, 3:41 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 124 | 4505600 | ||
273666189 | potato167 | E | July 31, 2024, 5:29 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 202 | 0 | ||
273663299 | celin | E | July 31, 2024, 4:58 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 202 | 12083200 | ||
273666620 | Peslanna | E | July 31, 2024, 5:33 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 203 | 2457600 | ||
273652008 | jiangbowen | E | July 31, 2024, 2:59 a.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 218 | 2457600 | ||
273636721 | ChengyouF | E | July 30, 2024, 11:44 p.m. | OK | C++17 (GCC 7-32) | TESTS | 80 | 233 | 2457600 | ||
273652459 | jiangbowen | E | July 31, 2024, 3:03 a.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 109 | 3686400 | ||
273660394 | Texiwus | E | July 31, 2024, 4:25 a.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 140 | 102400 | ||
273648415 | Shinobu_Sengoku | E | July 31, 2024, 2:22 a.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 171 | 2457600 | ||
273648353 | shendeliliang | E | July 31, 2024, 2:21 a.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 186 | 2457600 | ||
273614101 | Ashidaka | E | July 30, 2024, 6:26 p.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 187 | 3276800 | ||
273609320 | Hirro | E | July 30, 2024, 5:55 p.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 187 | 4812800 | ||
273608956 | diobrando97 | E | July 30, 2024, 5:53 p.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 202 | 0 | ||
273669813 | xyktyjayket | E | July 31, 2024, 6:02 a.m. | OK | C++20 (GCC 13-64) | TESTS | 104 | 202 | 102400 | ||
273651507 | NekoYellow | E | July 31, 2024, 2:54 a.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 202 | 102400 | ||
273640019 | nzo | E | July 31, 2024, 12:28 a.m. | OK | C++20 (GCC 13-64) | TESTS | 80 | 202 | 819200 | ||
273622152 | rainboy | E | July 30, 2024, 7:36 p.m. | OK | GNU C11 | TESTS | 80 | 921 | 3788800 | ||
273665124 | ArminArlert69 | E | July 31, 2024, 5:18 a.m. | OK | GNU C11 | TESTS | 80 | 1031 | 3788800 | ||
273633787 | gxlois | E | July 30, 2024, 10:33 p.m. | OK | GNU C11 | TESTS | 80 | 1905 | 384716800 | ||
273656998 | dzhi | E | July 31, 2024, 3:48 a.m. | OK | Java 21 | TESTS | 80 | 562 | 9830400 | ||
273624722 | Eslam_Ahmed | E | July 30, 2024, 8:06 p.m. | OK | Java 21 | TESTS | 80 | 2546 | 49049600 | ||
273623169 | profchi | E | July 30, 2024, 7:47 p.m. | OK | Java 8 | TESTS | 80 | 374 | 3686400 | ||
273654730 | 2210030272 | E | July 31, 2024, 3:24 a.m. | OK | Java 8 | TESTS | 80 | 1312 | 8294400 | ||
273624791 | Eslam_Ahmed | E | July 30, 2024, 8:07 p.m. | OK | Java 8 | TESTS | 80 | 2764 | 45465600 | ||
273628718 | RobinFromTheHood | E | July 30, 2024, 8:59 p.m. | OK | PyPy 3-64 | TESTS | 80 | 530 | 27852800 | ||
273611251 | miaplays | E | July 30, 2024, 6:07 p.m. | OK | PyPy 3-64 | TESTS | 80 | 546 | 64512000 | ||
273631167 | LMeyling | E | July 30, 2024, 9:40 p.m. | OK | PyPy 3-64 | TESTS | 80 | 561 | 26726400 | ||
273656762 | hxu10 | E | July 31, 2024, 3:45 a.m. | OK | PyPy 3-64 | TESTS | 80 | 655 | 33894400 | ||
273616254 | phungthienphuoc | E | July 30, 2024, 6:42 p.m. | OK | PyPy 3-64 | TESTS | 80 | 796 | 35532800 | ||
273637955 | RobinFromTheHood | E | July 31, 2024, 12:12 a.m. | OK | PyPy 3-64 | TESTS | 80 | 858 | 30515200 | ||
273606247 | misorin | E | July 30, 2024, 5:38 p.m. | OK | PyPy 3-64 | TESTS | 80 | 1171 | 37888000 | ||
273600095 | misorin | E | July 30, 2024, 5:06 p.m. | OK | PyPy 3-64 | TESTS | 80 | 1296 | 38604800 | ||
273658394 | cy171 | E | July 31, 2024, 4:02 a.m. | OK | PyPy 3-64 | TESTS | 80 | 2093 | 34918400 | ||
273606676 | Heartbeateffect | E | July 30, 2024, 5:40 p.m. | OK | PyPy 3-64 | TESTS | 80 | 2374 | 103628800 | ||
273633915 | n685 | E | July 30, 2024, 10:36 p.m. | OK | Rust 2021 | TESTS | 80 | 109 | 6860800 | ||
273636440 | aviral311 | E | July 30, 2024, 11:38 p.m. | OK | Rust 2021 | TESTS | 80 | 765 | 3788800 | ||
273634478 | liut | E | July 30, 2024, 10:49 p.m. | OK | Rust 2021 | TESTS | 80 | 1061 | 449126400 | ||
273634324 | liut | E | July 30, 2024, 10:46 p.m. | OK | Rust 2021 | TESTS | 80 | 1312 | 449945600 | ||
273599468 | toor | E | July 30, 2024, 5:03 p.m. | OK | Rust 2021 | TESTS | 80 | 2124 | 124416000 |
Back to search problems