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 |
---|---|---|---|---|---|---|
1845 | Educational Codeforces Round 151 (Rated for Div. 2) | FINISHED | False | 7200 | 49217063 | June 29, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 14748 ) | C | Strong Password | PROGRAMMING | binary search dp greedy strings |
B'Monocarp finally got the courage to register on ForceCoders. He came up with a handle but is still thinking about the password. He wants his password to be as strong as possible, so he came up with the following criteria: Monocarp also came up with two strings of length m : l and r , both consisting only of digits from 0 to 9 . He wants the i -th digit of his password to be between l_i and r_i , inclusive. Does there exist a password that fits all criteria? The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. The first line of each testcase contains a string s ( 1 <= |s| <= 3 cdot 10^5 ), consisting only of digits from 0 to 9 -- the password database. The second line contains a single integer m ( 1 <= m <= 10 ) -- the required length of the password. The third line contains a string l ( |l| = m ), consisting only of digits from 0 to 9 -- the lower restriction on each digit. The fourth line contains a string r ( |r| = m ), consisting only of digits from 0 to 9 -- the upper restriction on each digit. l_i <= r_i for all i from 1 to m . The sum of lengths of s over all testcases doesn 't exceed 3 cdot 10^5 . For each testcase, print "YES" if there exists a password that fits all criteria. Print "NO" otherwise. In the first testcase, Monocarp can choose password "50". It doesn 't appear in s as a subsequence. In the second testcase, all combinations of three digits, each of them being from 1 to 4 , fit the criteria on l and r . However, all of them appear in s as subsequences. For example, "314" appears at positions [3, 5, 12] and "222" appears at positions [2, 6, 10] . In the third testcase, Monocarp can choose password "4321". Actually, that is the only password that fits the criteria on l and $'... |
117791 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
211563863 | lAMaLOSER | C | June 30, 2023, 2:46 a.m. | OK | C# 10 | TESTS | 24 | 77 | 13312000 | ||
211572311 | s_m_asif | C | June 30, 2023, 5:12 a.m. | OK | C# 8 | TESTS | 24 | 155 | 5734400 | ||
211542313 | _aka5h | C | June 29, 2023, 6:46 p.m. | OK | Clang++17 Diagnostics | TESTS | 11 | 483 | 13414400 | ||
211535512 | Prashanth_KPY | C | June 29, 2023, 5:31 p.m. | OK | Clang++20 Diagnostics | TESTS | 11 | 529 | 13414400 | ||
211533572 | node2 | C | June 29, 2023, 5:13 p.m. | OK | GNU C11 | TESTS | 11 | 62 | 307200 | ||
211548701 | eyad90 | C | June 29, 2023, 8:23 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 1024000 | ||
211535592 | Rashoo | C | June 29, 2023, 5:32 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 1024000 | ||
211528519 | auto_RE_CE_TLE_WA | C | June 29, 2023, 4:39 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 1024000 | ||
211523448 | rkkashyap390 | C | June 29, 2023, 4:28 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 1024000 | ||
211555886 | CarlosDaniel111 | C | June 29, 2023, 11:25 p.m. | OK | GNU C++14 | TESTS | 24 | 15 | 1024000 | ||
211552285 | Wassim221e | C | June 29, 2023, 9:41 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 3481600 | ||
211566102 | Aladdin_drink_H2O | C | June 30, 2023, 3:24 a.m. | OK | GNU C++14 | TESTS | 24 | 15 | 12390400 | ||
211557257 | Adp_D | C | June 30, 2023, 12:06 a.m. | OK | GNU C++14 | TESTS | 24 | 15 | 14131200 | ||
211561148 | kabu | C | June 30, 2023, 1:51 a.m. | OK | GNU C++14 | TESTS | 24 | 30 | 1024000 | ||
211566655 | xiebin | C | June 30, 2023, 3:34 a.m. | OK | GNU C++14 | TESTS | 24 | 30 | 1024000 | ||
211558633 | SDqwq | C | June 30, 2023, 12:43 a.m. | OK | GNU C++17 | TESTS | 24 | 15 | 921600 | ||
211559094 | Dd2dD2 | C | June 30, 2023, 12:56 a.m. | OK | GNU C++17 | TESTS | 24 | 15 | 1024000 | ||
211554791 | imvktiwari2003 | C | June 29, 2023, 10:52 p.m. | OK | GNU C++17 | TESTS | 24 | 15 | 1024000 | ||
211551005 | geraltOfRivia0_0 | C | June 29, 2023, 9:12 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 1024000 | ||
211549732 | Shuvo. | C | June 29, 2023, 8:42 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 1024000 | ||
211562169 | coderchamp7 | C | June 30, 2023, 2:15 a.m. | OK | GNU C++17 | TESTS | 24 | 15 | 1024000 | ||
211537507 | Uoyue | C | June 29, 2023, 5:51 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 1024000 | ||
211535558 | nikhilkumarsingh | C | June 29, 2023, 5:32 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 1024000 | ||
211534209 | DRebirth_man | C | June 29, 2023, 5:19 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 1024000 | ||
211543024 | varungurnani9999 | C | June 29, 2023, 6:55 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 1024000 | ||
211543534 | zys111 | C | June 29, 2023, 7:02 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 1024000 | ||
211570315 | chappy1 | C | June 30, 2023, 4:39 a.m. | OK | GNU C++17 (64) | TESTS | 24 | 15 | 1024000 | ||
211545455 | MohmadZaid._. | C | June 29, 2023, 7:29 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 1024000 | ||
211545099 | efficient | C | June 29, 2023, 7:23 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 1024000 | ||
211532198 | Niloy_Das_19 | C | June 29, 2023, 5:02 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 3174400 | ||
211551600 | enslaved | C | June 29, 2023, 9:25 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 3276800 | ||
211564488 | fs20091003 | C | June 30, 2023, 2:57 a.m. | OK | GNU C++17 (64) | TESTS | 24 | 15 | 12902400 | ||
211527541 | paramshah | C | June 29, 2023, 4:36 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 14336000 | ||
211534339 | W-zx | C | June 29, 2023, 5:20 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 22016000 | ||
211564901 | Ceased.xp | C | June 30, 2023, 3:04 a.m. | OK | GNU C++17 (64) | TESTS | 24 | 30 | 1024000 | ||
211532677 | Sobremesa | C | June 29, 2023, 5:06 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 0 | 1024000 | ||
211560832 | cai-dogLiu | C | June 30, 2023, 1:43 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 921600 | ||
211572022 | Nkr_147 | C | June 30, 2023, 5:08 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211574740 | Bhaumil_Patel_18 | C | June 30, 2023, 5:45 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211574179 | void_3 | C | June 30, 2023, 5:38 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211573881 | wakaka | C | June 30, 2023, 5:34 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211573590 | bestzzz | C | June 30, 2023, 5:30 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211572630 | meetsarvan | C | June 30, 2023, 5:17 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211572332 | Sanath_Kulla | C | June 30, 2023, 5:13 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211571338 | KyLen_Mou | C | June 30, 2023, 4:57 a.m. | OK | GNU C++20 (64) | TESTS | 24 | 15 | 1024000 | ||
211535312 | yellow_flash1007 | C | June 29, 2023, 5:29 p.m. | OK | Go | TESTS | 11 | 46 | 4710400 | ||
211534802 | yellow_flash1007 | C | June 29, 2023, 5:24 p.m. | OK | Go | TESTS | 11 | 1341 | 4710400 | ||
211546547 | ash_79 | C | June 29, 2023, 7:46 p.m. | OK | Java 11 | TESTS | 11 | 187 | 0 | ||
211535862 | themadknight45 | C | June 29, 2023, 5:35 p.m. | OK | Java 11 | TESTS | 11 | 187 | 0 | ||
211555346 | etian6795 | C | June 29, 2023, 11:08 p.m. | OK | Java 11 | TESTS | 24 | 233 | 0 | ||
211544522 | sheath_n_sword | C | June 29, 2023, 7:15 p.m. | OK | Java 11 | TESTS | 11 | 249 | 0 | ||
211545567 | kasiru_69 | C | June 29, 2023, 7:31 p.m. | OK | Java 11 | TESTS | 11 | 264 | 2252800 | ||
211524960 | Krishnan_SK | C | June 29, 2023, 4:31 p.m. | OK | Java 11 | TESTS | 11 | 265 | 3584000 | ||
211526814 | jrRahul | C | June 29, 2023, 4:34 p.m. | OK | Java 11 | TESTS | 11 | 327 | 0 | ||
211550160 | ool | C | June 29, 2023, 8:51 p.m. | OK | Java 11 | TESTS | 11 | 327 | 4300800 | ||
211548135 | devansh_123 | C | June 29, 2023, 8:12 p.m. | OK | Java 11 | TESTS | 11 | 327 | 13209600 | ||
211523174 | kalyan488 | C | June 29, 2023, 4:28 p.m. | OK | Java 11 | TESTS | 11 | 343 | 4300800 | ||
211525508 | SamyajitDas | C | June 29, 2023, 4:32 p.m. | OK | Java 17 | TESTS | 11 | 186 | 102400 | ||
211543890 | vaibhav_1710 | C | June 29, 2023, 7:07 p.m. | OK | Java 17 | TESTS | 11 | 217 | 307200 | ||
211569858 | LeetCodeforces_Null | C | June 30, 2023, 4:30 a.m. | OK | Java 17 | TESTS | 24 | 217 | 819200 | ||
211570360 | not_just_rr | C | June 30, 2023, 4:40 a.m. | OK | Java 17 | TESTS | 24 | 218 | 409600 | ||
211555464 | duyipeng | C | June 29, 2023, 11:13 p.m. | OK | Java 17 | TESTS | 24 | 233 | 512000 | ||
211574252 | daksh_02 | C | June 30, 2023, 5:39 a.m. | OK | Java 17 | TESTS | 24 | 248 | 409600 | ||
211550463 | Akash_Sardar | C | June 29, 2023, 8:58 p.m. | OK | Java 17 | TESTS | 11 | 249 | 3072000 | ||
211526710 | Utsav82 | C | June 29, 2023, 4:34 p.m. | OK | Java 17 | TESTS | 11 | 265 | 102400 | ||
211568047 | 2745810964z | C | June 30, 2023, 3:58 a.m. | OK | Java 17 | TESTS | 24 | 296 | 3481600 | ||
211523491 | Sudhanshu_03 | C | June 29, 2023, 4:29 p.m. | OK | Java 17 | TESTS | 11 | 296 | 10956800 | ||
211545341 | Sumitsingh7 | C | June 29, 2023, 7:27 p.m. | OK | Java 8 | TESTS | 11 | 93 | 0 | ||
211532604 | iamdimonis | C | June 29, 2023, 5:05 p.m. | OK | Java 8 | TESTS | 11 | 93 | 0 | ||
211551979 | NerfThis | C | June 29, 2023, 9:34 p.m. | OK | Java 8 | TESTS | 11 | 109 | 0 | ||
211536305 | alt0104 | C | June 29, 2023, 5:39 p.m. | OK | Java 8 | TESTS | 11 | 109 | 0 | ||
211561113 | lpychemistry | C | June 30, 2023, 1:50 a.m. | OK | Java 8 | TESTS | 24 | 156 | 2048000 | ||
211528010 | toufique_husein | C | June 29, 2023, 4:37 p.m. | OK | Java 8 | TESTS | 11 | 170 | 0 | ||
211524659 | formidablechief_27 | C | June 29, 2023, 4:30 p.m. | OK | Java 8 | TESTS | 11 | 170 | 6144000 | ||
211536539 | raj_shahh | C | June 29, 2023, 5:41 p.m. | OK | Java 8 | TESTS | 11 | 171 | 24064000 | ||
211531968 | Rahul_Adlakha | C | June 29, 2023, 5 p.m. | OK | Java 8 | TESTS | 11 | 186 | 20480000 | ||
211560459 | sumitsk007 | C | June 30, 2023, 1:34 a.m. | OK | Java 8 | TESTS | 24 | 187 | 6144000 | ||
211523147 | 2000031578_Ankith | C | June 29, 2023, 4:28 p.m. | OK | Kotlin 1.7 | TESTS | 11 | 810 | 75059200 | ||
211524378 | nanu123 | C | June 29, 2023, 4:30 p.m. | OK | MS C++ 2017 | TESTS | 11 | 61 | 102912000 | ||
211561991 | taodaj | C | June 30, 2023, 2:10 a.m. | OK | MS C++ 2017 | TESTS | 24 | 62 | 1024000 | ||
211550023 | NajlSadek | C | June 29, 2023, 8:48 p.m. | OK | MS C++ 2017 | TESTS | 11 | 62 | 1024000 | ||
211538880 | ayata | C | June 29, 2023, 6:05 p.m. | OK | MS C++ 2017 | TESTS | 11 | 77 | 1024000 | ||
211525216 | Ankita3246 | C | June 29, 2023, 4:31 p.m. | OK | MS C++ 2017 | TESTS | 11 | 77 | 102912000 | ||
211549530 | Tubisek | C | June 29, 2023, 8:38 p.m. | OK | MS C++ 2017 | TESTS | 11 | 889 | 28774400 | ||
211567899 | 2momo2 | C | June 30, 2023, 3:55 a.m. | OK | PyPy 3 | TESTS | 24 | 249 | 9625600 | ||
211547564 | jvatsal0709 | C | June 29, 2023, 8:02 p.m. | OK | PyPy 3 | TESTS | 11 | 623 | 10137600 | ||
211536603 | Victor3333 | C | June 29, 2023, 5:42 p.m. | OK | PyPy 3 | TESTS | 11 | 654 | 19968000 | ||
211522998 | DRDIV | C | June 29, 2023, 4:28 p.m. | OK | PyPy 3 | TESTS | 11 | 670 | 9625600 | ||
211525068 | VelDoraA | C | June 29, 2023, 4:31 p.m. | OK | PyPy 3 | TESTS | 11 | 686 | 9420800 | ||
211548062 | Kladrr | C | June 29, 2023, 8:11 p.m. | OK | PyPy 3-64 | TESTS | 11 | 140 | 9216000 | ||
211529697 | omarkurde | C | June 29, 2023, 4:46 p.m. | OK | PyPy 3-64 | TESTS | 11 | 140 | 10035200 | ||
211529467 | omar_kurde | C | June 29, 2023, 4:44 p.m. | OK | PyPy 3-64 | TESTS | 11 | 140 | 10035200 | ||
211551950 | RobinFromTheHood | C | June 29, 2023, 9:33 p.m. | OK | PyPy 3-64 | TESTS | 11 | 155 | 30617600 | ||
211527684 | CinaDor | C | June 29, 2023, 4:36 p.m. | OK | PyPy 3-64 | TESTS | 11 | 171 | 8908800 | ||
211542050 | cybsbbb | C | June 29, 2023, 6:42 p.m. | OK | PyPy 3-64 | TESTS | 11 | 171 | 20787200 | ||
211568022 | Mohamed_Hamed | C | June 30, 2023, 3:57 a.m. | OK | PyPy 3-64 | TESTS | 24 | 186 | 9728000 | ||
211544344 | RobinFromTheHood | C | June 29, 2023, 7:13 p.m. | OK | PyPy 3-64 | TESTS | 11 | 187 | 30617600 | ||
211542026 | okay4869 | C | June 29, 2023, 6:42 p.m. | OK | PyPy 3-64 | TESTS | 11 | 218 | 13414400 | ||
211549313 | bjy | C | June 29, 2023, 8:34 p.m. | OK | PyPy 3-64 | TESTS | 11 | 233 | 11059200 | ||
211576199 | ismoilmirzouz | C | June 30, 2023, 6:02 a.m. | OK | Python 3 | TESTS | 28 | 171 | 3686400 | ||
211533152 | arnav31 | C | June 29, 2023, 5:10 p.m. | OK | Python 3 | TESTS | 11 | 186 | 921600 | ||
211526520 | parizz | C | June 29, 2023, 4:33 p.m. | OK | Python 3 | TESTS | 11 | 186 | 921600 | ||
211575858 | Sasha_G | C | June 30, 2023, 5:58 a.m. | OK | Python 3 | TESTS | 28 | 187 | 921600 | ||
211523258 | nildark2020 | C | June 29, 2023, 4:28 p.m. | OK | Python 3 | TESTS | 11 | 202 | 921600 | ||
211535870 | TruongAnim | C | June 29, 2023, 5:35 p.m. | OK | Python 3 | TESTS | 11 | 202 | 6041600 | ||
211529884 | pelopicopata | C | June 29, 2023, 4:47 p.m. | OK | Python 3 | TESTS | 11 | 218 | 16486400 | ||
211527387 | SanyaMadan | C | June 29, 2023, 4:34 p.m. | OK | Python 3 | TESTS | 11 | 326 | 14131200 | ||
211544589 | Eyad-Alqaysi | C | June 29, 2023, 7:16 p.m. | OK | Python 3 | TESTS | 11 | 327 | 921600 | ||
211560293 | aeternalis1 | C | June 30, 2023, 1:30 a.m. | OK | Python 3 | TESTS | 24 | 327 | 8396800 | ||
211526730 | cherryboom_me | C | June 29, 2023, 4:34 p.m. | OK | Rust 2021 | TESTS | 11 | 93 | 5427200 | ||
211523084 | aditya_coder9 | C | June 29, 2023, 4:28 p.m. | OK | Rust 2021 | TESTS | 11 | 124 | 6758400 |
Back to search problems