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 |
---|---|---|---|---|---|---|
1478 | Codeforces Round 698 (Div. 2) | FINISHED | False | 8100 | 125508310 | Jan. 28, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 18399 ) | B | Nezzar and Lucky Number | PROGRAMMING | brute force dp math | 1100 |
B'Nezzar 's favorite digit among 1, ldots,9 is d . He calls a positive integer lucky if d occurs at least once in its decimal representation. Given q integers a_1,a_2, ldots,a_q , for each 1 <= i <= q Nezzar would like to know if a_i can be equal to a sum of several (one or more) lucky numbers. The first line contains a single integer t ( 1 <= t <= 9 ) -- the number of test cases. The first line of each test case contains two integers q and d ( 1 <= q <= 10^4 , 1 <= d <= 9 ). The second line of each test case contains q integers a_1,a_2, ldots,a_q ( 1 <= a_i <= 10^9 ). For each integer in each test case, print "YES" in a single line if a_i can be equal to a sum of lucky numbers. Otherwise, print "NO". You can print letters in any case (upper or lower). In the first test case, 24 = 17 + 7 , 27 itself is a lucky number, 25 cannot be equal to a sum of lucky numbers. '... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
105795167 | qdnoip | B | Jan. 29, 2021, 1:43 a.m. | OK | Clang++17 Diagnostics | TESTS | 6 | 62 | 0 | 1100 | |
105782472 | Gassa | B | Jan. 28, 2021, 7:31 p.m. | OK | D | TESTS | 6 | 62 | 4198400 | 1100 | |
105808376 | cheese-cracker | B | Jan. 29, 2021, 6:01 a.m. | OK | D | TESTS | 6 | 155 | 4198400 | 1100 | |
105783346 | eugalt | B | Jan. 28, 2021, 7:44 p.m. | OK | GNU C11 | TESTS | 6 | 31 | 0 | 1100 | |
105771519 | polneni_prashanth | B | Jan. 28, 2021, 5:30 p.m. | OK | GNU C11 | TESTS | 6 | 312 | 0 | 1100 | |
105780552 | sahasubarna08041 | B | Jan. 28, 2021, 7:03 p.m. | OK | GNU C11 | TESTS | 6 | 327 | 0 | 1100 | |
105770299 | Caystle | B | Jan. 28, 2021, 5:24 p.m. | OK | GNU C11 | TESTS | 6 | 327 | 0 | 1100 | |
105783555 | Guangyaochenyu | B | Jan. 28, 2021, 7:47 p.m. | OK | GNU C11 | TESTS | 6 | 327 | 0 | 1100 | |
105770789 | rajutsav1234 | B | Jan. 28, 2021, 5:26 p.m. | OK | GNU C11 | TESTS | 6 | 327 | 0 | 1100 | |
105771241 | kingpin119 | B | Jan. 28, 2021, 5:28 p.m. | OK | GNU C11 | TESTS | 6 | 327 | 0 | 1100 | |
105771999 | _Akhil_3366 | B | Jan. 28, 2021, 5:33 p.m. | OK | GNU C11 | TESTS | 6 | 327 | 102400 | 1100 | |
105794589 | LW_ZM | B | Jan. 29, 2021, 1:23 a.m. | OK | GNU C11 | TESTS | 6 | 327 | 102400 | 1100 | |
105770006 | _Akhil_3366 | B | Jan. 28, 2021, 5:23 p.m. | OK | GNU C11 | TESTS | 6 | 327 | 102400 | 1100 | |
105798953 | qdnoip | B | Jan. 29, 2021, 3:24 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 0 | 1100 | |
105792786 | william555 | B | Jan. 29, 2021, 12:11 a.m. | OK | GNU C++11 | TESTS | 6 | 15 | 102400 | 1100 | |
105762258 | attack11101001 | B | Jan. 28, 2021, 4:36 p.m. | OK | GNU C++11 | TESTS | 6 | 30 | 7987200 | 1100 | |
105798828 | m0ns_k1up | B | Jan. 29, 2021, 3:22 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | 1100 | |
105804633 | Z__Z | B | Jan. 29, 2021, 5:08 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | 1100 | |
105805916 | zorbin | B | Jan. 29, 2021, 5:27 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | 1100 | |
105808282 | fishcathu. | B | Jan. 29, 2021, 6 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | 1100 | |
105803249 | CN_jie | B | Jan. 29, 2021, 4:46 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | 1100 | |
105802939 | lonely_person | B | Jan. 29, 2021, 4:41 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | 1100 | |
105798839 | qdnoip | B | Jan. 29, 2021, 3:22 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | 1100 | |
105806704 | ashok_55 | B | Jan. 29, 2021, 5:39 a.m. | OK | GNU C++14 | TESTS | 6 | 31 | 0 | 1100 | |
105806024 | prbhatter | B | Jan. 29, 2021, 5:29 a.m. | OK | GNU C++14 | TESTS | 6 | 31 | 0 | 1100 | |
105797709 | GigaM | B | Jan. 29, 2021, 2:56 a.m. | OK | GNU C++14 | TESTS | 6 | 31 | 0 | 1100 | |
105789336 | pasricha_dhruv | B | Jan. 28, 2021, 10:04 p.m. | OK | GNU C++14 | TESTS | 6 | 31 | 102400 | 1100 | |
105778830 | dipeshrathi163 | B | Jan. 28, 2021, 6:39 p.m. | OK | GNU C++14 | TESTS | 6 | 31 | 204800 | 1100 | |
105782444 | darpan_bhattacharya | B | Jan. 28, 2021, 7:30 p.m. | OK | GNU C++14 | TESTS | 6 | 31 | 204800 | 1100 | |
105801882 | aFool | B | Jan. 29, 2021, 4:22 a.m. | OK | GNU C++14 | TESTS | 6 | 31 | 204800 | 1100 | |
105769947 | iamdoge | B | Jan. 28, 2021, 5:23 p.m. | OK | GNU C++14 | TESTS | 6 | 31 | 409600 | 1100 | |
105782160 | ritik_0007 | B | Jan. 28, 2021, 7:26 p.m. | OK | GNU C++14 | TESTS | 6 | 31 | 14540800 | 1100 | |
105808136 | manavsinha03 | B | Jan. 29, 2021, 5:58 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | 1100 | |
105802667 | LvLijia | B | Jan. 29, 2021, 4:36 a.m. | OK | GNU C++17 | TESTS | 6 | 30 | 512000 | 1100 | |
105790540 | Robin_Acharya | B | Jan. 28, 2021, 10:41 p.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105806138 | 2440181755 | B | Jan. 29, 2021, 5:31 a.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105801569 | wollip | B | Jan. 29, 2021, 4:17 a.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105801256 | asdfgjk | B | Jan. 29, 2021, 4:10 a.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105792267 | plourde27 | B | Jan. 28, 2021, 11:48 p.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105779096 | sahilb10 | B | Jan. 28, 2021, 6:43 p.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105774043 | piotro888 | B | Jan. 28, 2021, 5:48 p.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105771551 | brebenel_mihnea | B | Jan. 28, 2021, 5:30 p.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105770876 | Golden | B | Jan. 28, 2021, 5:27 p.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | 1100 | |
105780956 | imnasim3.1415 | B | Jan. 28, 2021, 7:08 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 30 | 0 | 1100 | |
105783956 | pigmike | B | Jan. 28, 2021, 7:54 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105788220 | PurpleCrayon | B | Jan. 28, 2021, 9:30 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105795957 | VinsenN | B | Jan. 29, 2021, 2:08 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105799794 | vioalbert | B | Jan. 29, 2021, 3:43 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105801945 | CoderAnshu | B | Jan. 29, 2021, 4:23 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105804501 | lucid_dreamer | B | Jan. 29, 2021, 5:06 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105807198 | Raeee | B | Jan. 29, 2021, 5:46 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105808106 | shekharmaheswari | B | Jan. 29, 2021, 5:57 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105777495 | MateoCV | B | Jan. 28, 2021, 6:23 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | 1100 | |
105784805 | TomazGomes | B | Jan. 28, 2021, 8:10 p.m. | OK | Haskell | TESTS | 6 | 358 | 1126400 | 1100 | |
105784426 | TomazGomes | B | Jan. 28, 2021, 8:03 p.m. | OK | Haskell | TESTS | 6 | 639 | 1126400 | 1100 | |
105784762 | TomazGomes | B | Jan. 28, 2021, 8:09 p.m. | OK | Haskell | TESTS | 6 | 654 | 1126400 | 1100 | |
105794070 | prasoonjain006 | B | Jan. 29, 2021, 1:06 a.m. | OK | Java 11 | TESTS | 6 | 186 | 204800 | 1100 | |
105780011 | mrRobot | B | Jan. 28, 2021, 6:55 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | 1100 | |
105801794 | BiggEr. | B | Jan. 29, 2021, 4:20 a.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | 1100 | |
105785089 | BlueBirdie | B | Jan. 28, 2021, 8:15 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | 1100 | |
105779473 | 5612 | B | Jan. 28, 2021, 6:48 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | 1100 | |
105772850 | Akram-Adel | B | Jan. 28, 2021, 5:39 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | 1100 | |
105799508 | RuthlessAggression | B | Jan. 29, 2021, 3:37 a.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | 1100 | |
105791690 | dupr | B | Jan. 28, 2021, 11:25 p.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | 1100 | |
105780604 | Shabab_kabab | B | Jan. 28, 2021, 7:03 p.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | 1100 | |
105775158 | saurabh_kl | B | Jan. 28, 2021, 5:58 p.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | 1100 | |
105784224 | nandit | B | Jan. 28, 2021, 7:59 p.m. | OK | Java 8 | TESTS | 6 | 109 | 0 | 1100 | |
105802813 | practice99 | B | Jan. 29, 2021, 4:38 a.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | 1100 | |
105785049 | ElragolEl3enab | B | Jan. 28, 2021, 8:15 p.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | 1100 | |
105789303 | arcanewizard37 | B | Jan. 28, 2021, 10:03 p.m. | OK | Java 8 | TESTS | 6 | 139 | 0 | 1100 | |
105775733 | pranav232323 | B | Jan. 28, 2021, 6:04 p.m. | OK | Java 8 | TESTS | 6 | 139 | 0 | 1100 | |
105775603 | MubtasimShahriar | B | Jan. 28, 2021, 6:02 p.m. | OK | Java 8 | TESTS | 6 | 139 | 0 | 1100 | |
105771314 | RonWonWon | B | Jan. 28, 2021, 5:29 p.m. | OK | Java 8 | TESTS | 6 | 139 | 0 | 1100 | |
105792985 | NerfThis | B | Jan. 29, 2021, 12:21 a.m. | OK | Java 8 | TESTS | 6 | 140 | 0 | 1100 | |
105778498 | Abhichauhan | B | Jan. 28, 2021, 6:35 p.m. | OK | Java 8 | TESTS | 6 | 140 | 0 | 1100 | |
105773935 | shojin_pro | B | Jan. 28, 2021, 5:47 p.m. | OK | Java 8 | TESTS | 6 | 140 | 0 | 1100 | |
105793659 | Spheniscine | B | Jan. 29, 2021, 12:49 a.m. | OK | Kotlin | TESTS | 6 | 155 | 1843200 | 1100 | |
105787332 | catforce | B | Jan. 28, 2021, 9:07 p.m. | OK | Kotlin | TESTS | 6 | 233 | 614400 | 1100 | |
105805052 | Goodenough_ | B | Jan. 29, 2021, 5:14 a.m. | OK | MS C++ | TESTS | 6 | 327 | 0 | 1100 | |
105774697 | es19 | B | Jan. 28, 2021, 5:54 p.m. | OK | MS C++ | TESTS | 6 | 327 | 409600 | 1100 | |
105798942 | panjinhua | B | Jan. 29, 2021, 3:24 a.m. | OK | MS C++ 2017 | TESTS | 6 | 62 | 102400 | 1100 | |
105802293 | wjli | B | Jan. 29, 2021, 4:30 a.m. | OK | MS C++ 2017 | TESTS | 6 | 93 | 0 | 1100 | |
105768049 | SnowChildren | B | Jan. 28, 2021, 4:49 p.m. | OK | MS C++ 2017 | TESTS | 6 | 93 | 0 | 1100 | |
105801953 | dear-john | B | Jan. 29, 2021, 4:23 a.m. | OK | MS C++ 2017 | TESTS | 6 | 93 | 102400 | 1100 | |
105802142 | dlehgns011 | B | Jan. 29, 2021, 4:27 a.m. | OK | MS C++ 2017 | TESTS | 6 | 108 | 0 | 1100 | |
105802882 | Torehalt | B | Jan. 29, 2021, 4:40 a.m. | OK | MS C++ 2017 | TESTS | 6 | 108 | 102400 | 1100 | |
105761275 | icey_z | B | Jan. 28, 2021, 4:34 p.m. | OK | MS C++ 2017 | TESTS | 6 | 124 | 1024000 | 1100 | |
105764326 | jackcaptain | B | Jan. 28, 2021, 4:42 p.m. | OK | MS C++ 2017 | TESTS | 6 | 124 | 3686400 | 1100 | |
105795592 | icey_z | B | Jan. 29, 2021, 1:56 a.m. | OK | MS C++ 2017 | TESTS | 6 | 139 | 819200 | 1100 | |
105784860 | john_wick_07 | B | Jan. 28, 2021, 8:11 p.m. | OK | MS C++ 2017 | TESTS | 6 | 343 | 0 | 1100 | |
105760342 | Daniil_Gorohov | B | Jan. 28, 2021, 4:31 p.m. | OK | Node.js | TESTS | 6 | 592 | 7680000 | 1100 | |
105765355 | middev | B | Jan. 28, 2021, 4:44 p.m. | OK | Node.js | TESTS | 6 | 592 | 18534400 | 1100 | |
105763227 | erbolat0311 | B | Jan. 28, 2021, 4:39 p.m. | OK | PHP | TESTS | 6 | 374 | 3788800 | 1100 | |
105800661 | rishabnahar2025 | B | Jan. 29, 2021, 3:59 a.m. | OK | PyPy 2 | TESTS | 6 | 202 | 13004800 | 1100 | |
105797183 | M0u1ea5 | B | Jan. 29, 2021, 2:43 a.m. | OK | PyPy 2 | TESTS | 6 | 982 | 7884800 | 1100 | |
105764986 | maciaas | B | Jan. 28, 2021, 4:43 p.m. | OK | PyPy 2 | TESTS | 6 | 998 | 7782400 | 1100 | |
105775362 | arin17 | B | Jan. 28, 2021, 6 p.m. | OK | PyPy 3 | TESTS | 6 | 124 | 7987200 | 1100 | |
105776286 | arin17 | B | Jan. 28, 2021, 6:09 p.m. | OK | PyPy 3 | TESTS | 6 | 124 | 8294400 | 1100 | |
105775453 | arin17 | B | Jan. 28, 2021, 6:01 p.m. | OK | PyPy 3 | TESTS | 6 | 140 | 7987200 | 1100 | |
105771850 | reddevil100 | B | Jan. 28, 2021, 5:32 p.m. | OK | PyPy 3 | TESTS | 6 | 140 | 9113600 | 1100 | |
105774740 | at_f | B | Jan. 28, 2021, 5:54 p.m. | OK | PyPy 3 | TESTS | 6 | 171 | 9011200 | 1100 | |
105764907 | at_f | B | Jan. 28, 2021, 4:43 p.m. | OK | PyPy 3 | TESTS | 6 | 171 | 9113600 | 1100 | |
105777486 | nhipata | B | Jan. 28, 2021, 6:23 p.m. | OK | PyPy 3 | TESTS | 6 | 171 | 9216000 | 1100 | |
105771650 | nhipata | B | Jan. 28, 2021, 5:31 p.m. | OK | PyPy 3 | TESTS | 6 | 186 | 9523200 | 1100 | |
105780876 | deepanshu_pali | B | Jan. 28, 2021, 7:07 p.m. | OK | PyPy 3 | TESTS | 6 | 202 | 9011200 | 1100 | |
105803455 | wilsantow | B | Jan. 29, 2021, 4:49 a.m. | OK | PyPy 3 | TESTS | 6 | 202 | 9728000 | 1100 | |
105774426 | elistark | B | Jan. 28, 2021, 5:51 p.m. | OK | Python 2 | TESTS | 6 | 358 | 1228800 | 1100 | |
105772372 | jramaswami | B | Jan. 28, 2021, 5:35 p.m. | OK | Python 3 | TESTS | 6 | 202 | 1331200 | 1100 | |
105807060 | slightlyskepticpotat | B | Jan. 29, 2021, 5:44 a.m. | OK | Python 3 | TESTS | 6 | 233 | 1433600 | 1100 | |
105797185 | Alice_Synthesis | B | Jan. 29, 2021, 2:43 a.m. | OK | Python 3 | TESTS | 6 | 233 | 1433600 | 1100 | |
105784226 | mips | B | Jan. 28, 2021, 7:59 p.m. | OK | Python 3 | TESTS | 6 | 233 | 1433600 | 1100 | |
105779516 | shivam_hbtu | B | Jan. 28, 2021, 6:48 p.m. | OK | Python 3 | TESTS | 6 | 233 | 1433600 | 1100 | |
105771834 | abhinav_04 | B | Jan. 28, 2021, 5:32 p.m. | OK | Python 3 | TESTS | 6 | 233 | 1433600 | 1100 | |
105769888 | FRares | B | Jan. 28, 2021, 5:23 p.m. | OK | Python 3 | TESTS | 6 | 233 | 1536000 | 1100 | |
105773282 | bhupat2000 | B | Jan. 28, 2021, 5:42 p.m. | OK | Python 3 | TESTS | 6 | 233 | 1945600 | 1100 | |
105760170 | Namanrockzzz | B | Jan. 28, 2021, 4:31 p.m. | OK | Python 3 | TESTS | 6 | 249 | 1536000 | 1100 | |
105789499 | radmir-s | B | Jan. 28, 2021, 10:09 p.m. | OK | Python 3 | TESTS | 6 | 265 | 1331200 | 1100 | |
105770091 | gmm_tea | B | Jan. 28, 2021, 5:23 p.m. | OK | Ruby 3 | TESTS | 6 | 389 | 3788800 | 1100 | |
105761221 | tommyrheo | B | Jan. 28, 2021, 4:33 p.m. | OK | Rust | TESTS | 6 | 46 | 1024000 | 1100 |
Back to search problems