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 |
---|---|---|---|---|---|---|
1992 | Codeforces Round 957 (Div. 3) | FINISHED | False | 8100 | 16471463 | July 11, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21091 ) | D | Test of Love | PROGRAMMING | dp greedy implementation |
B'ErnKor is ready to do anything for Julen, even to swim through crocodile-infested swamps. We decided to test this love. ErnKor will have to swim across a river with a width of 1 meter and a length of n meters. The river is very cold. Therefore, in total (that is, throughout the entire swim from 0 to n+1 ) ErnKor can swim in the water for no more than k meters. For the sake of humanity, we have added not only crocodiles to the river, but also logs on which he can jump. Our test is as follows: Initially, ErnKor is on the left bank and needs to reach the right bank. They are located at the 0 and n+1 meters respectively. The river can be represented as n segments, each with a length of 1 meter. Each segment contains either a log 'L ', a crocodile 'C ', or just water 'W '. ErnKor can move as follows: Determine if ErnKor can reach the right bank. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains three numbers n, m, k ( 0 <= k <= 2 cdot 10^5 , 1 <= n <= 2 cdot 10^5 , 1 <= m <= 10 ) -- the length of the river, the distance ErnKor can jump, and the number of meters ErnKor can swim without freezing. The second line of each test case contains a string a of length n . a_i denotes the object located at the i -th meter. ( a_i in { 'W ', 'C ', 'L ' } ) It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output "YES" if ErnKor can pass the test, and output "NO" otherwise. You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses. Let 's consider examples: '... |
Shayan's Video Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
270079459 | DashaK123 | D | July 11, 2024, 7:52 p.m. | OK | C# 10 | TESTS | 8 | 124 | 2764800 | ||
270120645 | aliaagheis | D | July 12, 2024, 5:34 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270115325 | CraZY521 | D | July 12, 2024, 4:39 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270111987 | donbasta | D | July 12, 2024, 3:57 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270102396 | helloworld131 | D | July 12, 2024, 2:12 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270101585 | Asiove. | D | July 12, 2024, 2:02 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270095626 | aryamsingh7676 | D | July 12, 2024, 12:32 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270072740 | Ahnaf_Akib_Tanim | D | July 11, 2024, 6:46 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270071510 | Renukas | D | July 11, 2024, 6:36 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270068072 | noobnocap | D | July 11, 2024, 6:08 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270062462 | ravikjha7 | D | July 11, 2024, 5:49 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | ||
270123420 | Pradeep_modak | D | July 12, 2024, 5:59 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270123062 | jalapeno69 | D | July 12, 2024, 5:56 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270122330 | Habiba_09 | D | July 12, 2024, 5:49 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270121766 | aminjon__ | D | July 12, 2024, 5:44 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270120609 | ebrahim_77 | D | July 12, 2024, 5:33 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270119876 | ryuusama | D | July 12, 2024, 5:27 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270119710 | jai_singh | D | July 12, 2024, 5:25 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270119665 | TahaNami87 | D | July 12, 2024, 5:25 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270119315 | dilbarsl | D | July 12, 2024, 5:21 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270119168 | volcano_yht | D | July 12, 2024, 5:20 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | ||
270108598 | battlefly | D | July 12, 2024, 3:21 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 31 | 0 | ||
270055539 | parasg2856 | D | July 11, 2024, 5:44 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 31 | 0 | ||
270122841 | Hamed_ | D | July 12, 2024, 5:54 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270122759 | KazamaJin | D | July 12, 2024, 5:53 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270121805 | mohamedmaybe4u | D | July 12, 2024, 5:45 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270121684 | Bejoker | D | July 12, 2024, 5:44 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270121360 | Fathy_ramadan | D | July 12, 2024, 5:41 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270121005 | TheLastHutu | D | July 12, 2024, 5:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270120897 | Ne0B1ade | D | July 12, 2024, 5:36 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270120717 | CEKPET | D | July 12, 2024, 5:34 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | ||
270067846 | khoi071908 | D | July 11, 2024, 6:06 p.m. | OK | FPC | TESTS | 8 | 77 | 819200 | ||
270120360 | Brackets12 | D | July 12, 2024, 5:31 a.m. | OK | FPC | TESTS | 8 | 187 | 0 | ||
270085289 | crapcode | D | July 11, 2024, 9:06 p.m. | OK | GNU C11 | TESTS | 8 | 46 | 204800 | ||
270075933 | tcyjohn | D | July 11, 2024, 7:15 p.m. | OK | GNU C11 | TESTS | 8 | 77 | 1024000 | ||
270069459 | iffatul_anon | D | July 11, 2024, 6:19 p.m. | OK | GNU C11 | TESTS | 8 | 77 | 1843200 | ||
270105660 | cacker | D | July 12, 2024, 2:51 a.m. | OK | GNU C11 | TESTS | 8 | 249 | 1126400 | ||
270091415 | Hbayeb | D | July 11, 2024, 11 p.m. | OK | GNU C11 | TESTS | 8 | 1514 | 307200 | ||
270062966 | Optoed | D | July 11, 2024, 5:53 p.m. | OK | Go | TESTS | 8 | 61 | 3174400 | ||
270070284 | Sylvester_ | D | July 11, 2024, 6:26 p.m. | OK | Java 21 | TESTS | 8 | 217 | 614400 | ||
270086734 | arwa_khattab | D | July 11, 2024, 9:29 p.m. | OK | Java 21 | TESTS | 8 | 233 | 409600 | ||
270074698 | ankush9140 | D | July 11, 2024, 7:04 p.m. | OK | Java 21 | TESTS | 8 | 233 | 512000 | ||
270083210 | uditanshsrivastava2509 | D | July 11, 2024, 8:37 p.m. | OK | Java 21 | TESTS | 8 | 234 | 512000 | ||
270074833 | LakhimpurKheri | D | July 11, 2024, 7:06 p.m. | OK | Java 21 | TESTS | 8 | 249 | 921600 | ||
270050684 | Alex_Toppo_06 | D | July 11, 2024, 5:14 p.m. | OK | Java 21 | TESTS | 8 | 264 | 409600 | ||
270110053 | yang_wei | D | July 12, 2024, 3:36 a.m. | OK | Java 21 | TESTS | 8 | 265 | 409600 | ||
270075737 | vaibhav_1710 | D | July 11, 2024, 7:14 p.m. | OK | Java 21 | TESTS | 8 | 265 | 614400 | ||
270071720 | vikash_45 | D | July 11, 2024, 6:38 p.m. | OK | Java 21 | TESTS | 8 | 265 | 614400 | ||
270100967 | Laksh21262 | D | July 12, 2024, 1:53 a.m. | OK | Java 21 | TESTS | 8 | 265 | 716800 | ||
270078574 | swapnilganguly1234 | D | July 11, 2024, 7:42 p.m. | OK | Java 8 | TESTS | 8 | 139 | 0 | ||
270073680 | shubham2413 | D | July 11, 2024, 6:55 p.m. | OK | Java 8 | TESTS | 8 | 140 | 0 | ||
270068099 | aj_786 | D | July 11, 2024, 6:08 p.m. | OK | Java 8 | TESTS | 8 | 140 | 0 | ||
270121679 | coderman2004 | D | July 12, 2024, 5:44 a.m. | OK | Java 8 | TESTS | 8 | 171 | 0 | ||
270071815 | Safawt | D | July 11, 2024, 6:39 p.m. | OK | Java 8 | TESTS | 8 | 171 | 0 | ||
270070102 | nobita1803 | D | July 11, 2024, 6:25 p.m. | OK | Java 8 | TESTS | 8 | 187 | 0 | ||
270106081 | Night1324 | D | July 12, 2024, 2:56 a.m. | OK | Java 8 | TESTS | 8 | 202 | 0 | ||
270053851 | navneet_shriwastav | D | July 11, 2024, 5:32 p.m. | OK | Java 8 | TESTS | 8 | 218 | 0 | ||
270082523 | Yossefayman | D | July 11, 2024, 8:28 p.m. | OK | Java 8 | TESTS | 8 | 233 | 0 | ||
270108314 | LipikaPriya | D | July 12, 2024, 3:18 a.m. | OK | Java 8 | TESTS | 8 | 234 | 0 | ||
270103105 | ZzaZi | D | July 12, 2024, 2:21 a.m. | OK | PyPy 3 | TESTS | 8 | 186 | 6144000 | ||
270091208 | random__person | D | July 11, 2024, 10:55 p.m. | OK | PyPy 3 | TESTS | 8 | 218 | 7168000 | ||
270089845 | papdichaat | D | July 11, 2024, 10:28 p.m. | OK | PyPy 3 | TESTS | 8 | 311 | 10752000 | ||
270068095 | sri_jaahn | D | July 11, 2024, 6:08 p.m. | OK | PyPy 3 | TESTS | 8 | 312 | 8089600 | ||
270052313 | sparsh_agarwal_007 | D | July 11, 2024, 5:23 p.m. | OK | PyPy 3 | TESTS | 8 | 343 | 8704000 | ||
270100516 | TheBestFromEast | D | July 12, 2024, 1:46 a.m. | OK | PyPy 3 | TESTS | 8 | 390 | 9830400 | ||
270067643 | devjain1028 | D | July 11, 2024, 6:05 p.m. | OK | PyPy 3-64 | TESTS | 8 | 109 | 4403200 | ||
270081978 | aayush249 | D | July 11, 2024, 8:21 p.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 4812800 | ||
270071118 | NitroSpear | D | July 11, 2024, 6:33 p.m. | OK | PyPy 3-64 | TESTS | 8 | 139 | 5529600 | ||
270121599 | dhru72 | D | July 12, 2024, 5:43 a.m. | OK | PyPy 3-64 | TESTS | 8 | 140 | 7782400 | ||
270083809 | Zmarlen | D | July 11, 2024, 8:45 p.m. | OK | PyPy 3-64 | TESTS | 8 | 155 | 8294400 | ||
270117885 | conqueror_of_titia | D | July 12, 2024, 5:07 a.m. | OK | PyPy 3-64 | TESTS | 8 | 156 | 5120000 | ||
270111271 | cp_hater | D | July 12, 2024, 3:49 a.m. | OK | PyPy 3-64 | TESTS | 8 | 156 | 5222400 | ||
270121514 | Amr_Almoghazy | D | July 12, 2024, 5:42 a.m. | OK | PyPy 3-64 | TESTS | 8 | 156 | 5324800 | ||
270108451 | ntarsis30 | D | July 12, 2024, 3:20 a.m. | OK | PyPy 3-64 | TESTS | 8 | 171 | 5836800 | ||
270072189 | gardengnome | D | July 11, 2024, 6:42 p.m. | OK | PyPy 3-64 | TESTS | 8 | 171 | 6041600 | ||
270066490 | agarikus | D | July 11, 2024, 5:56 p.m. | OK | Python 3 | TESTS | 8 | 108 | 0 | ||
270124306 | M.ZeeshanRashid | D | July 12, 2024, 6:06 a.m. | OK | Python 3 | TESTS | 8 | 124 | 0 | ||
270087560 | altruistic99 | D | July 11, 2024, 9:44 p.m. | OK | Python 3 | TESTS | 8 | 124 | 0 | ||
270068040 | sri_jaahn | D | July 11, 2024, 6:08 p.m. | OK | Python 3 | TESTS | 8 | 124 | 0 | ||
270055161 | nandhagk1729 | D | July 11, 2024, 5:41 p.m. | OK | Python 3 | TESTS | 8 | 124 | 6758400 | ||
270052792 | ASLX | D | July 11, 2024, 5:26 p.m. | OK | Python 3 | TESTS | 8 | 140 | 0 | ||
270077806 | hermes999 | D | July 11, 2024, 7:34 p.m. | OK | Python 3 | TESTS | 8 | 140 | 102400 | ||
270072790 | malikakhojamuratova_code | D | July 11, 2024, 6:47 p.m. | OK | Python 3 | TESTS | 8 | 140 | 10649600 | ||
270088238 | vamsi_odyssey | D | July 11, 2024, 9:55 p.m. | OK | Python 3 | TESTS | 8 | 156 | 0 | ||
270055359 | jlw1228 | D | July 11, 2024, 5:42 p.m. | OK | Python 3 | TESTS | 8 | 171 | 0 | ||
270076762 | 0x81 | D | July 11, 2024, 7:24 p.m. | OK | Ruby 3 | TESTS | 8 | 359 | 3379200 | ||
270089831 | Tazed | D | July 11, 2024, 10:27 p.m. | OK | Rust 2021 | TESTS | 8 | 62 | 0 |
Back to search problems