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 |
---|---|---|---|---|---|---|
628 | Educational Codeforces Round 8 | FINISHED | False | 7200 | 275929199 | Feb. 19, 2016, 3 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 6129 ) | D | Magic Numbers | PROGRAMMING | dp | 2200 |
B"Consider the decimal presentation of an integer. Let's call a number d-magic if digit d appears in decimal presentation of the number on even positions and nowhere else. For example, the numbers 1727374, 17, 1 are 7-magic but 77, 7, 123, 34, 71 are not 7-magic. On the other hand the number 7 is 0-magic, 123 is 2-magic, 34 is 4-magic and 71 is 1-magic. Find the number of d-magic numbers in the segment [a, xe2 x80 x89b] that are multiple of m. Because the answer can be very huge you should only find its value modulo 109 xe2 x80 x89+ xe2 x80 x897 (so you should find the remainder after dividing by 109 xe2 x80 x89+ xe2 x80 x897). The first line contains two integers m, xe2 x80 x89d (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89d xe2 x80 x89 xe2 x89 xa4 xe2 x80 x899) -- the parameters from the problem statement. The second line contains positive integer a in decimal presentation (without leading zeroes). The third line contains positive integer b in decimal presentation (without leading zeroes). It is guaranteed that a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b, the number of digits in a and b are the same and don't exceed 2000. Print the only integer a -- the remainder after dividing by 109 xe2 x80 x89+ xe2 x80 x897 of the number of d-magic numbers in segment [a, xe2 x80 x89b] that are multiple of m. The numbers from the answer of the first example are 16, 26, 36, 46, 56, 76, 86 and 96. The numbers from the answer of the second example are 2, 4, 6 and 8. The numbers from the answer of the third example are 1767, 2717, 5757, 6707, 8797 and 9747."... |
43203 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
16212356 | Gassa | D | Feb. 19, 2016, 5:17 p.m. | OK | D | TESTS | 66 | 530 | 4198400 | 2200 | |
16212299 | Gassa | D | Feb. 19, 2016, 5:15 p.m. | OK | D | TESTS | 66 | 702 | 4198400 | 2200 | |
50412898 | PhuongPeu | D | Feb. 24, 2019, 4:25 a.m. | OK | FPC | TESTS | 66 | 436 | 80793600 | 2200 | |
16210849 | Valerich | D | Feb. 19, 2016, 4:44 p.m. | OK | FPC | TESTS | 66 | 670 | 32460800 | 2200 | |
16827100 | Gray_58 | D | March 19, 2016, 8:28 p.m. | OK | FPC | TESTS | 66 | 826 | 79769600 | 2200 | |
67287836 | tan12341 | D | Dec. 20, 2019, 2:45 p.m. | OK | FPC | TESTS | 66 | 1356 | 96563200 | 2200 | |
45352782 | luogu_bot1 | D | Nov. 6, 2018, 7:35 a.m. | OK | FPC | TESTS | 66 | 1933 | 131072000 | 2200 | |
16225844 | Stardust | D | Feb. 20, 2016, 9:08 a.m. | OK | GNU C++ | TESTS | 66 | 93 | 16076800 | 2200 | |
16226076 | wu6shen | D | Feb. 20, 2016, 9:23 a.m. | OK | GNU C++ | TESTS | 66 | 109 | 16179200 | 2200 | |
16265656 | Vlad_kv | D | Feb. 21, 2016, 6:11 p.m. | OK | GNU C++ | TESTS | 66 | 156 | 16076800 | 2200 | |
16758281 | I_love_Captain_America | D | March 17, 2016, 6:14 a.m. | OK | GNU C++ | TESTS | 66 | 156 | 97177600 | 2200 | |
16477930 | liuaohanjsj | D | March 3, 2016, 7:13 a.m. | OK | GNU C++ | TESTS | 66 | 171 | 16179200 | 2200 | |
17978072 | hanjitao | D | May 18, 2016, 10:49 a.m. | OK | GNU C++ | TESTS | 66 | 171 | 18636800 | 2200 | |
17019284 | RNS_CUS | D | March 29, 2016, 12:16 p.m. | OK | GNU C++ | TESTS | 66 | 186 | 18636800 | 2200 | |
16279292 | Kyle_Chi | D | Feb. 22, 2016, 3:16 p.m. | OK | GNU C++ | TESTS | 66 | 186 | 32256000 | 2200 | |
17139951 | windy7926778 | D | April 3, 2016, 5:10 a.m. | OK | GNU C++ | TESTS | 66 | 187 | 2048000 | 2200 | |
36742952 | vjudge1 | D | March 30, 2018, 9:52 a.m. | OK | GNU C++ | TESTS | 66 | 187 | 19660800 | 2200 | |
59589107 | rainboy | D | Aug. 27, 2019, 7:26 p.m. | OK | GNU C11 | TESTS | 66 | 218 | 32051200 | 2200 | |
16610581 | winger | D | March 9, 2016, 2:26 a.m. | OK | GNU C++11 | TESTS | 66 | 78 | 0 | 2200 | |
16641689 | winger | D | March 11, 2016, 1:18 a.m. | OK | GNU C++11 | TESTS | 66 | 93 | 0 | 2200 | |
16627986 | winger | D | March 10, 2016, 6:18 a.m. | OK | GNU C++11 | TESTS | 66 | 93 | 0 | 2200 | |
16610362 | winger | D | March 9, 2016, 1:44 a.m. | OK | GNU C++11 | TESTS | 66 | 93 | 0 | 2200 | |
16206627 | halyavin | D | Feb. 19, 2016, 3:40 p.m. | OK | GNU C++11 | TESTS | 66 | 93 | 17305600 | 2200 | |
28783668 | fabo3000 | D | July 22, 2017, 4:58 p.m. | OK | GNU C++11 | TESTS | 66 | 109 | 2150400 | 2200 | |
28782842 | fabo3000 | D | July 22, 2017, 4:08 p.m. | OK | GNU C++11 | TESTS | 66 | 109 | 2150400 | 2200 | |
40985125 | ReaLNero1 | D | July 30, 2018, 7:46 p.m. | OK | GNU C++11 | TESTS | 66 | 109 | 17305600 | 2200 | |
18151512 | krz | D | May 29, 2016, 9:59 p.m. | OK | GNU C++11 | TESTS | 66 | 124 | 2252800 | 2200 | |
45075174 | Rockett | D | Oct. 29, 2018, 11:13 p.m. | OK | GNU C++11 | TESTS | 66 | 140 | 20275200 | 2200 | |
41635862 | m4h | D | Aug. 15, 2018, 11:51 p.m. | OK | GNU C++14 | TESTS | 66 | 124 | 102400 | 2200 | |
58823306 | carre | D | Aug. 14, 2019, 2:49 p.m. | OK | GNU C++14 | TESTS | 66 | 140 | 0 | 2200 | |
58823526 | carre | D | Aug. 14, 2019, 2:54 p.m. | OK | GNU C++14 | TESTS | 66 | 155 | 0 | 2200 | |
58823050 | carre | D | Aug. 14, 2019, 2:44 p.m. | OK | GNU C++14 | TESTS | 66 | 156 | 0 | 2200 | |
45213209 | AnishG | D | Nov. 2, 2018, 4:23 p.m. | OK | GNU C++14 | TESTS | 66 | 171 | 16384000 | 2200 | |
31728208 | cwhao | D | Oct. 26, 2017, 4:22 a.m. | OK | GNU C++14 | TESTS | 66 | 171 | 16384000 | 2200 | |
27356960 | Near_mj | D | May 26, 2017, 1:55 p.m. | OK | GNU C++14 | TESTS | 66 | 171 | 16384000 | 2200 | |
45237484 | AnishG | D | Nov. 3, 2018, 10:04 a.m. | OK | GNU C++14 | TESTS | 66 | 171 | 16384000 | 2200 | |
30460193 | NiroBC | D | Sept. 18, 2017, 9:57 a.m. | OK | GNU C++14 | TESTS | 66 | 171 | 33996800 | 2200 | |
64708249 | baohiep | D | Nov. 11, 2019, 5:28 p.m. | OK | GNU C++14 | TESTS | 66 | 171 | 64614400 | 2200 | |
56545631 | fanqeixi | D | July 5, 2019, 7:30 a.m. | OK | GNU C++17 | TESTS | 66 | 171 | 16281600 | 2200 | |
51134040 | vjudge4 | D | March 10, 2019, 3:07 p.m. | OK | GNU C++17 | TESTS | 66 | 171 | 178176000 | 2200 | |
47842533 | the_nightmare | D | Jan. 2, 2019, 12:53 p.m. | OK | GNU C++17 | TESTS | 66 | 187 | 129126400 | 2200 | |
64745125 | AmineBDH | D | Nov. 12, 2019, 1:16 p.m. | OK | GNU C++17 | TESTS | 66 | 202 | 64409600 | 2200 | |
61937629 | Rahul | D | Oct. 5, 2019, 6:23 p.m. | OK | GNU C++17 | TESTS | 66 | 202 | 67379200 | 2200 | |
62206576 | Hoshi08 | D | Oct. 9, 2019, 1:23 p.m. | OK | GNU C++17 | TESTS | 66 | 217 | 32256000 | 2200 | |
49881584 | err0r | D | Feb. 13, 2019, 6:26 p.m. | OK | GNU C++17 | TESTS | 66 | 217 | 64307200 | 2200 | |
65288810 | Pety | D | Nov. 18, 2019, 9:04 a.m. | OK | GNU C++17 | TESTS | 66 | 217 | 64409600 | 2200 | |
48685136 | IsTiaQue | D | Jan. 21, 2019, 2:55 p.m. | OK | GNU C++17 | TESTS | 66 | 217 | 64819200 | 2200 | |
56789388 | dragonslayerintraining | D | July 10, 2019, 9:52 a.m. | OK | GNU C++17 | TESTS | 66 | 217 | 80384000 | 2200 | |
20013033 | pavel.rosputko | D | Aug. 20, 2016, 8:39 p.m. | OK | Haskell | TESTS | 66 | 623 | 70246400 | 2200 | |
20012987 | pavel.rosputko | D | Aug. 20, 2016, 8:37 p.m. | OK | Haskell | TESTS | 66 | 623 | 70246400 | 2200 | |
20013604 | pavel.rosputko | D | Aug. 20, 2016, 9:12 p.m. | OK | Haskell | TESTS | 66 | 624 | 70246400 | 2200 | |
20013579 | pavel.rosputko | D | Aug. 20, 2016, 9:11 p.m. | OK | Haskell | TESTS | 66 | 670 | 70246400 | 2200 | |
20012874 | pavel.rosputko | D | Aug. 20, 2016, 8:32 p.m. | OK | Haskell | TESTS | 66 | 810 | 70246400 | 2200 | |
16219284 | Tron271828 | D | Feb. 20, 2016, 2:40 a.m. | OK | Java 7 | TESTS | 66 | 670 | 53043200 | 2200 | |
16217447 | gpita | D | Feb. 19, 2016, 10:27 p.m. | OK | Java 7 | TESTS | 66 | 873 | 143564800 | 2200 | |
16224417 | ya_rb | D | Feb. 20, 2016, 7:27 a.m. | OK | Java 7 | TESTS | 66 | 1481 | 159436800 | 2200 | |
16206981 | knightL | D | Feb. 19, 2016, 3:44 p.m. | OK | Java 7 | TESTS | 66 | 1528 | 142950400 | 2200 | |
16390060 | Wolfje | D | Feb. 27, 2016, 6:26 p.m. | OK | Java 8 | TESTS | 66 | 421 | 21504000 | 2200 | |
16212506 | Guliash | D | Feb. 19, 2016, 5:22 p.m. | OK | Java 8 | TESTS | 66 | 467 | 0 | 2200 | |
16207541 | Ahmad_Elsagheer | D | Feb. 19, 2016, 3:51 p.m. | OK | Java 8 | TESTS | 66 | 560 | 131379200 | 2200 | |
20205581 | WonderMouse | D | Aug. 28, 2016, 5:19 a.m. | OK | Java 8 | TESTS | 66 | 561 | 62361600 | 2200 | |
16281396 | ATailouloute | D | Feb. 22, 2016, 5:30 p.m. | OK | Java 8 | TESTS | 66 | 638 | 48537600 | 2200 | |
16225085 | Empress | D | Feb. 20, 2016, 8:17 a.m. | OK | Java 8 | TESTS | 66 | 685 | 131584000 | 2200 | |
45538861 | Ahmed_Diab | D | Nov. 10, 2018, 6:23 p.m. | OK | Java 8 | TESTS | 66 | 795 | 76083200 | 2200 | |
16225110 | Empress | D | Feb. 20, 2016, 8:19 a.m. | OK | Java 8 | TESTS | 66 | 795 | 131584000 | 2200 | |
45539008 | Ahmed_Diab | D | Nov. 10, 2018, 6:26 p.m. | OK | Java 8 | TESTS | 66 | 810 | 76083200 | 2200 | |
16296240 | Abkreno94 | D | Feb. 23, 2016, 4:44 p.m. | OK | Java 8 | TESTS | 66 | 810 | 131891200 | 2200 | |
16206331 | azukun | D | Feb. 19, 2016, 3:37 p.m. | OK | MS C# | TESTS | 66 | 717 | 3686400 | 2200 | |
16226552 | toraoh | D | Feb. 20, 2016, 9:53 a.m. | OK | MS C# | TESTS | 66 | 936 | 69324800 | 2200 | |
21780261 | balalaika | D | Oct. 25, 2016, 7:25 p.m. | OK | MS C# | TESTS | 66 | 1746 | 37068800 | 2200 | |
21780290 | balalaika | D | Oct. 25, 2016, 7:26 p.m. | OK | MS C# | TESTS | 66 | 1777 | 37068800 | 2200 | |
16219337 | huantwofat | D | Feb. 20, 2016, 2:46 a.m. | OK | MS C++ | TESTS | 66 | 187 | 32256000 | 2200 | |
16208337 | RoKi | D | Feb. 19, 2016, 4:03 p.m. | OK | MS C++ | TESTS | 66 | 202 | 64819200 | 2200 | |
16209414 | Ghassan.Khazaal | D | Feb. 19, 2016, 4:19 p.m. | OK | MS C++ | TESTS | 66 | 264 | 64204800 | 2200 | |
34496986 | OsamaNabih268 | D | Jan. 23, 2018, 9:28 p.m. | OK | MS C++ | TESTS | 66 | 295 | 66457600 | 2200 | |
17247057 | a510756230 | D | April 9, 2016, 2:09 a.m. | OK | MS C++ | TESTS | 66 | 373 | 34508800 | 2200 | |
45228770 | vjudge5 | D | Nov. 3, 2018, 5:36 a.m. | OK | MS C++ | TESTS | 66 | 374 | 32256000 | 2200 | |
53031835 | vjudge4 | D | April 20, 2019, 1:47 a.m. | OK | MS C++ | TESTS | 66 | 374 | 32460800 | 2200 | |
16212605 | AU.Bahosain | D | Feb. 19, 2016, 5:25 p.m. | OK | MS C++ | TESTS | 66 | 390 | 32153600 | 2200 | |
36225264 | Andreasyan | D | March 12, 2018, 1:25 p.m. | OK | MS C++ | TESTS | 66 | 405 | 34201600 | 2200 | |
43995831 | vjudge2 | D | Oct. 8, 2018, 11:27 a.m. | OK | MS C++ | TESTS | 66 | 436 | 130969600 | 2200 | |
16217719 | alexey.shchepin | D | Feb. 19, 2016, 11:02 p.m. | OK | Ocaml | TESTS | 66 | 1544 | 131788800 | 2200 | |
41070132 | jooj | D | July 31, 2018, 11:16 p.m. | OK | PyPy 2 | TESTS | 66 | 389 | 18329600 | 2200 | |
41070293 | vjudge4 | D | July 31, 2018, 11:35 p.m. | OK | PyPy 2 | TESTS | 66 | 420 | 18432000 | 2200 | |
48362961 | IrOty1oX5uSp4 | D | Jan. 13, 2019, 7:36 p.m. | OK | PyPy 2 | TESTS | 66 | 1107 | 9216000 | 2200 | |
48357880 | IrOty1oX5uSp4 | D | Jan. 13, 2019, 5:03 p.m. | OK | PyPy 2 | TESTS | 66 | 1138 | 9011200 | 2200 | |
48363940 | IrOty1oX5uSp4 | D | Jan. 13, 2019, 8:11 p.m. | OK | PyPy 2 | TESTS | 66 | 1169 | 9523200 | 2200 | |
48363970 | IrOty1oX5uSp4 | D | Jan. 13, 2019, 8:12 p.m. | OK | PyPy 3 | TESTS | 66 | 1075 | 9625600 | 2200 |
Back to search problems