Codeforces Round 202 (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
349 Codeforces Round 202 (Div. 2) FINISHED False 7200 351527399 Sept. 27, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14007 ) B Color the Fence PROGRAMMING data structures dp greedy implementation 1700

B"Igor has fallen in love with Tanya. Now Igor wants to show his feelings and write a number on the fence opposite to Tanya's house. Igor thinks that the larger the number is, the more chance to win Tanya's heart he has. Unfortunately, Igor could only get v liters of paint. He did the math and concluded that digit d requires ad liters of paint. Besides, Igor heard that Tanya doesn't like zeroes. That's why Igor won't use them in his number. Help Igor find the maximum number he can write on the fence. The first line contains a positive integer v (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89v xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). The second line contains nine positive integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89a9 (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Print the maximum number Igor can write on the fence. If he has too little paint for any digit (so, he cannot write anything), print -1."...

Tutorials

Editorial for Codeforces Round #202

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
28305447 luckystars B July 5, 2017, 1:50 p.m. OK FPC TESTS 35 92 3072000 1700
68557923 canhtoantpvp B Jan. 10, 2020, 6:07 p.m. OK FPC TESTS 35 92 4608000 1700
65711551 LeVanThuc B Nov. 25, 2019, 2:34 p.m. OK FPC TESTS 35 92 5324800 1700
16264218 k2nt B Feb. 21, 2016, 4:30 p.m. OK FPC TESTS 35 122 1433600 1700
13105793 Diamond_D_Capricornus B Sept. 19, 2015, 5:49 p.m. OK FPC TESTS 35 122 1433600 1700
41895917 chaorenhaha B Aug. 20, 2018, 9:27 a.m. OK FPC TESTS 35 122 4505600 1700
25384470 darkkcyan B March 10, 2017, 4:42 p.m. OK FPC TESTS 35 122 6246400 1700
15694617 Didred B Jan. 31, 2016, 1:06 p.m. OK FPC TESTS 35 124 9420800 1700
16413989 Nikita666 B Feb. 28, 2016, 7:35 p.m. OK FPC TESTS 35 154 1433600 1700
68555841 canhtoanxyz B Jan. 10, 2020, 5:18 p.m. OK FPC TESTS 35 154 4608000 1700
22031087 newbass B Nov. 4, 2016, 9:45 a.m. OK GNU C TESTS 35 30 0 1700
22031031 newbass B Nov. 4, 2016, 9:41 a.m. OK GNU C TESTS 35 30 0 1700
22030934 newbass B Nov. 4, 2016, 9:34 a.m. OK GNU C TESTS 35 30 0 1700
15813422 singh1495 B Feb. 4, 2016, 8:39 p.m. OK GNU C TESTS 35 30 0 1700
22569414 YahnitS B Nov. 28, 2016, 9:06 a.m. OK GNU C TESTS 35 30 1024000 1700
22094270 aditya.todi B Nov. 7, 2016, 12:39 p.m. OK GNU C TESTS 35 30 1024000 1700
17913747 romero-737 B May 14, 2016, 10:36 p.m. OK GNU C TESTS 35 30 2048000 1700
17909947 peruco B May 14, 2016, 4:37 p.m. OK GNU C TESTS 35 30 2048000 1700
17833633 gerardo B May 10, 2016, 3:13 p.m. OK GNU C TESTS 35 60 2867200 1700
22031075 newbass B Nov. 4, 2016, 9:44 a.m. OK GNU C TESTS 35 62 0 1700
22298385 mjhun B Nov. 18, 2016, 1:16 a.m. OK GNU C++ TESTS 35 30 0 1700
27531448 Abdulrahman_hs B June 2, 2017, 8:37 p.m. OK GNU C++ TESTS 35 30 0 1700
16294943 vjudge3 B Feb. 23, 2016, 3:22 p.m. OK GNU C++ TESTS 35 30 0 1700
16258961 vjudge5 B Feb. 21, 2016, 12:59 p.m. OK GNU C++ TESTS 35 30 0 1700
15593335 yasser.alaa.eldin B Jan. 26, 2016, 12:54 p.m. OK GNU C++ TESTS 35 30 0 1700
27048316 unpractised_code B May 12, 2017, 6:43 a.m. OK GNU C++ TESTS 35 30 1024000 1700
19304864 e_coder B July 21, 2016, 3:16 p.m. OK GNU C++ TESTS 35 30 1024000 1700
19278645 forceawakened B July 20, 2016, 11:16 a.m. OK GNU C++ TESTS 35 30 1024000 1700
19205169 vjudge4 B July 18, 2016, 7:32 a.m. OK GNU C++ TESTS 35 30 1024000 1700
19203852 lgr745 B July 18, 2016, 6:43 a.m. OK GNU C++ TESTS 35 30 1024000 1700
22123298 Whatsis B Nov. 9, 2016, 4:08 a.m. OK GNU C11 TESTS 35 92 1024000 1700
39065357 alexey.orlov B June 9, 2018, 9:32 a.m. OK GNU C11 TESTS 35 154 5017600 1700
22831094 ForeverL0ve B Dec. 9, 2016, 10:35 a.m. OK GNU C++11 TESTS 35 30 0 1700
15982220 t1016d B Feb. 13, 2016, 6:08 a.m. OK GNU C++11 TESTS 35 30 0 1700
21060756 Georeth B Oct. 1, 2016, 8:13 a.m. OK GNU C++11 TESTS 35 30 1024000 1700
32089236 khaleesi B Nov. 6, 2017, 7:55 a.m. OK GNU C++11 TESTS 35 30 1024000 1700
31818868 cvele B Oct. 27, 2017, 8:29 p.m. OK GNU C++11 TESTS 35 30 1024000 1700
31237468 Sbengani B Oct. 12, 2017, 10:08 a.m. OK GNU C++11 TESTS 35 30 1024000 1700
27088555 Andrew.Ts B May 13, 2017, 12:20 p.m. OK GNU C++11 TESTS 35 30 1024000 1700
21987940 lord_phoenix B Nov. 2, 2016, 10:18 a.m. OK GNU C++11 TESTS 35 30 1024000 1700
21987873 lord_phoenix B Nov. 2, 2016, 10:14 a.m. OK GNU C++11 TESTS 35 30 1024000 1700
20751530 0ogway B Sept. 19, 2016, 9:48 a.m. OK GNU C++11 TESTS 35 30 1024000 1700
31937998 Dipta_Paul B Nov. 1, 2017, 4:34 a.m. OK GNU C++14 TESTS 35 30 1024000 1700
39437894 kingosak B June 20, 2018, 2:01 p.m. OK GNU C++14 TESTS 35 30 1024000 1700
51026867 rocky112 B March 8, 2019, 11:45 a.m. OK GNU C++14 TESTS 35 30 1024000 1700
30953876 Prometheus B Oct. 2, 2017, 9:43 p.m. OK GNU C++14 TESTS 35 30 1024000 1700
30334250 vjudge1 B Sept. 14, 2017, 5 p.m. OK GNU C++14 TESTS 35 30 1024000 1700
30168575 Eva B Sept. 7, 2017, 12:01 a.m. OK GNU C++14 TESTS 35 30 1024000 1700
29729972 callias B Aug. 24, 2017, 11:38 a.m. OK GNU C++14 TESTS 35 30 1024000 1700
27892337 eat_code B June 18, 2017, 11:12 p.m. OK GNU C++14 TESTS 35 30 1024000 1700
31787039 Sbengani B Oct. 27, 2017, 7:48 a.m. OK GNU C++14 TESTS 35 30 1024000 1700
31092320 abdul135 B Oct. 6, 2017, 7:58 p.m. OK GNU C++14 TESTS 35 30 1024000 1700
68086540 Regulo B Jan. 2, 2020, 4:28 p.m. OK GNU C++17 TESTS 35 30 2048000 1700
56429499 amaterasu58 B July 2, 2019, 11:22 a.m. OK GNU C++17 TESTS 35 30 2969600 1700
56287969 Sisyy B June 29, 2019, 9:05 p.m. OK GNU C++17 TESTS 35 30 2969600 1700
65620973 hrustim25 B Nov. 24, 2019, 6:12 a.m. OK GNU C++17 TESTS 35 30 2969600 1700
49139712 Saurabh303 B Jan. 29, 2019, 9:33 a.m. OK GNU C++17 TESTS 35 30 2969600 1700
69485035 Rohit_1221 B Jan. 24, 2020, 7:11 p.m. OK GNU C++17 TESTS 35 30 2969600 1700
49915731 rachit_raj B Feb. 14, 2019, 4:23 p.m. OK GNU C++17 TESTS 35 30 2969600 1700
50772452 smartandlean B March 4, 2019, 6 a.m. OK GNU C++17 TESTS 35 60 1024000 1700
65236565 zhz520 B Nov. 17, 2019, 7:27 a.m. OK GNU C++17 TESTS 35 60 1024000 1700
51200056 CaseRuten B March 11, 2019, 9:57 p.m. OK GNU C++17 TESTS 35 60 1024000 1700
13301154 ptorstyle_new B Sept. 29, 2015, 4:01 p.m. OK Go TESTS 35 528 87449600 1700
69380139 ashanksingh1997 B Jan. 22, 2020, 7:25 p.m. OK Java 11 TESTS 35 372 0 1700
68414736 sunnycarlos B Jan. 8, 2020, 6:22 p.m. OK Java 11 TESTS 35 436 0 1700
13140725 Trasier B Sept. 22, 2015, 12:46 p.m. OK Java 7 TESTS 35 154 0 1700
13799353 arjunakajoy B Oct. 22, 2015, 8:43 p.m. OK Java 7 TESTS 35 184 0 1700
15029568 DukeOfYork B Dec. 26, 2015, 9:52 a.m. OK Java 7 TESTS 35 218 0 1700
14061186 omarfarhat97 B Nov. 4, 2015, 2:18 p.m. OK Java 7 TESTS 35 218 0 1700
13887058 OmarRadwan B Oct. 27, 2015, 8:23 a.m. OK Java 7 TESTS 35 218 0 1700
18176385 frktry B June 1, 2016, 3:29 a.m. OK Java 7 TESTS 35 248 39014400 1700
18249292 zodiacleo B June 4, 2016, 9:44 p.m. OK Java 7 TESTS 35 248 39321600 1700
18181228 deepraiya17 B June 1, 2016, 11:32 a.m. OK Java 7 TESTS 35 280 39219200 1700
16957946 MazzForces B March 26, 2016, 2:48 p.m. OK Java 7 TESTS 35 280 49254400 1700
18387353 IsAmAre B June 12, 2016, 9:28 a.m. OK Java 7 TESTS 35 310 39116800 1700
44229365 S010M B Oct. 12, 2018, 9:51 p.m. OK Java 8 TESTS 35 216 0 1700
31588941 VerticesEdge B Oct. 22, 2017, 12:18 a.m. OK Java 8 TESTS 35 216 20480000 1700
57944784 Abanish B July 29, 2019, 1:54 p.m. OK Java 8 TESTS 35 218 0 1700
57512128 JCKG B July 22, 2019, 2:14 p.m. OK Java 8 TESTS 35 218 0 1700
51956981 saurabhs1206 B March 29, 2019, 3:24 a.m. OK Java 8 TESTS 35 218 0 1700
49161513 sooraj10 B Jan. 29, 2019, 3:30 p.m. OK Java 8 TESTS 35 218 0 1700
46699103 Zagh B Dec. 6, 2018, 11:17 p.m. OK Java 8 TESTS 35 218 0 1700
46699099 AhmedZaghloul B Dec. 6, 2018, 11:17 p.m. OK Java 8 TESTS 35 218 0 1700
31258140 Hoda_Hisham B Oct. 12, 2017, 6:35 p.m. OK Java 8 TESTS 35 218 0 1700
30036743 sjain281297 B Sept. 3, 2017, 1:59 p.m. OK Java 8 TESTS 35 218 0 1700
36422818 ArJento B March 20, 2018, 12:54 a.m. OK Kotlin TESTS 35 342 21094400 1700
42599473 Skndr801 B Sept. 7, 2018, 3:31 a.m. OK Mono C# TESTS 35 124 3891200 1700
36404601 Shorintwotwo B March 19, 2018, 7:26 a.m. OK Mono C# TESTS 35 248 13004800 1700
50524540 nemars B Feb. 26, 2019, 11:10 a.m. OK Mono C# TESTS 35 1838 19865600 1700
29306587 Skndr B Aug. 9, 2017, 1:12 p.m. OK MS C# TESTS 35 218 20480000 1700
23836371 pomjuice B Jan. 15, 2017, 11:46 a.m. OK MS C# TESTS 35 248 22220800 1700
21359218 Chubcheg B Oct. 11, 2016, 1:04 p.m. OK MS C# TESTS 35 310 22528000 1700
17182446 Mem B April 6, 2016, 8:42 a.m. OK MS C# TESTS 35 372 26624000 1700
27336674 Capitan B May 25, 2017, 12:41 p.m. OK MS C++ TESTS 35 30 1945600 1700
19544533 alex-kozinov B July 31, 2016, 7:56 p.m. OK MS C++ TESTS 35 30 1945600 1700
34504421 Mao_Z B Jan. 24, 2018, 6:01 a.m. OK MS C++ TESTS 35 30 3993600 1700
23113039 asdfghjl B Dec. 18, 2016, 6:37 p.m. OK MS C++ TESTS 35 30 3993600 1700
37551240 lechinhin B April 23, 2018, 1:01 p.m. OK MS C++ TESTS 35 30 4505600 1700
13968153 igor.glushkov B Oct. 31, 2015, 10:33 a.m. OK MS C++ TESTS 35 60 1945600 1700
18150923 jihad_dayoub B May 29, 2016, 8:06 p.m. OK MS C++ TESTS 35 60 3993600 1700
21001407 M.Beic1996 B Sept. 29, 2016, 7:14 p.m. OK MS C++ TESTS 35 62 1945600 1700
19263645 BRAD_BIT B July 19, 2016, 10:05 p.m. OK MS C++ TESTS 35 62 1945600 1700
19263629 Red_Roses B July 19, 2016, 10:04 p.m. OK MS C++ TESTS 35 62 1945600 1700
68640478 vjudge1 B Jan. 12, 2020, 7:21 a.m. OK MS C++ 2017 TESTS 35 278 0 1700
68638939 vjudge4 B Jan. 12, 2020, 6:53 a.m. OK MS C++ 2017 TESTS 35 280 0 1700
51049944 swomack B March 8, 2019, 8:28 p.m. OK MS C++ 2017 TESTS 35 312 7372800 1700
59945452 CtrlAlt B Sept. 3, 2019, 12:51 p.m. OK MS C++ 2017 TESTS 35 872 0 1700
56434958 darkus-_- B July 2, 2019, 1:43 p.m. OK MS C++ 2017 TESTS 35 872 3993600 1700
68640857 vjudge4 B Jan. 12, 2020, 7:28 a.m. OK MS C++ 2017 TESTS 35 904 0 1700
68955696 romil797 B Jan. 16, 2020, 8 p.m. OK Ocaml TESTS 35 62 3686400 1700
45584854 mayakin B Nov. 12, 2018, 7:48 a.m. OK PHP TESTS 35 122 35737600 1700
16208446 zetilovn B Feb. 19, 2016, 4:04 p.m. OK PyPy 2 TESTS 35 248 21811200 1700
50587986 alankrit_singh_1 B Feb. 28, 2019, 5:27 a.m. OK PyPy 2 TESTS 35 280 2048000 1700
68484042 raj1307 B Jan. 10, 2020, 8:57 a.m. OK PyPy 2 TESTS 35 342 17612800 1700
20542625 Yash_ B Sept. 12, 2016, 3:53 a.m. OK PyPy 2 TESTS 35 342 29798400 1700
44741583 introibo B Oct. 23, 2018, 2:55 p.m. OK PyPy 2 TESTS 35 404 29696000 1700
44741514 introibo B Oct. 23, 2018, 2:53 p.m. OK PyPy 2 TESTS 35 404 29900800 1700
51221113 ashok123 B March 12, 2019, 12:29 p.m. OK PyPy 2 TESTS 35 434 29900800 1700
55584232 anshuman16423 B June 15, 2019, 8:32 a.m. OK PyPy 2 TESTS 35 498 29900800 1700
65595859 vjudge3 B Nov. 23, 2019, 3:50 p.m. OK PyPy 2 TESTS 35 530 29900800 1700
52951111 alvaro9650 B April 18, 2019, 11:56 a.m. OK PyPy 3 TESTS 35 310 5427200 1700
36708375 arthurithox B March 29, 2018, 3:35 a.m. OK PyPy 3 TESTS 35 312 30208000 1700
64768903 fzanutto B Nov. 12, 2019, 9:54 p.m. OK PyPy 3 TESTS 35 342 4403200 1700
61461435 manish.17 B Sept. 29, 2019, 8:42 a.m. OK PyPy 3 TESTS 35 342 4403200 1700
55310628 Kausam_1234 B June 8, 2019, 5:22 p.m. OK PyPy 3 TESTS 35 372 13721600 1700
67381494 suchet B Dec. 21, 2019, 4:30 p.m. OK PyPy 3 TESTS 35 404 4915200 1700
67003071 shade1010 B Dec. 16, 2019, 6:43 a.m. OK PyPy 3 TESTS 35 404 12697600 1700
63548976 Kinopitals B Oct. 27, 2019, 11:13 a.m. OK PyPy 3 TESTS 35 404 12800000 1700
63010564 pfft B Oct. 20, 2019, 11:40 a.m. OK PyPy 3 TESTS 35 498 6758400 1700
43238734 ritesh286singh B Sept. 22, 2018, 9:04 a.m. OK PyPy 3 TESTS 35 528 8192000 1700
30954938 Prometheus B Oct. 3, 2017, 12:10 a.m. OK Python 2 TESTS 35 92 1536000 1700
16231117 boyfaceone B Feb. 20, 2016, 2:56 p.m. OK Python 2 TESTS 35 92 1536000 1700
16231152 boyfaceone B Feb. 20, 2016, 2:58 p.m. OK Python 2 TESTS 35 122 1536000 1700
33199036 ytz123 B Dec. 13, 2017, 12:41 a.m. OK Python 2 TESTS 35 124 5529600 1700
35203889 laoliumang B Feb. 13, 2018, 3:23 p.m. OK Python 2 TESTS 35 124 5632000 1700
23661083 Ali.Pi B Jan. 9, 2017, 6:46 a.m. OK Python 2 TESTS 35 124 5632000 1700
23458361 melegy B Dec. 30, 2016, 9:30 p.m. OK Python 2 TESTS 35 124 5632000 1700
18215513 a7_bits B June 2, 2016, 11:33 a.m. OK Python 2 TESTS 35 124 7577600 1700
14812270 elistark B Dec. 15, 2015, 8:19 a.m. OK Python 2 TESTS 35 186 4505600 1700
24214622 armadillo B Jan. 28, 2017, 4:38 a.m. OK Python 2 TESTS 35 342 13619200 1700
28416798 Islam_Atef B July 11, 2017, 12:17 a.m. OK Python 3 TESTS 35 122 8499200 1700
27291334 rprtr258 B May 22, 2017, 10:08 p.m. OK Python 3 TESTS 35 124 1945600 1700
30042065 kidco B Sept. 3, 2017, 7:17 p.m. OK Python 3 TESTS 35 124 2048000 1700
15945278 orailly B Feb. 10, 2016, 5:59 p.m. OK Python 3 TESTS 35 124 6041600 1700
14639286 runekri3 B Dec. 3, 2015, 7:45 p.m. OK Python 3 TESTS 35 154 5939200 1700
32526262 Ostroverkhov_Andrey B Nov. 21, 2017, 1:15 p.m. OK Python 3 TESTS 35 154 6451200 1700
36714528 yash918 B March 29, 2018, 9:33 a.m. OK Python 3 TESTS 35 186 9011200 1700
36714015 Bamal B March 29, 2018, 9:11 a.m. OK Python 3 TESTS 35 186 9011200 1700
36701179 Evil__Coder B March 28, 2018, 6:10 p.m. OK Python 3 TESTS 35 186 9011200 1700
32698713 Ydam B Nov. 27, 2017, 3:04 a.m. OK Python 3 TESTS 35 186 11980800 1700
14269913 Atef B Nov. 15, 2015, 1:52 p.m. OK Ruby TESTS 35 654 15155200 1700
22105992 karthickpdy B Nov. 8, 2016, 5:35 a.m. OK Ruby TESTS 35 1714 1126400 1700
64797006 tuna_salad B Nov. 13, 2019, 1:14 p.m. OK Rust TESTS 35 122 0 1700
64029734 jrodrigues B Nov. 1, 2019, 4:08 p.m. OK Rust TESTS 35 216 29184000 1700
16202955 reldan B Feb. 19, 2016, 2:59 p.m. OK Scala TESTS 35 778 9113600 1700

remove filters

Back to search problems