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 |
---|---|---|---|---|---|---|
1422 | Codeforces Round 675 (Div. 2) | FINISHED | False | 7200 | 135438863 | Oct. 4, 2020, 4:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 8339 ) | C | Bargain | PROGRAMMING | dp math probabilities |
B"Sometimes it is not easy to come to an agreement in a bargain. Right now Sasha and Vova can't come to an agreement: Sasha names a price as high as possible, then Vova wants to remove as many digits from the price as possible. In more details, Sasha names some integer price n , Vova removes a non-empty substring of (consecutive) digits from the price, the remaining digits close the gap, and the resulting integer is the price. For example, is Sasha names 1213121 , Vova can remove the substring 1312 , and the result is 121 . It is allowed for result to contain leading zeros. If Vova removes all digits, the price is considered to be 0 . Sasha wants to come up with some constraints so that Vova can't just remove all digits, but he needs some arguments supporting the constraints. To start with, he wants to compute the sum of all possible resulting prices after Vova's move. Help Sasha to compute this sum. Since the answer can be very large, print it modulo 10^9 + 7 . The first and only line contains a single integer n ( 1 <= n < 10^{10^5} ). In the only line print the required sum modulo 10^9 + 7 . Consider the first example. Vova can choose to remove 1 , 0 , 7 , 10 , 07 , or 107 . The results are 07 , 17 , 10 , 7 , 1 , 0 . Their sum is 42 . "... |
Codeforces Round #675 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
94704590 | Gassa | C | Oct. 4, 2020, 5:45 p.m. | OK | D | TESTS | 27 | 31 | 4198400 | ||
94712998 | ruban | C | Oct. 4, 2020, 6:37 p.m. | OK | Delphi | TESTS | 27 | 156 | 72499200 | ||
94713091 | ruban | C | Oct. 4, 2020, 6:37 p.m. | OK | Delphi | TESTS | 27 | 171 | 72601600 | ||
94708476 | qwerasdfzxcl | C | Oct. 4, 2020, 5:59 p.m. | OK | GNU C11 | TESTS | 27 | 31 | 3276800 | ||
94700231 | huangzhen | C | Oct. 4, 2020, 5:29 p.m. | OK | GNU C++11 | TESTS | 27 | 30 | 1843200 | ||
94732828 | Jonathan1234 | C | Oct. 5, 2020, 3:44 a.m. | OK | GNU C++11 | TESTS | 27 | 30 | 2662400 | ||
94703242 | Elektricks | C | Oct. 4, 2020, 5:40 p.m. | OK | GNU C++11 | TESTS | 27 | 30 | 32358400 | ||
94739119 | YJJ_Konnyaku | C | Oct. 5, 2020, 5:47 a.m. | OK | GNU C++11 | TESTS | 27 | 31 | 102400 | ||
94700158 | rand1000000007 | C | Oct. 4, 2020, 5:28 p.m. | OK | GNU C++11 | TESTS | 27 | 31 | 307200 | ||
94726840 | eiff | C | Oct. 5, 2020, 12:59 a.m. | OK | GNU C++11 | TESTS | 27 | 31 | 307200 | ||
94723050 | rand1000000007 | C | Oct. 4, 2020, 10:04 p.m. | OK | GNU C++11 | TESTS | 27 | 31 | 307200 | ||
94708177 | Unum | C | Oct. 4, 2020, 5:58 p.m. | OK | GNU C++11 | TESTS | 27 | 31 | 307200 | ||
94703369 | somanaik | C | Oct. 4, 2020, 5:40 p.m. | OK | GNU C++11 | TESTS | 27 | 31 | 307200 | ||
94727123 | Tian_Xing | C | Oct. 5, 2020, 1:10 a.m. | OK | GNU C++11 | TESTS | 27 | 31 | 512000 | ||
94737311 | spidermonkey | C | Oct. 5, 2020, 5:16 a.m. | OK | GNU C++14 | TESTS | 27 | 31 | 307200 | ||
94713357 | ali_tavakoli | C | Oct. 4, 2020, 6:40 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 307200 | ||
94712439 | springroll | C | Oct. 4, 2020, 6:32 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 307200 | ||
94711436 | kphmd | C | Oct. 4, 2020, 6:25 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 307200 | ||
94702503 | _anon_y_mous_ | C | Oct. 4, 2020, 5:37 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 307200 | ||
94701349 | little_finger | C | Oct. 4, 2020, 5:33 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 307200 | ||
94700953 | tiwankar | C | Oct. 4, 2020, 5:31 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 307200 | ||
94708624 | aryanrathee | C | Oct. 4, 2020, 6 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 409600 | ||
94707199 | ralph0609 | C | Oct. 4, 2020, 5:55 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 409600 | ||
94723899 | morogas | C | Oct. 4, 2020, 10:38 p.m. | OK | GNU C++14 | TESTS | 27 | 31 | 716800 | ||
94721160 | tupside | C | Oct. 4, 2020, 9:05 p.m. | OK | GNU C++17 | TESTS | 27 | 30 | 1126400 | ||
94728595 | IndignantHydra | C | Oct. 5, 2020, 1:57 a.m. | OK | GNU C++17 | TESTS | 27 | 31 | 0 | ||
94738360 | uptracer | C | Oct. 5, 2020, 5:33 a.m. | OK | GNU C++17 | TESTS | 27 | 31 | 102400 | ||
94731796 | Ccucumber12 | C | Oct. 5, 2020, 3:19 a.m. | OK | GNU C++17 | TESTS | 27 | 31 | 307200 | ||
94729172 | tommyjiang | C | Oct. 5, 2020, 2:15 a.m. | OK | GNU C++17 | TESTS | 27 | 31 | 307200 | ||
94728865 | MIG29 | C | Oct. 5, 2020, 2:06 a.m. | OK | GNU C++17 | TESTS | 27 | 31 | 307200 | ||
94728656 | LightAc | C | Oct. 5, 2020, 1:59 a.m. | OK | GNU C++17 | TESTS | 27 | 31 | 307200 | ||
94727590 | abdo_essam035 | C | Oct. 5, 2020, 1:25 a.m. | OK | GNU C++17 | TESTS | 27 | 31 | 307200 | ||
94721989 | Devil_22138 | C | Oct. 4, 2020, 9:31 p.m. | OK | GNU C++17 | TESTS | 27 | 31 | 307200 | ||
94721822 | gdb_18 | C | Oct. 4, 2020, 9:26 p.m. | OK | GNU C++17 | TESTS | 27 | 31 | 307200 | ||
94721276 | Response777 | C | Oct. 4, 2020, 9:09 p.m. | OK | GNU C++17 (64) | TESTS | 27 | 30 | 307200 | ||
94701191 | Kregor | C | Oct. 4, 2020, 5:32 p.m. | OK | GNU C++17 (64) | TESTS | 27 | 30 | 307200 | ||
94702338 | bestin_1 | C | Oct. 4, 2020, 5:36 p.m. | OK | GNU C++17 (64) | TESTS | 27 | 30 | 1126400 | ||
94703792 | Hossam | C | Oct. 4, 2020, 5:42 p.m. | OK | GNU C++17 (64) | TESTS | 27 | 30 | 1433600 | ||
94734532 | RedBlade098 | C | Oct. 5, 2020, 4:20 a.m. | OK | GNU C++17 (64) | TESTS | 27 | 30 | 1843200 | ||
94721069 | Red-Dragon | C | Oct. 4, 2020, 9:03 p.m. | OK | GNU C++17 (64) | TESTS | 27 | 30 | 1843200 | ||
94712048 | HanaYukii | C | Oct. 4, 2020, 6:29 p.m. | OK | GNU C++17 (64) | TESTS | 27 | 30 | 5120000 | ||
94732060 | Gats | C | Oct. 5, 2020, 3:26 a.m. | OK | GNU C++17 (64) | TESTS | 27 | 31 | 307200 | ||
94731497 | DQYZ_HWK | C | Oct. 5, 2020, 3:12 a.m. | OK | GNU C++17 (64) | TESTS | 27 | 31 | 307200 | ||
94724665 | ScarletS | C | Oct. 4, 2020, 11:14 p.m. | OK | GNU C++17 (64) | TESTS | 27 | 31 | 307200 | ||
94715403 | saikaushik | C | Oct. 4, 2020, 7:04 p.m. | OK | Java 11 | TESTS | 27 | 186 | 0 | ||
94699660 | blackBird | C | Oct. 4, 2020, 5:27 p.m. | OK | Java 11 | TESTS | 27 | 187 | 0 | ||
94720023 | rushilpaul | C | Oct. 4, 2020, 8:35 p.m. | OK | Java 11 | TESTS | 27 | 187 | 0 | ||
94713417 | Apass.Jack | C | Oct. 4, 2020, 6:40 p.m. | OK | Java 11 | TESTS | 27 | 187 | 0 | ||
94704608 | b0bl0blaw | C | Oct. 4, 2020, 5:45 p.m. | OK | Java 11 | TESTS | 27 | 187 | 0 | ||
94700882 | vlam21 | C | Oct. 4, 2020, 5:31 p.m. | OK | Java 11 | TESTS | 27 | 187 | 0 | ||
94739941 | vaishnav_firebolt | C | Oct. 5, 2020, 6 a.m. | OK | Java 11 | TESTS | 27 | 202 | 0 | ||
94738612 | syordya | C | Oct. 5, 2020, 5:38 a.m. | OK | Java 11 | TESTS | 27 | 202 | 0 | ||
94720437 | JackyCola21 | C | Oct. 4, 2020, 8:46 p.m. | OK | Java 11 | TESTS | 27 | 202 | 0 | ||
94712310 | Jevin | C | Oct. 4, 2020, 6:31 p.m. | OK | Java 11 | TESTS | 27 | 202 | 0 | ||
94722877 | derrick20 | C | Oct. 4, 2020, 9:57 p.m. | OK | Java 8 | TESTS | 27 | 109 | 0 | ||
94732826 | godxpunk | C | Oct. 5, 2020, 3:44 a.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94723529 | qlf9 | C | Oct. 4, 2020, 10:22 p.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94721263 | kadintang1 | C | Oct. 4, 2020, 9:09 p.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94706203 | booooooo | C | Oct. 4, 2020, 5:51 p.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94705291 | vengalraoguttha | C | Oct. 4, 2020, 5:48 p.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94704744 | kishankumar001122 | C | Oct. 4, 2020, 5:46 p.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94700836 | Whiplash99 | C | Oct. 4, 2020, 5:31 p.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94702961 | meashish2 | C | Oct. 4, 2020, 5:39 p.m. | OK | Java 8 | TESTS | 27 | 124 | 0 | ||
94703695 | elkadymohammed01 | C | Oct. 4, 2020, 5:42 p.m. | OK | Java 8 | TESTS | 27 | 124 | 13619200 | ||
94737150 | Spheniscine | C | Oct. 5, 2020, 5:13 a.m. | OK | Kotlin | TESTS | 27 | 139 | 0 | ||
94721978 | koper | C | Oct. 4, 2020, 9:31 p.m. | OK | Kotlin | TESTS | 27 | 140 | 0 | ||
94699788 | sid9406 | C | Oct. 4, 2020, 5:27 p.m. | OK | Kotlin | TESTS | 27 | 264 | 0 | ||
94718303 | tomasz.masternak | C | Oct. 4, 2020, 7:54 p.m. | OK | Mono C# | TESTS | 27 | 77 | 307200 | ||
94702992 | Chitanda_ | C | Oct. 4, 2020, 5:39 p.m. | OK | MS C++ | TESTS | 27 | 31 | 3481600 | ||
94703646 | AnnSuperstar | C | Oct. 4, 2020, 5:41 p.m. | OK | MS C++ 2017 | TESTS | 27 | 31 | 1024000 | ||
94700644 | areo | C | Oct. 4, 2020, 5:30 p.m. | OK | MS C++ 2017 | TESTS | 27 | 46 | 1843200 | ||
94717480 | rafle | C | Oct. 4, 2020, 7:38 p.m. | OK | MS C++ 2017 | TESTS | 27 | 46 | 1945600 | ||
94713141 | define_chan | C | Oct. 4, 2020, 6:38 p.m. | OK | MS C++ 2017 | TESTS | 27 | 46 | 2560000 | ||
94709477 | Mucaltinum | C | Oct. 4, 2020, 6:03 p.m. | OK | MS C++ 2017 | TESTS | 27 | 62 | 204800 | ||
94706764 | kernel.bin | C | Oct. 4, 2020, 5:53 p.m. | OK | MS C++ 2017 | TESTS | 27 | 77 | 102400 | ||
94699584 | asher10000 | C | Oct. 4, 2020, 5:26 p.m. | OK | MS C++ 2017 | TESTS | 27 | 109 | 614400 | ||
94718639 | hhsaffar | C | Oct. 4, 2020, 8 p.m. | OK | .NET Core C# | TESTS | 27 | 108 | 1433600 | ||
94738804 | realnimish | C | Oct. 5, 2020, 5:41 a.m. | OK | PyPy 2 | TESTS | 27 | 139 | 1024000 | ||
94708380 | thelostdragon | C | Oct. 4, 2020, 5:59 p.m. | OK | PyPy 2 | TESTS | 27 | 155 | 819200 | ||
94702155 | Hitikkumar | C | Oct. 4, 2020, 5:36 p.m. | OK | PyPy 2 | TESTS | 27 | 202 | 1433600 | ||
94704770 | shehebe | C | Oct. 4, 2020, 5:46 p.m. | OK | PyPy 2 | TESTS | 27 | 295 | 4096000 | ||
94731147 | freed2003 | C | Oct. 5, 2020, 3:05 a.m. | OK | PyPy 3 | TESTS | 27 | 171 | 1843200 | ||
94711631 | manhar | C | Oct. 4, 2020, 6:27 p.m. | OK | PyPy 3 | TESTS | 27 | 186 | 9216000 | ||
94721661 | tan_delhi | C | Oct. 4, 2020, 9:21 p.m. | OK | PyPy 3 | TESTS | 27 | 187 | 9318400 | ||
94718775 | sh1194 | C | Oct. 4, 2020, 8:04 p.m. | OK | PyPy 3 | TESTS | 27 | 202 | 2355200 | ||
94723152 | deadguy | C | Oct. 4, 2020, 10:07 p.m. | OK | PyPy 3 | TESTS | 27 | 202 | 9523200 | ||
94712845 | Aylup | C | Oct. 4, 2020, 6:35 p.m. | OK | PyPy 3 | TESTS | 27 | 202 | 10752000 | ||
94719695 | oadey89 | C | Oct. 4, 2020, 8:26 p.m. | OK | PyPy 3 | TESTS | 27 | 202 | 11980800 | ||
94714464 | marcus.test | C | Oct. 4, 2020, 6:52 p.m. | OK | PyPy 3 | TESTS | 27 | 202 | 14233600 | ||
94714747 | marcus.test | C | Oct. 4, 2020, 6:55 p.m. | OK | PyPy 3 | TESTS | 27 | 202 | 14438400 | ||
94714782 | marcus.test | C | Oct. 4, 2020, 6:56 p.m. | OK | PyPy 3 | TESTS | 27 | 202 | 15462400 | ||
94721991 | IngaleAnkur10 | C | Oct. 4, 2020, 9:31 p.m. | OK | Python 3 | TESTS | 27 | 280 | 614400 | ||
94714223 | snorlex | C | Oct. 4, 2020, 6:49 p.m. | OK | Python 3 | TESTS | 27 | 342 | 409600 | ||
94717431 | sh1194 | C | Oct. 4, 2020, 7:37 p.m. | OK | Python 3 | TESTS | 27 | 342 | 614400 | ||
94726075 | mkawa2 | C | Oct. 5, 2020, 12:27 a.m. | OK | Python 3 | TESTS | 27 | 342 | 4915200 | ||
94706444 | devesh1102 | C | Oct. 4, 2020, 5:52 p.m. | OK | Python 3 | TESTS | 27 | 343 | 6451200 | ||
94734510 | wolpiskerter | C | Oct. 5, 2020, 4:19 a.m. | OK | Python 3 | TESTS | 27 | 343 | 6656000 | ||
94734425 | Matrix10 | C | Oct. 5, 2020, 4:17 a.m. | OK | Python 3 | TESTS | 27 | 358 | 4403200 | ||
94734149 | The_New_Kid | C | Oct. 5, 2020, 4:11 a.m. | OK | Python 3 | TESTS | 27 | 358 | 4505600 | ||
94702736 | smf | C | Oct. 4, 2020, 5:38 p.m. | OK | Python 3 | TESTS | 27 | 389 | 8396800 | ||
94716065 | Gausstein | C | Oct. 4, 2020, 7:14 p.m. | OK | Python 3 | TESTS | 27 | 467 | 8704000 | ||
94701344 | simanman | C | Oct. 4, 2020, 5:33 p.m. | OK | Ruby | TESTS | 27 | 654 | 8294400 | ||
94715252 | LeoRiether | C | Oct. 4, 2020, 7:02 p.m. | OK | Rust | TESTS | 27 | 46 | 1228800 |
Back to search problems