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 |
---|---|---|---|---|---|---|
1982 | Codeforces Round 955 (Div. 2, with prizes from NEAR!) | FINISHED | False | 7200 | 12497099 | June 25, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 17564 ) | C | Boring Day | PROGRAMMING | binary search data structures dp greedy two pointers |
B'On another boring day, Egor got bored and decided to do something. But since he has no friends, he came up with a game to play. Egor has a deck of n cards, the i -th card from the top has a number a_i written on it. Egor wants to play a certain number of rounds until the cards run out. In each round, he takes a non-zero number of cards from the top of the deck and finishes the round. If the sum of the numbers on the cards collected during the round is between l and r , inclusive, the round is won; otherwise, it is lost. Egor knows by heart the order of the cards. Help Egor determine the maximum number of rounds he can win in such a game. Note that Egor is not required to win rounds consecutively. Each test consists of several test cases. The first line contains an integer t ( 1 <= t <= 10^{4} ) -- the number of test cases. This is followed by a description of the test cases. The first line of each test case contains three integers n , l , and r ( 1 <= n <= 10^{5} , 1 <= l <= r <= 10^9 ). The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ) -- the numbers on the cards from top to bottom. It is guaranteed that the sum of n for all test cases does not exceed 2 cdot 10^{5} . For each test case, output a single number -- the maximum number of rounds Egor can win. In the first test case, Egor can win 3 rounds: In the second test case, Egor cannot win any rounds, no matter how hard he tries. In the third test case, you can take one card in each round, then the first and third rounds will be losing, and the second round will be winning. In the fourth test case, you can take two cards in each round and always win. '... |
130839 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
267413825 | otabek_kholmirzaev | C | June 25, 2024, 5:45 p.m. | OK | C# 10 | TESTS | 16 | 124 | 20787200 | ||
267402712 | A1ternate | C | June 25, 2024, 4:31 p.m. | OK | C# 10 | TESTS | 16 | 203 | 26521600 | ||
267448753 | 3275658930 | C | June 26, 2024, 2:11 a.m. | OK | C++14 (GCC 6-32) | TESTS | 22 | 78 | 1638400 | ||
267467436 | checknmate | C | June 26, 2024, 6 a.m. | OK | C++14 (GCC 6-32) | TESTS | 23 | 93 | 0 | ||
267463291 | lazysapien | C | June 26, 2024, 5:22 a.m. | OK | C++14 (GCC 6-32) | TESTS | 23 | 93 | 0 | ||
267462656 | ayushk1234 | C | June 26, 2024, 5:15 a.m. | OK | C++14 (GCC 6-32) | TESTS | 23 | 93 | 0 | ||
267461252 | rishi_raj18 | C | June 26, 2024, 5:01 a.m. | OK | C++14 (GCC 6-32) | TESTS | 23 | 93 | 0 | ||
267446776 | madhavgupta2002 | C | June 26, 2024, 1:31 a.m. | OK | C++14 (GCC 6-32) | TESTS | 22 | 93 | 0 | ||
267436154 | Zeyad_3BcarenO | C | June 25, 2024, 9:37 p.m. | OK | C++14 (GCC 6-32) | TESTS | 22 | 93 | 0 | ||
267428341 | Shiro_Neko | C | June 25, 2024, 7:52 p.m. | OK | C++14 (GCC 6-32) | TESTS | 22 | 93 | 0 | ||
267427844 | beginnerBoy7 | C | June 25, 2024, 7:46 p.m. | OK | C++14 (GCC 6-32) | TESTS | 22 | 93 | 0 | ||
267426087 | GVJNJ | C | June 25, 2024, 7:26 p.m. | OK | C++14 (GCC 6-32) | TESTS | 22 | 93 | 0 | ||
267450865 | Nanako7_ix | C | June 26, 2024, 2:48 a.m. | OK | C++17 (GCC 7-32) | TESTS | 22 | 77 | 0 | ||
267425308 | low_gravity | C | June 25, 2024, 7:18 p.m. | OK | C++17 (GCC 7-32) | TESTS | 18 | 77 | 0 | ||
267407856 | vinaynagle2006 | C | June 25, 2024, 5:13 p.m. | OK | C++17 (GCC 7-32) | TESTS | 16 | 77 | 0 | ||
267468130 | Tyrus | C | June 26, 2024, 6:06 a.m. | OK | C++17 (GCC 7-32) | TESTS | 23 | 78 | 0 | ||
267465339 | SHADOWOFERROR | C | June 26, 2024, 5:41 a.m. | OK | C++17 (GCC 7-32) | TESTS | 23 | 78 | 0 | ||
267464810 | neal27 | C | June 26, 2024, 5:36 a.m. | OK | C++17 (GCC 7-32) | TESTS | 23 | 78 | 0 | ||
267461565 | slow_hare | C | June 26, 2024, 5:04 a.m. | OK | C++17 (GCC 7-32) | TESTS | 23 | 78 | 0 | ||
267451401 | saiharshith_17 | C | June 26, 2024, 2:57 a.m. | OK | C++17 (GCC 7-32) | TESTS | 22 | 78 | 0 | ||
267447287 | Priyanshu4650 | C | June 26, 2024, 1:42 a.m. | OK | C++17 (GCC 7-32) | TESTS | 22 | 78 | 0 | ||
267445633 | Yue_chen | C | June 26, 2024, 1:06 a.m. | OK | C++17 (GCC 7-32) | TESTS | 22 | 78 | 0 | ||
267468124 | svaze | C | June 26, 2024, 6:06 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267466937 | Harsh_kunwar | C | June 26, 2024, 5:56 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267466310 | pppwolf | C | June 26, 2024, 5:50 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267466279 | sotezsojib | C | June 26, 2024, 5:50 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267466255 | Hacker_1729 | C | June 26, 2024, 5:49 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267465621 | MdKamrulhassan | C | June 26, 2024, 5:43 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267465341 | RaghavChawla | C | June 26, 2024, 5:41 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267465027 | Turaka | C | June 26, 2024, 5:38 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267463380 | Saif_Ahmed008 | C | June 26, 2024, 5:23 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267463327 | 00.ghost | C | June 26, 2024, 5:22 a.m. | OK | C++20 (GCC 13-64) | TESTS | 23 | 77 | 0 | ||
267421071 | ruban | C | June 25, 2024, 6:39 p.m. | OK | FPC | TESTS | 17 | 93 | 8806400 | ||
267402952 | p01s0n | C | June 25, 2024, 4:31 p.m. | OK | GNU C11 | TESTS | 16 | 77 | 409600 | ||
267430284 | crapcode | C | June 25, 2024, 8:16 p.m. | OK | GNU C11 | TESTS | 22 | 77 | 512000 | ||
267457370 | Szzzp | C | June 26, 2024, 4:18 a.m. | OK | GNU C11 | TESTS | 23 | 77 | 1740800 | ||
267408429 | 1435730 | C | June 25, 2024, 5:15 p.m. | OK | GNU C11 | TESTS | 16 | 78 | 512000 | ||
267456900 | Szzzp | C | June 26, 2024, 4:13 a.m. | OK | GNU C11 | TESTS | 23 | 92 | 1740800 | ||
267456662 | Szzzp | C | June 26, 2024, 4:10 a.m. | OK | GNU C11 | TESTS | 23 | 93 | 1740800 | ||
267402506 | Jouska48 | C | June 25, 2024, 4:30 p.m. | OK | GNU C11 | TESTS | 16 | 108 | 716800 | ||
267405169 | alibaba17 | C | June 25, 2024, 4:34 p.m. | OK | GNU C11 | TESTS | 16 | 109 | 512000 | ||
267403890 | Alpha_knight_123 | C | June 25, 2024, 4:33 p.m. | OK | GNU C11 | TESTS | 16 | 124 | 409600 | ||
267463539 | SNX03 | C | June 26, 2024, 5:25 a.m. | OK | Go | TESTS | 23 | 77 | 7782400 | ||
267453352 | nguyenquocthao00 | C | June 26, 2024, 3:26 a.m. | OK | Go | TESTS | 23 | 218 | 56422400 | ||
267457635 | minibin | C | June 26, 2024, 4:21 a.m. | OK | Java 21 | TESTS | 23 | 280 | 409600 | ||
267457755 | Mg718 | C | June 26, 2024, 4:22 a.m. | OK | Java 21 | TESTS | 23 | 281 | 921600 | ||
267450774 | chess_nf3 | C | June 26, 2024, 2:46 a.m. | OK | Java 21 | TESTS | 22 | 312 | 1740800 | ||
267404199 | Spike.Spiegel | C | June 25, 2024, 4:33 p.m. | OK | Java 21 | TESTS | 16 | 328 | 1433600 | ||
267462717 | cccClash | C | June 26, 2024, 5:16 a.m. | OK | Java 21 | TESTS | 23 | 343 | 921600 | ||
267409303 | kkumarr1250 | C | June 25, 2024, 5:19 p.m. | OK | Java 21 | TESTS | 16 | 343 | 921600 | ||
267450057 | Sanat0412 | C | June 26, 2024, 2:34 a.m. | OK | Java 21 | TESTS | 22 | 343 | 1536000 | ||
267402111 | ImPranavAg | C | June 25, 2024, 4:30 p.m. | OK | Java 21 | TESTS | 16 | 343 | 42393600 | ||
267454851 | anand_mishra_ | C | June 26, 2024, 3:47 a.m. | OK | Java 21 | TESTS | 23 | 358 | 1331200 | ||
267411104 | mohit458 | C | June 25, 2024, 5:29 p.m. | OK | Java 21 | TESTS | 16 | 358 | 1638400 | ||
267448695 | nis1234 | C | June 26, 2024, 2:09 a.m. | OK | Java 8 | TESTS | 22 | 156 | 0 | ||
267416738 | RahulAhuja2901 | C | June 25, 2024, 6:05 p.m. | OK | Java 8 | TESTS | 16 | 156 | 0 | ||
267404539 | .diplo__mat | C | June 25, 2024, 4:34 p.m. | OK | Java 8 | TESTS | 16 | 187 | 0 | ||
267402664 | noxious_tab | C | June 25, 2024, 4:31 p.m. | OK | Java 8 | TESTS | 16 | 187 | 0 | ||
267425915 | Sumitsingh7 | C | June 25, 2024, 7:24 p.m. | OK | Java 8 | TESTS | 21 | 187 | 17612800 | ||
267424153 | darkstars_stars | C | June 25, 2024, 7:07 p.m. | OK | Java 8 | TESTS | 18 | 187 | 17612800 | ||
267463219 | y_a_s | C | June 26, 2024, 5:21 a.m. | OK | Java 8 | TESTS | 23 | 202 | 3481600 | ||
267427658 | kasiru_69 | C | June 25, 2024, 7:43 p.m. | OK | Java 8 | TESTS | 22 | 202 | 4403200 | ||
267402462 | dosa | C | June 25, 2024, 4:30 p.m. | OK | Java 8 | TESTS | 16 | 218 | 0 | ||
267414150 | nobita1803 | C | June 25, 2024, 5:47 p.m. | OK | Java 8 | TESTS | 16 | 233 | 2560000 | ||
267453621 | nesco | C | June 26, 2024, 3:30 a.m. | OK | Kotlin 1.9 | TESTS | 23 | 296 | 8396800 | ||
267403399 | aravindhbalaji | C | June 25, 2024, 4:32 p.m. | OK | Kotlin 1.9 | TESTS | 16 | 327 | 8396800 | ||
267403106 | aditya_codes_iitp_2 | C | June 25, 2024, 4:31 p.m. | OK | Kotlin 1.9 | TESTS | 16 | 468 | 0 | ||
267442779 | ghwo336 | C | June 25, 2024, 11:59 p.m. | OK | PyPy 2 | TESTS | 22 | 296 | 20377600 | ||
267462484 | sparsh_agarwal_007 | C | June 26, 2024, 5:14 a.m. | OK | PyPy 3 | TESTS | 23 | 359 | 13414400 | ||
267414598 | Art10em | C | June 25, 2024, 5:50 p.m. | OK | PyPy 3 | TESTS | 16 | 405 | 13312000 | ||
267420888 | snjivme | C | June 25, 2024, 6:38 p.m. | OK | PyPy 3 | TESTS | 17 | 530 | 24268800 | ||
267402131 | oneman38669 | C | June 25, 2024, 4:30 p.m. | OK | PyPy 3-64 | TESTS | 16 | 156 | 16896000 | ||
267423057 | bergus | C | June 25, 2024, 6:57 p.m. | OK | PyPy 3-64 | TESTS | 17 | 156 | 17203200 | ||
267449712 | misaki646 | C | June 26, 2024, 2:28 a.m. | OK | PyPy 3-64 | TESTS | 22 | 156 | 18841600 | ||
267419847 | edugong | C | June 25, 2024, 6:29 p.m. | OK | PyPy 3-64 | TESTS | 17 | 156 | 18841600 | ||
267445956 | InHng_ | C | June 26, 2024, 1:13 a.m. | OK | PyPy 3-64 | TESTS | 22 | 156 | 18944000 | ||
267427171 | Nullz | C | June 25, 2024, 7:38 p.m. | OK | PyPy 3-64 | TESTS | 22 | 156 | 19251200 | ||
267448930 | RobinFromTheHood | C | June 26, 2024, 2:14 a.m. | OK | PyPy 3-64 | TESTS | 22 | 156 | 22323200 | ||
267447057 | TJacobus | C | June 26, 2024, 1:37 a.m. | OK | PyPy 3-64 | TESTS | 22 | 156 | 25292800 | ||
267420884 | TheWiseKIng | C | June 25, 2024, 6:38 p.m. | OK | PyPy 3-64 | TESTS | 17 | 156 | 29900800 | ||
267457178 | ahilaan | C | June 26, 2024, 4:16 a.m. | OK | PyPy 3-64 | TESTS | 23 | 171 | 17100800 | ||
267451249 | saikiranreddymekala28 | C | June 26, 2024, 2:53 a.m. | OK | Python 3 | TESTS | 22 | 156 | 14848000 | ||
267404343 | aryan10333 | C | June 25, 2024, 4:33 p.m. | OK | Python 3 | TESTS | 16 | 156 | 17612800 | ||
267403028 | ahilkhan | C | June 25, 2024, 4:31 p.m. | OK | Python 3 | TESTS | 16 | 186 | 13312000 | ||
267425823 | Avinash_27 | C | June 25, 2024, 7:23 p.m. | OK | Python 3 | TESTS | 21 | 186 | 13414400 | ||
267402055 | ThisTomCantTinker | C | June 25, 2024, 4:29 p.m. | OK | Python 3 | TESTS | 16 | 186 | 16486400 | ||
267419809 | hello_olleh | C | June 25, 2024, 6:29 p.m. | OK | Python 3 | TESTS | 17 | 187 | 17817600 | ||
267402714 | Jack_2020 | C | June 25, 2024, 4:31 p.m. | OK | Python 3 | TESTS | 16 | 202 | 12185600 | ||
267448752 | S3cr3t_C0d3r | C | June 26, 2024, 2:11 a.m. | OK | Python 3 | TESTS | 22 | 202 | 13516800 | ||
267434328 | prathamsibal81 | C | June 25, 2024, 9:10 p.m. | OK | Python 3 | TESTS | 22 | 202 | 17203200 | ||
267411167 | VioletVal | C | June 25, 2024, 5:29 p.m. | OK | Python 3 | TESTS | 16 | 202 | 17715200 | ||
267424404 | AvDjah | C | June 25, 2024, 7:09 p.m. | OK | Ruby 3 | TESTS | 18 | 452 | 19046400 | ||
267445482 | 0x81 | C | June 26, 2024, 1:04 a.m. | OK | Ruby 3 | TESTS | 22 | 530 | 22323200 | ||
267437942 | tamuraup_wa | C | June 25, 2024, 10:09 p.m. | OK | Rust 2021 | TESTS | 22 | 77 | 716800 | ||
267415522 | fieubat2x | C | June 25, 2024, 5:56 p.m. | OK | Rust 2021 | TESTS | 16 | 109 | 5427200 |
Back to search problems