Codeforces Round 191 (Div. 2)

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
327 Codeforces Round 191 (Div. 2) FINISHED False 7200 358882199 July 4, 2013, 12:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3224 ) C Magic Five PROGRAMMING combinatorics math 1700

B'There is a long plate s containing n digits. Iahub wants to delete some digits (possibly none, but he is not allowed to delete all the digits) to form his "magic number" on the plate, a number that is divisible by 5. Note that, the resulting number may contain leading zeros. Now Iahub wants to count the number of ways he can obtain magic number, modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). Two ways are different, if the set of deleted positions in s differs. Look at the input part of the statement, s is given in a special form. In the first line you 're given a string a (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|a| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), containing digits only. In the second line you 're given an integer k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The plate s is formed by concatenating k copies of a together. That is n xe2 x80 x89= xe2 x80 x89|a| xc2 xb7k. Print a single integer -- the required number of ways modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). In the first case, there are four possible ways to make a number that is divisible by 5: 5, 15, 25 and 125. In the second case, remember to concatenate the copies of a. The actual plate is 1399013990. In the third case, except deleting all digits, any choice will do. Therefore there are 26 xe2 x80 x89- xe2 x80 x891 xe2 x80 x89= xe2 x80 x8963 possible ways to delete digits.'...

Tutorials

fegh

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27449736 vjudge4 C May 30, 2017, 2:07 p.m. OK FPC TESTS 33 30 921600 1700
24564307 tieuchanlong C Feb. 10, 2017, 7:16 a.m. OK FPC TESTS 33 30 1945600 1700
26336345 vjudge2 C April 13, 2017, 12:07 p.m. OK FPC TESTS 33 248 2252800 1700
23373688 dailong C Dec. 28, 2016, 8:40 a.m. OK FPC TESTS 33 624 1945600 1700
29115115 monggo1995 C Aug. 2, 2017, 2:43 a.m. OK GNU C TESTS 33 92 2355200 1700
29115174 oilover C Aug. 2, 2017, 2:46 a.m. OK GNU C TESTS 33 278 2355200 1700
29516903 vjudge5 C Aug. 17, 2017, 3:08 a.m. OK GNU C++ TESTS 33 30 0 1700
27444130 vjudge5 C May 30, 2017, 9:20 a.m. OK GNU C++ TESTS 33 30 0 1700
27444099 hongzhiyin C May 30, 2017, 9:19 a.m. OK GNU C++ TESTS 33 30 0 1700
27447993 vjudge1 C May 30, 2017, 12:22 p.m. OK GNU C++ TESTS 33 30 102400 1700
27447158 vjudge1 C May 30, 2017, 11:35 a.m. OK GNU C++ TESTS 33 30 102400 1700
19513398 wangdequan127 C July 30, 2016, 8:27 a.m. OK GNU C++ TESTS 33 30 102400 1700
26082146 vjudge5 C April 2, 2017, 4:37 p.m. OK GNU C++ TESTS 33 30 1945600 1700
26082139 vjudge5 C April 2, 2017, 4:37 p.m. OK GNU C++ TESTS 33 30 1945600 1700
26082037 vjudge4 C April 2, 2017, 4:30 p.m. OK GNU C++ TESTS 33 30 1945600 1700
26082011 vjudge1 C April 2, 2017, 4:28 p.m. OK GNU C++ TESTS 33 30 1945600 1700
58550518 rainboy C Aug. 10, 2019, 7:30 p.m. OK GNU C11 TESTS 33 62 102400 1700
39259233 LudwigVanBeethoven C June 15, 2018, 6:46 a.m. OK GNU C11 TESTS 33 404 102400 1700
27674860 ZzZZzzzZZZZZzzzzzzzz C June 8, 2017, 3:52 p.m. OK GNU C++11 TESTS 33 30 307200 1700
22645867 magdy.hasan C Dec. 1, 2016, 6:03 p.m. OK GNU C++11 TESTS 33 30 921600 1700
20541048 MedoN11 C Sept. 11, 2016, 10:35 p.m. OK GNU C++11 TESTS 33 30 921600 1700
28491318 vjudge1 C July 13, 2017, 6:01 a.m. OK GNU C++11 TESTS 33 30 2150400 1700
26784306 Yimismi C May 1, 2017, 11:19 a.m. OK GNU C++11 TESTS 33 30 2355200 1700
43070670 Hiumin C Sept. 19, 2018, 8:59 a.m. OK GNU C++11 TESTS 33 60 512000 1700
20605391 _Madiyar C Sept. 14, 2016, 4:54 a.m. OK GNU C++11 TESTS 33 60 1024000 1700
23734560 theodor.moroianu C Jan. 12, 2017, 9:43 a.m. OK GNU C++11 TESTS 33 60 2150400 1700
57895270 lopare C July 28, 2019, 1:18 p.m. OK GNU C++11 TESTS 33 62 0 1700
63428108 vjudge2 C Oct. 26, 2019, 8:24 a.m. OK GNU C++11 TESTS 33 62 102400 1700
27707390 3_Problems_Everyday C June 10, 2017, 1:48 p.m. OK GNU C++14 TESTS 33 30 307200 1700
29817324 rr_ C Aug. 27, 2017, 1:38 a.m. OK GNU C++14 TESTS 33 30 307200 1700
27410610 Minnakhmetov C May 28, 2017, 11:13 a.m. OK GNU C++14 TESTS 33 30 921600 1700
31274679 ryuga222 C Oct. 13, 2017, 12:48 p.m. OK GNU C++14 TESTS 33 30 1024000 1700
25450322 Pluto.syah C March 13, 2017, 9:27 a.m. OK GNU C++14 TESTS 33 30 2048000 1700
24802119 Shiina C Feb. 19, 2017, 12:45 p.m. OK GNU C++14 TESTS 33 30 2048000 1700
29182079 vjudge5 C Aug. 4, 2017, 3:20 a.m. OK GNU C++14 TESTS 33 30 2457600 1700
29275525 Flash-boy C Aug. 8, 2017, 1:56 a.m. OK GNU C++14 TESTS 33 30 2457600 1700
23587315 Indecchi C Jan. 6, 2017, 2:33 p.m. OK GNU C++14 TESTS 33 30 2969600 1700
24613974 greedy_me C Feb. 12, 2017, 5:39 p.m. OK GNU C++14 TESTS 33 30 4300800 1700
37700760 GaryYe C April 29, 2018, 5:35 a.m. OK GNU C++17 TESTS 33 30 3481600 1700
49192351 vjudge5 C Jan. 30, 2019, 8:47 a.m. OK GNU C++17 TESTS 33 30 9318400 1700
66263890 gamegame C Dec. 4, 2019, 9:34 a.m. OK GNU C++17 TESTS 33 60 307200 1700
50418295 AlimovDavron C Feb. 24, 2019, 7:47 a.m. OK GNU C++17 TESTS 33 62 102400 1700
43694186 vjudge1 C Oct. 2, 2018, 3:44 p.m. OK GNU C++17 TESTS 33 62 102400 1700
40773000 1cocacolaman C July 26, 2018, 9:32 a.m. OK GNU C++17 TESTS 33 62 102400 1700
53776213 ruo C May 5, 2019, 8:12 a.m. OK GNU C++17 TESTS 33 62 102400 1700
54390498 yuhta C May 19, 2019, 3:57 p.m. OK GNU C++17 TESTS 33 62 102400 1700
40770922 dawn_LL C July 26, 2018, 8:32 a.m. OK GNU C++17 TESTS 33 62 102400 1700
67405484 Chaska C Dec. 22, 2019, 6:11 a.m. OK GNU C++17 TESTS 33 62 307200 1700
51482334 tsumit023 C March 19, 2019, 12:07 p.m. OK Java 8 TESTS 33 218 0 1700
69197949 sakt_coder C Jan. 20, 2020, 3:31 p.m. OK Java 8 TESTS 33 248 0 1700
40927357 ZeyadKhattab C July 29, 2018, 7:36 p.m. OK Java 8 TESTS 33 248 0 1700
31704991 IntueorDaniel C Oct. 25, 2017, 10:10 a.m. OK Java 8 TESTS 33 248 0 1700
30037950 dreamplay C Sept. 3, 2017, 2:48 p.m. OK Java 8 TESTS 33 248 0 1700
58550519 Dukkha C Aug. 10, 2019, 7:30 p.m. OK Java 8 TESTS 33 278 0 1700
29822673 bhishma C Aug. 27, 2017, 9:12 a.m. OK Java 8 TESTS 33 280 0 1700
59960509 saurabhs1206 C Sept. 3, 2019, 5:51 p.m. OK Java 8 TESTS 33 310 0 1700
30036539 dreamplay C Sept. 3, 2017, 1:51 p.m. OK Java 8 TESTS 33 310 0 1700
31388048 Hoda_Hisham C Oct. 16, 2017, 10:37 a.m. OK Java 8 TESTS 33 312 20275200 1700
26068958 vjudge2 C April 2, 2017, 4:13 a.m. OK JavaScript TESTS 33 62 6041600 1700
26068949 99hgz C April 2, 2017, 4:12 a.m. OK JavaScript TESTS 33 62 6041600 1700
34832011 hAtchiko C Feb. 2, 2018, 8:52 a.m. OK MS C++ TESTS 33 30 3891200 1700
28165752 cleverhero C June 30, 2017, 6:55 a.m. OK MS C++ TESTS 33 30 3993600 1700
43081807 vjudge3 C Sept. 19, 2018, 2:12 p.m. OK MS C++ TESTS 33 62 512000 1700
24803398 vjudge1 C Feb. 19, 2017, 1:50 p.m. OK MS C++ TESTS 33 62 2150400 1700
28500539 vjudge2 C July 13, 2017, 11:31 a.m. OK MS C++ TESTS 33 62 2252800 1700
54754890 vjudge2 C May 28, 2019, 2:33 p.m. OK MS C++ TESTS 33 92 102400 1700
41259091 vjudge5 C Aug. 6, 2018, 12:55 a.m. OK MS C++ TESTS 33 92 102400 1700
59117863 vjudge5 C Aug. 20, 2019, 2:54 a.m. OK MS C++ TESTS 33 92 307200 1700
59117852 511019727 C Aug. 20, 2019, 2:54 a.m. OK MS C++ TESTS 33 92 307200 1700
45169349 vjudge2 C Nov. 1, 2018, 12:16 p.m. OK MS C++ TESTS 33 92 307200 1700
19608479 Yash_ C Aug. 4, 2016, 3:31 a.m. OK PyPy 2 TESTS 33 434 1126400 1700
30021232 Metryk C Sept. 2, 2017, 10:03 p.m. OK PyPy 2 TESTS 33 498 3379200 1700
41588643 Onesh0t C Aug. 14, 2018, 12:53 p.m. OK PyPy 2 TESTS 33 528 2764800 1700
41588517 Onesh0t C Aug. 14, 2018, 12:48 p.m. OK PyPy 2 TESTS 33 560 512000 1700
26143681 0w1 C April 5, 2017, 12:54 p.m. OK PyPy 3 TESTS 33 248 24371200 1700
63657812 rishus23 C Oct. 28, 2019, 1:12 p.m. OK PyPy 3 TESTS 33 340 5222400 1700
69265941 Anish1712 C Jan. 21, 2020, 6:37 p.m. OK PyPy 3 TESTS 33 342 2764800 1700
65704729 UTMoonlight C Nov. 25, 2019, 12:11 p.m. OK PyPy 3 TESTS 33 374 4300800 1700
45930838 sagami C Nov. 18, 2018, 5:03 p.m. OK Python 2 TESTS 33 374 1740800 1700
35859872 ______n______ C March 2, 2018, 9:29 p.m. OK Python 2 TESTS 33 904 4812800 1700
35859860 ______u______ C March 2, 2018, 9:28 p.m. OK Python 2 TESTS 33 904 4812800 1700
35859453 _____i_____ C March 2, 2018, 9:20 p.m. OK Python 2 TESTS 33 904 4812800 1700
35859368 _____k_____ C March 2, 2018, 9:18 p.m. OK Python 2 TESTS 33 904 4812800 1700
35855569 ______h______ C March 2, 2018, 8:03 p.m. OK Python 2 TESTS 33 904 4812800 1700
35855518 ______k______ C March 2, 2018, 8:02 p.m. OK Python 2 TESTS 33 904 4812800 1700
35855189 ______i______ C March 2, 2018, 7:56 p.m. OK Python 2 TESTS 33 904 4812800 1700
35848346 ______M______ C March 2, 2018, 4:56 p.m. OK Python 2 TESTS 33 904 4812800 1700
42135191 Mk_Python_v1 C Aug. 26, 2018, 10:50 p.m. OK Python 3 TESTS 33 310 204800 1700
24749728 felipe17 C Feb. 18, 2017, 4:01 a.m. OK Python 3 TESTS 33 778 4915200 1700
37572810 nowyyz C April 24, 2018, 12:50 p.m. OK Python 3 TESTS 33 842 7270400 1700
39074776 nitixkrai C June 9, 2018, 5:02 p.m. OK Python 3 TESTS 33 872 2867200 1700
49864161 limbrian32 C Feb. 13, 2019, 11:15 a.m. OK Python 3 TESTS 33 902 2764800 1700
40359407 vishnu98dasu C July 14, 2018, 10:57 p.m. OK Python 3 TESTS 33 904 204800 1700
37870767 abrunoaa C May 3, 2018, 7:44 p.m. OK Python 3 TESTS 33 934 7270400 1700
63657865 rishus23 C Oct. 28, 2019, 1:13 p.m. OK Python 3 TESTS 33 966 2252800 1700
37870773 abrunoaa C May 3, 2018, 7:44 p.m. OK Python 3 TESTS 33 966 7270400 1700

remove filters

Back to search problems