Codeforces Round 219 (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
373 Codeforces Round 219 (Div. 2) FINISHED False 7200 344879999 Dec. 13, 2013, 2 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2485 ) B Making Sequences is Fun PROGRAMMING binary search implementation math 1600

B"We'll define S(n) for positive integer n as follows: the number of the n's digits in the decimal base. For example, S(893) xe2 x80 x89= xe2 x80 x893, S(114514) xe2 x80 x89= xe2 x80 x896. You want to make a consecutive integer sequence starting from number m (m, xe2 x80 x89m xe2 x80 x89+ xe2 x80 x891, xe2 x80 x89...). But you need to pay S(n) xc2 xb7k to add the number n to the sequence. You can spend a cost up to w, and you want to make the sequence as long as possible. Write a program that tells sequence's maximum length. The first line contains three integers w (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89w xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891016), m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891016), k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Please, do not write the %lld specifier to read or write 64-bit integers in C++. It is preferred to use the cin, cout streams or the %I64d specifier. The first line should contain a single integer -- the answer to the problem."...

Tutorials

Codeforces Round #219 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
5425798 loginef B Dec. 13, 2013, 2:46 p.m. OK Delphi TESTS 35 15 0 1600
5424255 Casio B Dec. 13, 2013, 2:30 p.m. OK Delphi TESTS 35 15 0 1600
5592785 audin1000 B Dec. 31, 2013, 1:59 p.m. OK Delphi TESTS 35 15 102400 1600
5430133 Crysis B Dec. 13, 2013, 3:37 p.m. OK Delphi TESTS 35 15 102400 1600
5432407 ruban B Dec. 13, 2013, 4:35 p.m. OK Delphi TESTS 35 15 8089600 1600
6906636 artem1416 B June 18, 2014, 3:24 p.m. OK Delphi TESTS 35 30 0 1600
5517524 Reventon1 B Dec. 25, 2013, 8:47 a.m. OK FPC TESTS 35 15 0 1600
5473869 andytruong B Dec. 19, 2013, 8:38 a.m. OK FPC TESTS 35 15 0 1600
5457227 Wolfik B Dec. 17, 2013, 7:36 p.m. OK FPC TESTS 35 15 0 1600
5453834 Luqman B Dec. 17, 2013, 7:05 a.m. OK FPC TESTS 35 15 0 1600
5446679 Astreb B Dec. 15, 2013, 6:09 p.m. OK FPC TESTS 35 15 0 1600
7499598 AllCatsAreBeautiful B Aug. 18, 2014, 9:48 a.m. OK FPC TESTS 35 15 0 1600
5997791 Nik_Storm_2010 B March 11, 2014, 4:27 p.m. OK FPC TESTS 35 15 0 1600
5656512 acepeak3 B Jan. 10, 2014, 6:01 p.m. OK FPC TESTS 35 15 0 1600
5629562 Misha100896 B Jan. 6, 2014, 9:12 p.m. OK FPC TESTS 35 15 0 1600
5591034 EternalKevin B Dec. 31, 2013, 9:24 a.m. OK FPC TESTS 35 15 0 1600
11927463 gehad_fathy B July 4, 2015, 10:13 p.m. OK GNU C TESTS 35 15 0 1600
27839362 T.M B June 17, 2017, 6:40 a.m. OK GNU C TESTS 35 15 0 1600
14034796 lucaspk33 B Nov. 2, 2015, 10:45 p.m. OK GNU C TESTS 35 15 0 1600
10540176 omerssahin B April 1, 2015, 9:25 a.m. OK GNU C TESTS 35 15 0 1600
7045495 vjudge1 B July 8, 2014, 7:06 a.m. OK GNU C TESTS 35 15 0 1600
5812887 yyzs1995 B Jan. 26, 2014, 1:40 p.m. OK GNU C TESTS 35 15 0 1600
5772730 ABHISHEK004 B Jan. 22, 2014, 6:36 p.m. OK GNU C TESTS 35 15 0 1600
5528140 subham_kr B Dec. 27, 2013, 4:36 a.m. OK GNU C TESTS 35 15 0 1600
5501841 mike199250 B Dec. 24, 2013, 11:38 a.m. OK GNU C TESTS 35 15 0 1600
5501418 pk. B Dec. 24, 2013, 10:10 a.m. OK GNU C TESTS 35 15 0 1600
5532361 Fefer_Ivan B Dec. 27, 2013, 7:48 p.m. OK GNU C++ TESTS 35 0 0 1600
5444526 alpc123 B Dec. 15, 2013, 10:57 a.m. OK GNU C++ TESTS 35 0 0 1600
5437646 Allen_3 B Dec. 14, 2013, 7:47 a.m. OK GNU C++ TESTS 35 0 0 1600
5433299 NOx_692 B Dec. 13, 2013, 5:15 p.m. OK GNU C++ TESTS 35 0 0 1600
5434638 HaibaraAi B Dec. 13, 2013, 8 p.m. OK GNU C++ TESTS 35 0 4608000 1600
30197669 nafiamahjabin B Sept. 8, 2017, 8:03 a.m. OK GNU C++ TESTS 35 15 0 1600
30122147 vjudge5 B Sept. 6, 2017, 3:48 a.m. OK GNU C++ TESTS 35 15 0 1600
29542426 rv404674 B Aug. 18, 2017, 3:27 a.m. OK GNU C++ TESTS 35 15 0 1600
27841263 rika0384 B June 17, 2017, 8:21 a.m. OK GNU C++ TESTS 35 15 0 1600
27841132 tuki_remon B June 17, 2017, 8:15 a.m. OK GNU C++ TESTS 35 15 0 1600
7694566 soda_beta B Sept. 6, 2014, 1:54 p.m. OK GNU C++0x TESTS 35 15 0 1600
9924428 nitinj B Feb. 19, 2015, 10:29 a.m. OK GNU C++0x TESTS 35 15 0 1600
9620379 mahdiman B Jan. 29, 2015, 10:06 p.m. OK GNU C++0x TESTS 35 15 0 1600
9383104 HAEtaRhoEta B Jan. 8, 2015, 12:01 a.m. OK GNU C++0x TESTS 35 15 0 1600
8471722 charany1 B Oct. 29, 2014, 4:58 p.m. OK GNU C++0x TESTS 35 15 0 1600
7272478 jianmodgqb B July 27, 2014, 11:15 p.m. OK GNU C++0x TESTS 35 15 0 1600
7252264 satashun B July 26, 2014, 6:39 p.m. OK GNU C++0x TESTS 35 15 0 1600
7248382 Gones B July 26, 2014, 8:55 a.m. OK GNU C++0x TESTS 35 15 0 1600
7210981 vviital B July 23, 2014, 5:16 p.m. OK GNU C++0x TESTS 35 15 0 1600
6300887 Lightless B April 8, 2014, 10:33 a.m. OK GNU C++0x TESTS 35 15 0 1600
16483014 rohitshah177 B March 3, 2016, 1:10 p.m. OK GNU C11 TESTS 35 31 0 1600
16483030 Smookiekins B March 3, 2016, 1:11 p.m. OK GNU C11 TESTS 35 31 0 1600
27304365 VoIdJMp B May 23, 2017, 3:33 p.m. OK GNU C++11 TESTS 35 15 0 1600
23037657 mshokry10 B Dec. 17, 2016, 1:11 a.m. OK GNU C++11 TESTS 35 15 0 1600
22504178 theodor.moroianu B Nov. 26, 2016, 8:40 a.m. OK GNU C++11 TESTS 35 15 0 1600
30202414 mijanur_rmn B Sept. 8, 2017, 12:38 p.m. OK GNU C++11 TESTS 35 15 0 1600
22417626 nusrat B Nov. 23, 2016, 6:58 a.m. OK GNU C++11 TESTS 35 15 0 1600
22149006 eddy1021 B Nov. 10, 2016, 1:32 p.m. OK GNU C++11 TESTS 35 15 0 1600
30122120 500kg B Sept. 6, 2017, 3:47 a.m. OK GNU C++11 TESTS 35 15 0 1600
27629412 AREL B June 7, 2017, 9:27 a.m. OK GNU C++11 TESTS 35 15 0 1600
27840682 kuma.tola3 B June 17, 2017, 7:49 a.m. OK GNU C++11 TESTS 35 15 0 1600
27443782 Sofyana B May 30, 2017, 9:02 a.m. OK GNU C++11 TESTS 35 15 0 1600
27839100 Yazaten B June 17, 2017, 6:26 a.m. OK GNU C++14 TESTS 35 15 0 1600
60318282 Yuki726 B Sept. 9, 2019, 7:01 p.m. OK GNU C++14 TESTS 35 15 0 1600
58099379 DafuqO_o B July 31, 2019, 10:42 p.m. OK GNU C++14 TESTS 35 15 0 1600
42143665 hadlotoil B Aug. 27, 2018, 7:29 a.m. OK GNU C++14 TESTS 35 15 0 1600
32348564 MR_Freeman B Nov. 16, 2017, 6:41 a.m. OK GNU C++14 TESTS 35 15 0 1600
31282471 nenmok B Oct. 13, 2017, 6:34 p.m. OK GNU C++14 TESTS 35 15 0 1600
30182823 Mr_Emrul B Sept. 7, 2017, 1:49 p.m. OK GNU C++14 TESTS 35 15 0 1600
27847444 ShroukAbozeid B June 17, 2017, 2:07 p.m. OK GNU C++14 TESTS 35 15 0 1600
27785474 WhitePaper B June 15, 2017, 3:43 a.m. OK GNU C++14 TESTS 35 15 0 1600
27768620 Mahir83 B June 14, 2017, 6:25 a.m. OK GNU C++14 TESTS 35 15 0 1600
47334906 Mansur B Dec. 21, 2018, 2:40 p.m. OK GNU C++17 TESTS 35 15 0 1600
58099386 vjudge3 B July 31, 2019, 10:43 p.m. OK GNU C++17 TESTS 35 15 0 1600
46915089 anuragsingh804 B Dec. 11, 2018, 7:40 p.m. OK GNU C++17 TESTS 35 30 0 1600
46219285 ignifi B Nov. 25, 2018, 5:45 p.m. OK GNU C++17 TESTS 35 30 0 1600
39039910 pun250 B June 8, 2018, 8:28 a.m. OK GNU C++17 TESTS 35 30 0 1600
39039735 pun250 B June 8, 2018, 8:20 a.m. OK GNU C++17 TESTS 35 30 0 1600
67779422 H_M_Vaghasiya B Dec. 28, 2019, 10:21 a.m. OK GNU C++17 TESTS 35 30 0 1600
55715062 Locke_ B June 18, 2019, 12:16 p.m. OK GNU C++17 TESTS 35 30 0 1600
44780530 como_bolo B Oct. 24, 2018, 4:19 p.m. OK GNU C++17 TESTS 35 30 204800 1600
69850157 Y0H4N3 B Jan. 30, 2020, 3:24 p.m. OK GNU C++17 TESTS 35 31 0 1600
5450647 jasy B Dec. 16, 2013, 2:20 p.m. OK Haskell TESTS 35 15 0 1600
5476904 Gopinich B Dec. 19, 2013, 6 p.m. OK Java 6 TESTS 35 46 0 1600
5476604 alibaba B Dec. 19, 2013, 4:56 p.m. OK Java 6 TESTS 35 62 0 1600
7862024 maitony B Sept. 20, 2014, 4:52 a.m. OK Java 6 TESTS 35 62 0 1600
5705822 trainhardcore B Jan. 16, 2014, 9:31 p.m. OK Java 6 TESTS 35 62 0 1600
5705136 trainhardcore B Jan. 16, 2014, 7:53 p.m. OK Java 6 TESTS 35 62 0 1600
5648050 mkirsche B Jan. 10, 2014, 1:25 a.m. OK Java 6 TESTS 35 62 0 1600
5527555 nigini B Dec. 26, 2013, 11:38 p.m. OK Java 6 TESTS 35 62 0 1600
5479674 breeze B Dec. 20, 2013, 8:38 a.m. OK Java 6 TESTS 35 62 0 1600
5451654 n1tz53 B Dec. 16, 2013, 5:58 p.m. OK Java 6 TESTS 35 62 0 1600
5432609 1e9 B Dec. 13, 2013, 4:41 p.m. OK Java 6 TESTS 35 62 0 1600
5484708 OKA_1010 B Dec. 21, 2013, 3:02 a.m. OK Java 7 TESTS 35 46 0 1600
5458016 nickbuelich B Dec. 18, 2013, 12:38 a.m. OK Java 7 TESTS 35 46 0 1600
5564470 kamalkishor1991 B Dec. 29, 2013, 8:59 p.m. OK Java 7 TESTS 35 62 0 1600
5524882 yahiahisham14 B Dec. 26, 2013, 12:52 p.m. OK Java 7 TESTS 35 62 0 1600
5499200 mxc4 B Dec. 23, 2013, 9:51 p.m. OK Java 7 TESTS 35 62 0 1600
5613133 asinkevich B Jan. 3, 2014, 11:46 p.m. OK Java 7 TESTS 35 62 0 1600
5608305 Jaimini-DAIICT B Jan. 3, 2014, 5:06 a.m. OK Java 7 TESTS 35 62 0 1600
5634801 DoublePointer B Jan. 7, 2014, 9:33 p.m. OK Java 7 TESTS 35 62 0 1600
5624910 HidenoriS B Jan. 6, 2014, 1:33 a.m. OK Java 7 TESTS 35 62 0 1600
5618506 asinkevich B Jan. 4, 2014, 9:27 p.m. OK Java 7 TESTS 35 62 0 1600
19869204 dftte B Aug. 14, 2016, 1:16 p.m. OK Java 8 TESTS 35 108 20172800 1600
15027075 chuongk B Dec. 26, 2015, 6:48 a.m. OK Java 8 TESTS 35 109 0 1600
31603304 VerticesEdge B Oct. 22, 2017, 12:19 p.m. OK Java 8 TESTS 35 109 20172800 1600
47958486 _aarif_JU B Jan. 5, 2019, 7:54 a.m. OK Java 8 TESTS 35 124 0 1600
32282770 Kammola B Nov. 13, 2017, 11:42 a.m. OK Java 8 TESTS 35 124 0 1600
27698803 storminsect B June 10, 2017, 2:24 a.m. OK Java 8 TESTS 35 124 0 1600
9204126 2shraaf B Dec. 20, 2014, 7:54 a.m. OK Java 8 TESTS 35 124 0 1600
26796880 donli B May 2, 2017, 5:53 a.m. OK Java 8 TESTS 35 124 20787200 1600
39399361 ViciousCoder B June 19, 2018, 5:38 a.m. OK Java 8 TESTS 35 140 0 1600
11933411 radical B July 5, 2015, 9:51 a.m. OK Java 8 TESTS 35 140 0 1600
5435286 T-D-K B Dec. 13, 2013, 10:38 p.m. OK Mono C# TESTS 35 31 204800 1600
5435120 sallle B Dec. 13, 2013, 9:49 p.m. OK Mono C# TESTS 35 31 307200 1600
45328874 bortolozz B Nov. 5, 2018, 2:14 p.m. OK Mono C# TESTS 35 46 0 1600
5424959 byserge B Dec. 13, 2013, 2:37 p.m. OK Mono C# TESTS 35 46 204800 1600
5428477 Rezonans B Dec. 13, 2013, 3:16 p.m. OK Mono C# TESTS 35 46 307200 1600
5440306 Silithus B Dec. 14, 2013, 3:47 p.m. OK MS C# TESTS 35 31 204800 1600
5427124 Guliash B Dec. 13, 2013, 3 p.m. OK MS C# TESTS 35 31 307200 1600
15977279 og.kostya B Feb. 12, 2016, 7:28 p.m. OK MS C# TESTS 35 46 102400 1600
5433381 Kavir B Dec. 13, 2013, 5:21 p.m. OK MS C# TESTS 35 46 204800 1600
5705379 kashma B Jan. 16, 2014, 8:53 p.m. OK MS C# TESTS 35 46 204800 1600
5485695 suwik B Dec. 21, 2013, 7:58 a.m. OK MS C# TESTS 35 46 2252800 1600
10364274 azukun B March 20, 2015, 8:58 a.m. OK MS C# TESTS 35 61 1331200 1600
8095255 dimiter B Oct. 5, 2014, 3:30 p.m. OK MS C# TESTS 35 62 204800 1600
13702818 Mem B Oct. 17, 2015, 7:05 p.m. OK MS C# TESTS 35 62 2252800 1600
5830523 istepura B Jan. 29, 2014, 7:52 a.m. OK MS C# TESTS 35 108 102400 1600
10761707 Mr.Parsley B April 17, 2015, 9:21 p.m. OK MS C++ TESTS 35 15 0 1600
16323914 MrMirotic B Feb. 25, 2016, 9:38 a.m. OK MS C++ TESTS 35 15 0 1600
14183791 nevergiveup B Nov. 10, 2015, 12:10 p.m. OK MS C++ TESTS 35 15 0 1600
10599911 Hytai B April 5, 2015, 10:02 a.m. OK MS C++ TESTS 35 15 0 1600
10495345 liuyuhong B March 28, 2015, 1:26 a.m. OK MS C++ TESTS 35 15 0 1600
10495332 vjudge5 B March 28, 2015, 1:23 a.m. OK MS C++ TESTS 35 15 0 1600
10411849 vjudge1 B March 23, 2015, 3:17 p.m. OK MS C++ TESTS 35 15 0 1600
10378077 Hytai B March 21, 2015, 12:44 p.m. OK MS C++ TESTS 35 15 0 1600
10375476 vjudge3 B March 21, 2015, 7:53 a.m. OK MS C++ TESTS 35 15 0 1600
10374920 ChenBingyuan B March 21, 2015, 7:03 a.m. OK MS C++ TESTS 35 15 0 1600
11394873 minimario B June 2, 2015, 8:37 p.m. OK PyPy 3 TESTS 35 93 307200 1600
64562435 noelcowm B Nov. 9, 2019, 6:31 a.m. OK PyPy 3 TESTS 35 139 0 1600
68205404 _Lunatic_ B Jan. 4, 2020, 5:13 p.m. OK PyPy 3 TESTS 35 140 0 1600
61833541 kopok2 B Oct. 4, 2019, 7:17 a.m. OK PyPy 3 TESTS 35 140 0 1600
68205480 _TAO_ B Jan. 4, 2020, 5:14 p.m. OK PyPy 3 TESTS 35 155 0 1600
64641195 dewa251202 B Nov. 10, 2019, 1:13 p.m. OK PyPy 3 TESTS 35 155 1331200 1600
69959110 tushartyagi8750 B Feb. 1, 2020, 10:57 a.m. OK PyPy 3 TESTS 35 156 0 1600
19964596 ogo B Aug. 19, 2016, 1:19 p.m. OK PyPy 3 TESTS 35 171 23040000 1600
20193731 yashar_sb_sb B Aug. 27, 2016, 11:16 a.m. OK PyPy 3 TESTS 35 202 23040000 1600
5648791 abhi B Jan. 10, 2014, 6:10 a.m. OK Python 2 TESTS 35 31 0 1600
5461572 carvajal B Dec. 18, 2013, 3:10 p.m. OK Python 2 TESTS 35 31 0 1600
5457941 sggutier B Dec. 18, 2013, 12:04 a.m. OK Python 2 TESTS 35 31 0 1600
5449145 zadoev B Dec. 16, 2013, 9:08 a.m. OK Python 2 TESTS 35 31 0 1600
5436717 136873448 B Dec. 14, 2013, 4:35 a.m. OK Python 2 TESTS 35 31 0 1600
5433808 saiful_azad B Dec. 13, 2013, 6:01 p.m. OK Python 2 TESTS 35 31 0 1600
5431300 yaofeng B Dec. 13, 2013, 3:55 p.m. OK Python 2 TESTS 35 31 0 1600
5430148 supachai_pay B Dec. 13, 2013, 3:37 p.m. OK Python 2 TESTS 35 31 0 1600
5425822 mosa26 B Dec. 13, 2013, 2:46 p.m. OK Python 2 TESTS 35 31 0 1600
5424857 gmunkhbaatarmn B Dec. 13, 2013, 2:37 p.m. OK Python 2 TESTS 35 31 0 1600
5461950 coko156 B Dec. 18, 2013, 3:42 p.m. OK Python 3 TESTS 35 46 0 1600
5529605 yugle7 B Dec. 27, 2013, 10:37 a.m. OK Python 3 TESTS 35 46 307200 1600
28500229 nickluo B July 13, 2017, 11:18 a.m. OK Python 3 TESTS 35 61 5529600 1600
32204882 RccHD B Nov. 10, 2017, 7:54 p.m. OK Python 3 TESTS 35 62 0 1600
14795126 merolish B Dec. 13, 2015, 9:34 p.m. OK Python 3 TESTS 35 62 0 1600
14607003 _roCkY_ B Dec. 1, 2015, 7:34 p.m. OK Python 3 TESTS 35 62 0 1600
12011085 m_i_e B July 11, 2015, 5:16 p.m. OK Python 3 TESTS 35 62 0 1600
8666758 tomoki B Nov. 12, 2014, 3:05 a.m. OK Python 3 TESTS 35 62 0 1600
5458640 sunhong B Dec. 18, 2013, 4:45 a.m. OK Python 3 TESTS 35 62 0 1600
5457010 Rojko B Dec. 17, 2013, 6:39 p.m. OK Python 3 TESTS 35 62 0 1600
5448683 crazypursuer B Dec. 16, 2013, 7 a.m. OK Ruby TESTS 35 46 102400 1600
5434744 stas_sl B Dec. 13, 2013, 8:20 p.m. OK Ruby TESTS 35 46 102400 1600
5426222 Eeyore B Dec. 13, 2013, 2:50 p.m. OK Ruby TESTS 35 46 102400 1600
35862549 ______n______ B March 2, 2018, 10:27 p.m. OK Ruby TESTS 35 62 6451200 1600
35862521 ______u______ B March 2, 2018, 10:26 p.m. OK Ruby TESTS 35 62 6451200 1600
35862123 _____i_____ B March 2, 2018, 10:18 p.m. OK Ruby TESTS 35 62 6451200 1600
35862047 _____k_____ B March 2, 2018, 10:16 p.m. OK Ruby TESTS 35 62 6451200 1600
35858806 ______k______ B March 2, 2018, 9:07 p.m. OK Ruby TESTS 35 62 6451200 1600
35858801 ______h______ B March 2, 2018, 9:07 p.m. OK Ruby TESTS 35 62 6451200 1600
35858493 ______i______ B March 2, 2018, 9 p.m. OK Ruby TESTS 35 62 6451200 1600

remove filters

Back to search problems