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 |
---|---|---|---|---|---|---|
1791 | Codeforces Round 849 (Div. 4) | FINISHED | False | 8700 | 56388299 | Feb. 3, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 23110 ) | G1 | Teleporters (Easy Version) | PROGRAMMING | greedy sortings |
B"The only difference between the easy and hard versions are the locations you can teleport to. Consider the points 0, 1, ... , n on the number line. There is a teleporter located on each of the points 1, 2, ... , n . At point i , you can do the following: You have c coins, and you start at point 0 . What's the most number of teleporters you can use? The input consists of multiple test cases. The first line contains an integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The descriptions of the test cases follow. The first line of each test case contains two integers n and c ( 1 <= q n <= q 2 cdot10^5 ; 1 <= q c <= q 10^9 ) -- the length of the array and the number of coins you have respectively. The following line contains n space-separated integers a_1, a_2, ... , a_n ( 1 <= q a_i <= q 10^9 ) -- the costs to use the teleporters. It is guaranteed that the sum of n over all test cases does not exceed 2 cdot10^5 . For each test case, output the maximum number of teleporters you can use. In the first test case, you can move one unit to the right, use the teleporter at index 1 and teleport to point 0 , move two units to the right and use the teleporter at index 2 . You are left with 6-1-1-2-1 = 1 coins you don't have enough coins to use another teleporter. You have used two teleporters, so the answer is two. In the second test case, you go four units to the right and use the teleporter to go to 0 , then go six units right and use the teleporter at index 6 to go to 0 . The total cost will be 4+6+6+4 = 20 . You are left with 12 coins, but it is not enough to reach any other teleporter and use it so the answer is 2 . In the third test case, you don't have enough coins to use any teleporter, so the answer is zero. "... |
112282 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
192093501 | HeapUser.He | G1 | Feb. 4, 2023, 3:53 a.m. | OK | GNU C11 | TESTS | 12 | 77 | 4505600 | ||
192091144 | Smallorange | G1 | Feb. 4, 2023, 3:13 a.m. | OK | GNU C11 | TESTS | 12 | 78 | 4505600 | ||
192057306 | Bhaumil_Patel_18 | G1 | Feb. 3, 2023, 6:41 p.m. | OK | GNU C++14 | TESTS | 12 | 46 | 2764800 | ||
192079420 | Jiraiya_Kun | G1 | Feb. 3, 2023, 11:06 p.m. | OK | GNU C++14 | TESTS | 12 | 61 | 5120000 | ||
192069976 | V_Gosain | G1 | Feb. 3, 2023, 8:39 p.m. | OK | GNU C++14 | TESTS | 12 | 62 | 1228800 | ||
192076727 | nukelauncher | G1 | Feb. 3, 2023, 10:12 p.m. | OK | GNU C++14 | TESTS | 12 | 62 | 1638400 | ||
192073130 | yhhuang | G1 | Feb. 3, 2023, 9:18 p.m. | OK | GNU C++14 | TESTS | 12 | 62 | 1740800 | ||
192080457 | omeganot | G1 | Feb. 3, 2023, 11:30 p.m. | OK | GNU C++14 | TESTS | 12 | 62 | 1843200 | ||
192050355 | Ycy0fmine | G1 | Feb. 3, 2023, 5:55 p.m. | OK | GNU C++14 | TESTS | 12 | 62 | 1843200 | ||
192104200 | dianhsu_scarlet | G1 | Feb. 4, 2023, 5:57 a.m. | OK | GNU C++14 | TESTS | 12 | 62 | 1843200 | ||
192090380 | Rawan_Almashad | G1 | Feb. 4, 2023, 3 a.m. | OK | GNU C++14 | TESTS | 12 | 62 | 1843200 | ||
192086141 | itsQuang | G1 | Feb. 4, 2023, 1:49 a.m. | OK | GNU C++14 | TESTS | 12 | 62 | 2662400 | ||
192093892 | sewwyy | G1 | Feb. 4, 2023, 3:59 a.m. | OK | GNU C++17 | TESTS | 12 | 46 | 2764800 | ||
192094537 | CharmikaInupagolla | G1 | Feb. 4, 2023, 4:09 a.m. | OK | GNU C++17 | TESTS | 12 | 46 | 2764800 | ||
192059578 | anupjujagar121 | G1 | Feb. 3, 2023, 6:58 p.m. | OK | GNU C++17 | TESTS | 12 | 61 | 2662400 | ||
192080498 | LeLam200508 | G1 | Feb. 3, 2023, 11:32 p.m. | OK | GNU C++17 | TESTS | 12 | 61 | 2764800 | ||
192085243 | Yuuichii | G1 | Feb. 4, 2023, 1:32 a.m. | OK | GNU C++17 | TESTS | 12 | 62 | 1843200 | ||
192084357 | Ayman_Shalaby | G1 | Feb. 4, 2023, 1:12 a.m. | OK | GNU C++17 | TESTS | 12 | 62 | 1843200 | ||
192100851 | qyh619 | G1 | Feb. 4, 2023, 5:26 a.m. | OK | GNU C++17 | TESTS | 12 | 62 | 1843200 | ||
192054930 | Clover_plus | G1 | Feb. 3, 2023, 6:24 p.m. | OK | GNU C++17 | TESTS | 12 | 62 | 1843200 | ||
192057245 | fake_player007 | G1 | Feb. 3, 2023, 6:40 p.m. | OK | GNU C++17 | TESTS | 12 | 62 | 1843200 | ||
192099789 | daksh_1612 | G1 | Feb. 4, 2023, 5:16 a.m. | OK | GNU C++17 | TESTS | 12 | 62 | 1843200 | ||
192077442 | oneninetyfive | G1 | Feb. 3, 2023, 10:25 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 31 | 14950400 | ||
192082331 | atharvd | G1 | Feb. 4, 2023, 12:21 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2048000 | ||
192099153 | LuckyRoo | G1 | Feb. 4, 2023, 5:09 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2048000 | ||
192090559 | Anakinlu | G1 | Feb. 4, 2023, 3:03 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2048000 | ||
192066857 | RahMA_79 | G1 | Feb. 3, 2023, 8:04 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2048000 | ||
192051126 | Talk_Sick | G1 | Feb. 3, 2023, 5:59 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2355200 | ||
192085092 | drip. | G1 | Feb. 4, 2023, 1:28 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2867200 | ||
192054071 | enslaved | G1 | Feb. 3, 2023, 6:18 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2867200 | ||
192080357 | jdurie | G1 | Feb. 3, 2023, 11:27 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2867200 | ||
192059381 | MUHAMMAD_AHMED | G1 | Feb. 3, 2023, 6:57 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 46 | 2867200 | ||
192087996 | chenef | G1 | Feb. 4, 2023, 2:23 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 2048000 | ||
192079521 | Ahmed_Salah7 | G1 | Feb. 3, 2023, 11:08 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 2048000 | ||
192079369 | Dhliv | G1 | Feb. 3, 2023, 11:05 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 2048000 | ||
192093785 | tiger_34 | G1 | Feb. 4, 2023, 3:57 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 2048000 | ||
192092106 | Aisxiyy | G1 | Feb. 4, 2023, 3:29 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 2048000 | ||
192093182 | Amiable_Naiver | G1 | Feb. 4, 2023, 3:47 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 2867200 | ||
192070296 | Viv_765 | G1 | Feb. 3, 2023, 8:42 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 4198400 | ||
192090036 | meliodasssf | G1 | Feb. 4, 2023, 2:55 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 4198400 | ||
192092344 | gfhfbg | G1 | Feb. 4, 2023, 3:33 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 4505600 | ||
192057363 | __HiM_001 | G1 | Feb. 3, 2023, 6:41 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 31 | 5427200 | ||
192089997 | july_tang | G1 | Feb. 4, 2023, 2:54 a.m. | OK | Go | TESTS | 12 | 62 | 22835200 | ||
192080209 | meinego | G1 | Feb. 3, 2023, 11:24 p.m. | OK | Go | TESTS | 12 | 156 | 22835200 | ||
192096408 | Panther369 | G1 | Feb. 4, 2023, 4:36 a.m. | OK | Java 11 | TESTS | 12 | 234 | 72908800 | ||
192066394 | Hawater | G1 | Feb. 3, 2023, 8 p.m. | OK | Java 11 | TESTS | 12 | 265 | 25395200 | ||
192097582 | FirstException | G1 | Feb. 4, 2023, 4:51 a.m. | OK | Java 11 | TESTS | 12 | 280 | 66764800 | ||
192056339 | LZYu | G1 | Feb. 3, 2023, 6:34 p.m. | OK | Java 11 | TESTS | 12 | 295 | 29900800 | ||
192086456 | karthika_49 | G1 | Feb. 4, 2023, 1:55 a.m. | OK | Java 11 | TESTS | 12 | 451 | 25395200 | ||
192092042 | PoloBanker | G1 | Feb. 4, 2023, 3:28 a.m. | OK | Java 11 | TESTS | 12 | 452 | 25395200 | ||
192104584 | R2M | G1 | Feb. 4, 2023, 6 a.m. | OK | Java 11 | TESTS | 12 | 498 | 25395200 | ||
192086501 | karthika_49 | G1 | Feb. 4, 2023, 1:56 a.m. | OK | Java 11 | TESTS | 12 | 499 | 25395200 | ||
192102332 | Mustela_Erminea | G1 | Feb. 4, 2023, 5:40 a.m. | OK | Java 17 | TESTS | 12 | 218 | 40345600 | ||
192102710 | GooseGoop | G1 | Feb. 4, 2023, 5:43 a.m. | OK | Java 17 | TESTS | 12 | 280 | 44441600 | ||
192086129 | Changersh | G1 | Feb. 4, 2023, 1:49 a.m. | OK | Java 17 | TESTS | 12 | 311 | 41267200 | ||
192048750 | banurr | G1 | Feb. 3, 2023, 5:45 p.m. | OK | Java 17 | TESTS | 12 | 561 | 40652800 | ||
192092930 | akshay23codes | G1 | Feb. 4, 2023, 3:43 a.m. | OK | Java 8 | TESTS | 12 | 170 | 24780800 | ||
192099255 | bleach__ | G1 | Feb. 4, 2023, 5:11 a.m. | OK | Java 8 | TESTS | 12 | 170 | 25190400 | ||
192051166 | raj_shahh | G1 | Feb. 3, 2023, 5:59 p.m. | OK | Java 8 | TESTS | 12 | 171 | 19558400 | ||
192078771 | OmarKenawi | G1 | Feb. 3, 2023, 10:52 p.m. | OK | Java 8 | TESTS | 12 | 187 | 24064000 | ||
192077990 | Mouhssine | G1 | Feb. 3, 2023, 10:36 p.m. | OK | Java 8 | TESTS | 12 | 187 | 24576000 | ||
192099837 | cys02 | G1 | Feb. 4, 2023, 5:16 a.m. | OK | Java 8 | TESTS | 12 | 202 | 25395200 | ||
192057915 | Zicode | G1 | Feb. 3, 2023, 6:45 p.m. | OK | Java 8 | TESTS | 12 | 217 | 24064000 | ||
192090033 | informatikerm | G1 | Feb. 4, 2023, 2:54 a.m. | OK | Java 8 | TESTS | 12 | 218 | 25804800 | ||
192092180 | Friendly_ShirleyCCD | G1 | Feb. 4, 2023, 3:30 a.m. | OK | Java 8 | TESTS | 12 | 389 | 19763200 | ||
192070931 | Kenzhezhan | G1 | Feb. 3, 2023, 8:50 p.m. | OK | Java 8 | TESTS | 12 | 436 | 19660800 | ||
192089532 | linxiaotian | G1 | Feb. 4, 2023, 2:47 a.m. | OK | Kotlin 1.6 | TESTS | 12 | 358 | 37068800 | ||
192099138 | eneskayiklik | G1 | Feb. 4, 2023, 5:09 a.m. | OK | Kotlin 1.7 | TESTS | 12 | 795 | 127795200 | ||
192096758 | Yash_Nandwana | G1 | Feb. 4, 2023, 4:41 a.m. | OK | PyPy 3 | TESTS | 12 | 187 | 36147200 | ||
192070826 | Mansurbek | G1 | Feb. 3, 2023, 8:49 p.m. | OK | PyPy 3 | TESTS | 12 | 296 | 34508800 | ||
192054012 | divyamkakkar24 | G1 | Feb. 3, 2023, 6:18 p.m. | OK | PyPy 3 | TESTS | 12 | 296 | 37273600 | ||
192059504 | Mohamed_Hamed | G1 | Feb. 3, 2023, 6:58 p.m. | OK | PyPy 3 | TESTS | 12 | 311 | 30003200 | ||
192055222 | divyamkakkar24 | G1 | Feb. 3, 2023, 6:26 p.m. | OK | PyPy 3 | TESTS | 12 | 311 | 33382400 | ||
192102752 | anupam_sudh | G1 | Feb. 4, 2023, 5:44 a.m. | OK | PyPy 3 | TESTS | 12 | 311 | 37068800 | ||
192076741 | slickk | G1 | Feb. 3, 2023, 10:13 p.m. | OK | PyPy 3-64 | TESTS | 12 | 109 | 48435200 | ||
192091836 | liuaaa | G1 | Feb. 4, 2023, 3:24 a.m. | OK | PyPy 3-64 | TESTS | 12 | 124 | 56320000 | ||
192061260 | nanojohn | G1 | Feb. 3, 2023, 7:13 p.m. | OK | PyPy 3-64 | TESTS | 12 | 124 | 58675200 | ||
192067117 | rmr | G1 | Feb. 3, 2023, 8:07 p.m. | OK | PyPy 3-64 | TESTS | 12 | 139 | 51507200 | ||
192101284 | Alpha_Ashwin007 | G1 | Feb. 4, 2023, 5:30 a.m. | OK | PyPy 3-64 | TESTS | 12 | 139 | 55398400 | ||
192067291 | rmr | G1 | Feb. 3, 2023, 8:09 p.m. | OK | PyPy 3-64 | TESTS | 12 | 140 | 51507200 | ||
192059993 | CaptainUknown | G1 | Feb. 3, 2023, 7:02 p.m. | OK | PyPy 3-64 | TESTS | 12 | 140 | 55398400 | ||
192062079 | bronze_coder | G1 | Feb. 3, 2023, 7:20 p.m. | OK | PyPy 3-64 | TESTS | 12 | 140 | 56217600 | ||
192102306 | anshumannandan | G1 | Feb. 4, 2023, 5:39 a.m. | OK | PyPy 3-64 | TESTS | 12 | 140 | 56320000 | ||
192050761 | Divyanshu_81 | G1 | Feb. 3, 2023, 5:57 p.m. | OK | PyPy 3-64 | TESTS | 12 | 155 | 42188800 | ||
192079870 | doublelei | G1 | Feb. 3, 2023, 11:15 p.m. | OK | Python 3 | TESTS | 12 | 202 | 15769600 | ||
192101475 | sohitha | G1 | Feb. 4, 2023, 5:32 a.m. | OK | Python 3 | TESTS | 12 | 218 | 20377600 | ||
192057831 | rostoki | G1 | Feb. 3, 2023, 6:45 p.m. | OK | Python 3 | TESTS | 12 | 218 | 20992000 | ||
192076102 | philippdroste900 | G1 | Feb. 3, 2023, 10:01 p.m. | OK | Python 3 | TESTS | 12 | 233 | 18124800 | ||
192056004 | Prasanth_22 | G1 | Feb. 3, 2023, 6:32 p.m. | OK | Python 3 | TESTS | 12 | 233 | 20275200 | ||
192090205 | likhitabasuthkar | G1 | Feb. 4, 2023, 2:57 a.m. | OK | Python 3 | TESTS | 12 | 234 | 20377600 | ||
192072705 | DonC | G1 | Feb. 3, 2023, 9:12 p.m. | OK | Python 3 | TESTS | 12 | 248 | 16076800 | ||
192071866 | omark1212 | G1 | Feb. 3, 2023, 9:01 p.m. | OK | Python 3 | TESTS | 12 | 249 | 16691200 | ||
192058333 | shushantkumar1 | G1 | Feb. 3, 2023, 6:49 p.m. | OK | Python 3 | TESTS | 12 | 249 | 18124800 | ||
192066780 | tanishq2507 | G1 | Feb. 3, 2023, 8:03 p.m. | OK | Python 3 | TESTS | 12 | 249 | 18227200 | ||
192084015 | vjudge1 | G1 | Feb. 4, 2023, 1:03 a.m. | OK | Rust 2021 | TESTS | 12 | 46 | 16793600 |
Back to search problems