Codeforces Round 237 (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
404 Codeforces Round 237 (Div. 2) FINISHED False 7200 336580199 March 19, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2157 ) D Minesweeper 1D PROGRAMMING dp implementation 2200

B'Game "Minesweeper 1D" is played on a line of squares, the line 's height is 1 square, the line 's width is n squares. Some of the squares contain bombs. If a square doesn 't contain a bomb, then it contains a number from 0 to 2 -- the total number of bombs in adjacent squares. For example, the correct field to play looks like that: 001*2***101*. The cells that are marked with "*" contain bombs. Note that on the correct field the numbers represent the number of bombs in adjacent cells. For example, field 2* is not correct, because cell with value 2 must have two adjacent cells with bombs. Valera wants to make a correct field to play "Minesweeper 1D". He has already painted a squared field with width of n cells, put several bombs on the field and wrote numbers into some cells. Now he wonders how many ways to fill the remaining cells with bombs and numbers are there if we should get a correct field in the end. The first line contains sequence of characters without spaces s1s2... sn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106), containing only characters "*", "?" and digits "0", "1" or "2". If character si equals "*", then the i-th cell of the field contains a bomb. If character si equals "?", then Valera hasn 't yet decided what to put in the i-th cell. Character si, that is equal to a digit, represents the digit written in the i-th square. Print a single integer -- the number of ways Valera can fill the empty cells and get a correct field. As the answer can be rather large, print it modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). In the first test sample you can get the following correct fields: 001**1, 001***, 001*2*, 001*10.'...

Tutorials

Codeforces Round #237 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
6102583 cpy D March 22, 2014, 6:55 a.m. OK D TESTS 40 1013 145408000 2200
6102867 cpy D March 22, 2014, 7:43 a.m. OK D TESTS 40 1044 154419200 2200
6102622 cpy D March 22, 2014, 7 a.m. OK D TESTS 40 1045 154419200 2200
6243147 Ramp D April 2, 2014, 2:16 p.m. OK Delphi TESTS 40 124 42086400 2200
6089994 aandrukhovich D March 20, 2014, 10:31 a.m. OK Delphi TESTS 40 124 42496000 2200
6086731 MrJigan1488 D March 20, 2014, 5:58 a.m. OK Delphi TESTS 40 327 64102400 2200
6123883 Al2K D March 23, 2014, 9:25 a.m. OK Delphi TESTS 40 639 66252800 2200
6099196 AHTuTTuTyX D March 21, 2014, 2:25 p.m. OK Delphi TESTS 40 655 42188800 2200
6335157 vuonghy2442 D April 13, 2014, 5:09 a.m. OK FPC TESTS 40 31 13414400 2200
9443595 BenderRodriguez D Jan. 16, 2015, 1:16 p.m. OK FPC TESTS 40 31 21401600 2200
9443446 BenderRodriguez D Jan. 16, 2015, 12:55 p.m. OK FPC TESTS 40 31 21401600 2200
6157567 Jicote D March 26, 2014, 9:36 p.m. OK FPC TESTS 40 31 21401600 2200
6100585 Sonechko D March 21, 2014, 7:46 p.m. OK FPC TESTS 40 46 17408000 2200
10191383 Fekete D March 7, 2015, 2:52 p.m. OK FPC TESTS 40 46 21401600 2200
9443586 BenderRodriguez D Jan. 16, 2015, 1:15 p.m. OK FPC TESTS 40 46 21401600 2200
6089848 clock D March 20, 2014, 10:10 a.m. OK FPC TESTS 40 46 22425600 2200
6083918 xgrizx1 D March 19, 2014, 8:55 p.m. OK FPC TESTS 40 61 49459200 2200
24091516 liangziqi D Jan. 24, 2017, 12:56 p.m. OK FPC TESTS 40 62 38092800 2200
6547695 waterfall D May 5, 2014, 5:54 a.m. OK GNU C TESTS 40 46 1024000 2200
6124872 gaozihangacm D March 23, 2014, 11:56 a.m. OK GNU C TESTS 40 46 1024000 2200
6102087 wuqingxin D March 22, 2014, 5:08 a.m. OK GNU C TESTS 40 46 21094400 2200
6320713 vis10326 D April 11, 2014, 6:48 a.m. OK GNU C TESTS 40 62 25088000 2200
14019605 130705009 D Nov. 2, 2015, 8:34 a.m. OK GNU C++ TESTS 40 15 0 2200
6084747 synapse D March 19, 2014, 11:55 p.m. OK GNU C++ TESTS 40 30 5017600 2200
41233016 floatshadow D Aug. 5, 2018, 5:18 a.m. OK GNU C++ TESTS 40 31 0 2200
6191350 Miracle D March 30, 2014, 2:02 p.m. OK GNU C++ TESTS 40 31 0 2200
6126035 zhengweijian D March 23, 2014, 3 p.m. OK GNU C++ TESTS 40 31 0 2200
6124747 zhengweijian D March 23, 2014, 11:43 a.m. OK GNU C++ TESTS 40 31 0 2200
8755027 vjudge4 D Nov. 19, 2014, 12:10 p.m. OK GNU C++ TESTS 40 31 1024000 2200
8135724 yubowenok D Oct. 8, 2014, 2:13 a.m. OK GNU C++ TESTS 40 31 1024000 2200
6460373 vjudge2 D April 24, 2014, 1:20 p.m. OK GNU C++ TESTS 40 31 1024000 2200
6194548 RNS_MHB D March 31, 2014, 2:47 a.m. OK GNU C++ TESTS 40 31 1024000 2200
6092059 niyaznigmatul D March 20, 2014, 2:47 p.m. OK GNU C++0x TESTS 40 31 0 2200
6097196 Flandre_Scarlet D March 21, 2014, 8:45 a.m. OK GNU C++0x TESTS 40 31 14336000 2200
9328262 Duxar D Dec. 30, 2014, 11:04 p.m. OK GNU C++0x TESTS 40 46 0 2200
6079076 xywy.1992 D March 19, 2014, 5:13 p.m. OK GNU C++0x TESTS 40 46 1024000 2200
6095276 mruxim D March 20, 2014, 9:43 p.m. OK GNU C++0x TESTS 40 46 14643200 2200
6148085 cebrusfs D March 26, 2014, 1:52 p.m. OK GNU C++0x TESTS 40 46 16998400 2200
6097367 CyberZHG D March 21, 2014, 9:21 a.m. OK GNU C++0x TESTS 40 46 20992000 2200
6201055 l1n4r D March 31, 2014, 11:48 p.m. OK GNU C++0x TESTS 40 46 21094400 2200
6174332 nic11 D March 29, 2014, 2:45 p.m. OK GNU C++0x TESTS 40 46 21094400 2200
6100975 nhtrnm D March 21, 2014, 9:45 p.m. OK GNU C++0x TESTS 40 46 22630400 2200
59908590 rainboy D Sept. 2, 2019, 4:21 p.m. OK GNU C11 TESTS 40 108 1024000 2200
17532584 vjudge4 D April 27, 2016, 8:43 a.m. OK GNU C++11 TESTS 40 15 4096000 2200
20339426 vjudge5 D Sept. 2, 2016, 11:26 a.m. OK GNU C++11 TESTS 40 30 21094400 2200
59393899 lxrtxdy D Aug. 24, 2019, 9:36 a.m. OK GNU C++11 TESTS 40 31 0 2200
59393888 zrmpaul D Aug. 24, 2019, 9:36 a.m. OK GNU C++11 TESTS 40 31 0 2200
57891341 lopare D July 28, 2019, 11:56 a.m. OK GNU C++11 TESTS 40 31 0 2200
43232338 cicos D Sept. 22, 2018, 5:31 a.m. OK GNU C++11 TESTS 40 31 0 2200
43231894 cicos D Sept. 22, 2018, 4:49 a.m. OK GNU C++11 TESTS 40 31 0 2200
43229543 luogu_bot1 D Sept. 22, 2018, 12:36 a.m. OK GNU C++11 TESTS 40 31 0 2200
43035476 djh123 D Sept. 18, 2018, 1:26 p.m. OK GNU C++11 TESTS 40 31 0 2200
59394004 zrmpaul D Aug. 24, 2019, 9:38 a.m. OK GNU C++11 TESTS 40 31 0 2200
34341589 k.k.k.k.k D Jan. 20, 2018, 6:50 a.m. OK GNU C++14 TESTS 40 30 3993600 2200
22572308 yashar_sb_sb D Nov. 28, 2016, 11:46 a.m. OK GNU C++14 TESTS 40 31 1024000 2200
22572572 yashar_sb_sb D Nov. 28, 2016, 11:58 a.m. OK GNU C++14 TESTS 40 31 1024000 2200
25663277 Daryusz D March 20, 2017, 10:30 a.m. OK GNU C++14 TESTS 40 31 3993600 2200
29224736 DOUB7E D Aug. 5, 2017, 5:45 p.m. OK GNU C++14 TESTS 40 31 18944000 2200
39190689 jackyan D June 12, 2018, 12:02 p.m. OK GNU C++14 TESTS 40 31 20992000 2200
69424669 Theofratus D Jan. 23, 2020, 3:25 p.m. OK GNU C++14 TESTS 40 31 22118400 2200
29480357 tystrwor D Aug. 15, 2017, 11:48 a.m. OK GNU C++14 TESTS 40 31 22937600 2200
34957533 Bartholomew D Feb. 6, 2018, 12:10 a.m. OK GNU C++14 TESTS 40 31 39014400 2200
29982597 danya.smelskiy D Sept. 1, 2017, 2:27 p.m. OK GNU C++14 TESTS 40 31 42188800 2200
50605455 Catmoonlight D Feb. 28, 2019, 2:21 p.m. OK GNU C++17 TESTS 40 31 4608000 2200
63634085 Mahdi_Shokoufi D Oct. 28, 2019, 7:31 a.m. OK GNU C++17 TESTS 40 31 22118400 2200
41637248 tang666 D Aug. 16, 2018, 1:43 a.m. OK GNU C++17 TESTS 40 46 13004800 2200
63432730 shenqihao D Oct. 26, 2019, 9:37 a.m. OK GNU C++17 TESTS 40 46 21094400 2200
63234983 BlahDuckling747 D Oct. 23, 2019, 12:03 p.m. OK GNU C++17 TESTS 40 46 21094400 2200
52991051 subhihazem D April 18, 2019, 10:12 p.m. OK GNU C++17 TESTS 40 46 25088000 2200
63417507 vjudge2 D Oct. 26, 2019, 5:02 a.m. OK GNU C++17 TESTS 40 46 33075200 2200
44688224 vjudge5 D Oct. 22, 2018, 10:46 a.m. OK GNU C++17 TESTS 40 46 33280000 2200
59796250 vjudge5 D Aug. 31, 2019, 8:45 a.m. OK GNU C++17 TESTS 40 46 41062400 2200
68982047 Test2311 D Jan. 17, 2020, 11:07 a.m. OK GNU C++17 TESTS 40 61 34201600 2200
14216191 behzad.nouri D Nov. 12, 2015, 3:45 p.m. OK Haskell TESTS 40 234 10752000 2200
14216081 behzad.nouri D Nov. 12, 2015, 3:37 p.m. OK Haskell TESTS 40 1231 346931200 2200
14216094 behzad.nouri D Nov. 12, 2015, 3:39 p.m. OK Haskell TESTS 40 1247 312217600 2200
6146404 mashinist D March 26, 2014, 9:50 a.m. OK Java 6 TESTS 40 109 28876800 2200
6108786 Jedi_knight D March 22, 2014, 3:53 p.m. OK Java 6 TESTS 40 124 0 2200
6255596 hiukim D April 4, 2014, 4:18 a.m. OK Java 6 TESTS 40 155 0 2200
6259918 cmouli D April 4, 2014, 6:18 p.m. OK Java 6 TESTS 40 249 102400 2200
6108343 Jedi_knight D March 22, 2014, 3:48 p.m. OK Java 6 TESTS 40 264 50483200 2200
6088802 I_love_Malika D March 20, 2014, 7:48 a.m. OK Java 6 TESTS 40 280 62668800 2200
6100237 GR1n D March 21, 2014, 6:34 p.m. OK Java 6 TESTS 40 405 62668800 2200
6084138 alexey.kasatkin D March 19, 2014, 9:34 p.m. OK Java 7 TESTS 40 93 0 2200
8605694 pitfall D Nov. 7, 2014, 3:34 p.m. OK Java 7 TESTS 40 124 14643200 2200
6096304 delphifirst D March 21, 2014, 4:51 a.m. OK Java 7 TESTS 40 140 0 2200
6096299 delphifirst D March 21, 2014, 4:48 a.m. OK Java 7 TESTS 40 140 0 2200
9373842 alibaba D Jan. 6, 2015, 4:02 p.m. OK Java 7 TESTS 40 140 68812800 2200
15413301 DukeOfYork D Jan. 17, 2016, 10:45 a.m. OK Java 7 TESTS 40 156 0 2200
6460634 swim_coder D April 24, 2014, 1:55 p.m. OK Java 7 TESTS 40 171 0 2200
6086454 KNIGHT0X300 D March 20, 2014, 5:17 a.m. OK Java 7 TESTS 40 171 69120000 2200
6460661 swim_coder D April 24, 2014, 1:59 p.m. OK Java 7 TESTS 40 186 0 2200
6083354 Cricycle D March 19, 2014, 7:39 p.m. OK Java 7 TESTS 40 186 0 2200
24524767 Ahmad_Elsagheer D Feb. 8, 2017, 11:20 a.m. OK Java 8 TESTS 40 171 26828800 2200
8274303 zyt144 D Oct. 16, 2014, 11:27 p.m. OK Java 8 TESTS 40 218 1536000 2200
6124605 Sokolov D March 23, 2014, 11:22 a.m. OK Java 8 TESTS 40 234 57856000 2200
68412347 supriya14 D Jan. 8, 2020, 5:30 p.m. OK Java 8 TESTS 40 249 30924800 2200
38565312 amnesiac_dusk D May 23, 2018, 2:39 p.m. OK Java 8 TESTS 40 280 35532800 2200
51957445 caoash D March 29, 2019, 3:56 a.m. OK Java 8 TESTS 40 312 79052800 2200
28669863 El5dewy D July 18, 2017, 1:38 p.m. OK Java 8 TESTS 40 326 65638400 2200
62189251 LAKOUAM_IMAD D Oct. 9, 2019, 9:14 a.m. OK Java 8 TESTS 40 327 76595200 2200
45035584 ViciousCoder D Oct. 29, 2018, 7:30 a.m. OK Java 8 TESTS 40 327 78950400 2200
44402119 Taran_1407 D Oct. 16, 2018, 1:16 p.m. OK Java 8 TESTS 40 358 69222400 2200
35870203 ______u______ D March 3, 2018, 6:22 a.m. OK JavaScript TESTS 40 46 11264000 2200
35870084 ______n______ D March 3, 2018, 6:22 a.m. OK JavaScript TESTS 40 46 11264000 2200
35864038 _____i_____ D March 2, 2018, 11 p.m. OK JavaScript TESTS 40 46 11264000 2200
35863977 _____k_____ D March 2, 2018, 10:58 p.m. OK JavaScript TESTS 40 46 11264000 2200
35860793 ______k______ D March 2, 2018, 9:49 p.m. OK JavaScript TESTS 40 46 11264000 2200
35860783 ______h______ D March 2, 2018, 9:49 p.m. OK JavaScript TESTS 40 46 11264000 2200
35860481 ______i______ D March 2, 2018, 9:42 p.m. OK JavaScript TESTS 40 46 11264000 2200
35858722 ______M______ D March 2, 2018, 9:05 p.m. OK JavaScript TESTS 40 46 11264000 2200
6689631 dabbler D May 23, 2014, 9:21 p.m. OK JavaScript TESTS 40 62 5529600 2200
6689605 dabbler D May 23, 2014, 9:09 p.m. OK JavaScript TESTS 40 624 5427200 2200
6729826 og.kostya D May 28, 2014, 5:06 p.m. OK MS C# TESTS 40 93 5222400 2200
6457511 antofik D April 23, 2014, 11:15 p.m. OK MS C# TESTS 40 93 44646400 2200
17832939 Mem D May 10, 2016, 2:17 p.m. OK MS C# TESTS 40 109 53657600 2200
6371749 azukun D April 16, 2014, 6:30 a.m. OK MS C# TESTS 40 140 45875200 2200
6543457 kingofnumbers D May 4, 2014, 9:32 a.m. OK MS C++ TESTS 40 31 12902400 2200
6096229 a654889339 D March 21, 2014, 4:31 a.m. OK MS C++ TESTS 40 31 42905600 2200
6300362 acrux D April 8, 2014, 8:51 a.m. OK MS C++ TESTS 40 46 819200 2200
10225339 a88027180 D March 10, 2015, 10:30 a.m. OK MS C++ TESTS 40 46 2048000 2200
14213389 yeahpeng D Nov. 12, 2015, 12:21 p.m. OK MS C++ TESTS 40 46 6553600 2200
6092555 Scorpy D March 20, 2014, 3:57 p.m. OK MS C++ TESTS 40 46 8908800 2200
9428448 Alstom_Citadis D Jan. 14, 2015, 9:29 a.m. OK MS C++ TESTS 40 46 15564800 2200
6140852 Mark_tven D March 25, 2014, 5:55 p.m. OK MS C++ TESTS 40 46 21094400 2200
8167362 vagnard D Oct. 10, 2014, 3:54 p.m. OK MS C++ TESTS 40 46 22016000 2200
6122606 TonySnark D March 23, 2014, 6:16 a.m. OK MS C++ TESTS 40 46 22016000 2200
65582150 IPRIT D Nov. 23, 2019, 11:21 a.m. OK MS C++ 2017 TESTS 40 61 41062400 2200
66415898 vjudge3 D Dec. 6, 2019, 5:05 p.m. OK MS C++ 2017 TESTS 40 62 13004800 2200
63397859 csu-caiji D Oct. 25, 2019, 5:16 p.m. OK MS C++ 2017 TESTS 40 77 33280000 2200
63270469 vjudge3 D Oct. 24, 2019, 3:41 a.m. OK MS C++ 2017 TESTS 40 156 33075200 2200
63271065 vjudge3 D Oct. 24, 2019, 4:08 a.m. OK MS C++ 2017 TESTS 40 171 33382400 2200
47374402 Dmitriy.Belichenko D Dec. 22, 2018, 4:14 p.m. OK PyPy 3 TESTS 40 186 6656000 2200
6082725 Danstahr D March 19, 2014, 6:42 p.m. OK Python 2 TESTS 40 1513 3072000 2200
6142810 hza D March 26, 2014, 7:28 a.m. OK Python 3 TESTS 40 920 2867200 2200
40095381 yugle7 D July 8, 2018, 9:26 p.m. OK Python 3 TESTS 40 951 3174400 2200
6143368 hza D March 26, 2014, 7:32 a.m. OK Python 3 TESTS 40 1933 2867200 2200
6093020 UnkelTao D March 20, 2014, 5:14 p.m. OK Ruby TESTS 40 1403 2560000 2200
6093037 UnkelTao D March 20, 2014, 5:16 p.m. OK Ruby TESTS 40 1404 2355200 2200
6093049 UnkelTao D March 20, 2014, 5:19 p.m. OK Ruby TESTS 40 1419 2355200 2200
6093027 UnkelTao D March 20, 2014, 5:14 p.m. OK Ruby TESTS 40 1434 2355200 2200

remove filters

Back to search problems