Codeforces Round 150 (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
244 Codeforces Round 150 (Div. 2) FINISHED False 7800 378743399 Nov. 16, 2012, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4510 ) B Undoubtedly Lucky Numbers PROGRAMMING bitmasks brute force dfs and similar 1600

B"Polycarpus loves lucky numbers. Everybody knows that lucky numbers are positive integers, whose decimal representation (without leading zeroes) contain only the lucky digits x and y. For example, if x xe2 x80 x89= xe2 x80 x894, and y xe2 x80 x89= xe2 x80 x897, then numbers 47, 744, 4 are lucky. Let's call a positive integer a undoubtedly lucky, if there are such digits x and y (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x, xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x899), that the decimal representation of number a (without leading zeroes) contains only digits x and y. Polycarpus has integer n. He wants to know how many positive integers that do not exceed n, are undoubtedly lucky. Help him, count this number. The first line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- Polycarpus's number. Print a single integer that says, how many positive integers that do not exceed n are undoubtedly lucky. In the first test sample all numbers that do not exceed 10 are undoubtedly lucky. In the second sample numbers 102, 103, 104, 105, 106, 107, 108, 109, 120, 123 are not undoubtedly lucky."...

Tutorials

Editorial for Codeforces Round #150

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
2881536 Ramp B Jan. 7, 2013, 9:34 p.m. OK Delphi TESTS 35 15 102400 1600
2579895 Misha100896 B Nov. 17, 2012, 3:22 p.m. OK Delphi TESTS 35 31 0 1600
2570857 airon B Nov. 16, 2012, 4:33 p.m. OK Delphi TESTS 35 31 0 1600
2570791 jokeD B Nov. 16, 2012, 4:33 p.m. OK Delphi TESTS 35 31 0 1600
2580432 AleksanderBalobanov B Nov. 17, 2012, 5:40 p.m. OK Delphi TESTS 35 31 102400 1600
2573348 DeathCoil B Nov. 16, 2012, 5:27 p.m. OK Delphi TESTS 35 31 102400 1600
2571571 d40a B Nov. 16, 2012, 4:47 p.m. OK Delphi TESTS 35 31 102400 1600
2569257 Depool B Nov. 16, 2012, 3:53 p.m. OK Delphi TESTS 35 31 102400 1600
2572524 romb B Nov. 16, 2012, 5:09 p.m. OK Delphi TESTS 35 31 104038400 1600
2571519 San4eS B Nov. 16, 2012, 4:46 p.m. OK Delphi TESTS 35 46 0 1600
3236653 Nik_Storm_2010 B March 4, 2013, 7:06 a.m. OK FPC TESTS 35 15 0 1600
3225576 SoulSilver B March 1, 2013, 2:29 p.m. OK FPC TESTS 35 15 0 1600
2904969 kinpa200296 B Jan. 11, 2013, 12:35 p.m. OK FPC TESTS 35 15 0 1600
5411688 htkek B Dec. 11, 2013, 9:17 p.m. OK FPC TESTS 35 30 0 1600
5411658 Electronick B Dec. 11, 2013, 9:06 p.m. OK FPC TESTS 35 30 0 1600
5080695 love_lt B Nov. 13, 2013, 1:43 a.m. OK FPC TESTS 35 30 0 1600
4854077 vjudge1 B Oct. 23, 2013, 3:23 p.m. OK FPC TESTS 35 30 0 1600
5241127 llaugusty B Nov. 26, 2013, 7:38 a.m. OK FPC TESTS 35 30 102400 1600
4237672 AHTuTTuTyX B Aug. 6, 2013, 4:53 p.m. OK FPC TESTS 35 30 102400 1600
5286759 Only_love97 B Nov. 28, 2013, 1:29 p.m. OK FPC TESTS 35 30 1536000 1600
3000551 gxnncrx1993 B Jan. 24, 2013, 6:47 a.m. OK GNU C TESTS 35 15 0 1600
5291541 wsy1994 B Nov. 29, 2013, 6:13 a.m. OK GNU C TESTS 35 30 0 1600
2580357 cpy B Nov. 17, 2012, 5:19 p.m. OK GNU C TESTS 35 31 102400 1600
2570238 pedja B Nov. 16, 2012, 4:13 p.m. OK GNU C TESTS 35 31 3993600 1600
8160710 ChuckLeeQB7 B Oct. 9, 2014, 7:35 p.m. OK GNU C TESTS 35 92 307200 1600
34875529 adityakhandelwal1508 B Feb. 2, 2018, 8:16 p.m. OK GNU C TESTS 35 1248 1843200 1600
4930170 minhnhat B Oct. 29, 2013, 5:08 p.m. OK GNU C++ TESTS 35 15 0 1600
4922973 vjudge3 B Oct. 28, 2013, 7:32 p.m. OK GNU C++ TESTS 35 15 0 1600
4916843 vjudge3 B Oct. 27, 2013, 7:42 p.m. OK GNU C++ TESTS 35 15 0 1600
3954887 moji B June 24, 2013, 10:16 a.m. OK GNU C++ TESTS 35 15 0 1600
3934176 Neil B June 22, 2013, 1:43 a.m. OK GNU C++ TESTS 35 15 0 1600
3879210 Oier13507 B June 13, 2013, 12:01 p.m. OK GNU C++ TESTS 35 15 0 1600
3786138 qwdqkh1 B May 28, 2013, 5:14 a.m. OK GNU C++ TESTS 35 15 0 1600
3667659 vjudge4 B May 4, 2013, 9:15 a.m. OK GNU C++ TESTS 35 15 0 1600
3427960 chm517 B March 31, 2013, 3:20 p.m. OK GNU C++ TESTS 35 15 0 1600
3421495 vjudge5 B March 30, 2013, 6:32 a.m. OK GNU C++ TESTS 35 15 0 1600
3789079 A_Le_K B May 28, 2013, 7:39 p.m. OK GNU C++0x TESTS 35 15 0 1600
3669080 miyanaga.saki B May 4, 2013, 12:25 p.m. OK GNU C++0x TESTS 35 15 0 1600
3065136 Doxer B Feb. 2, 2013, 5:43 p.m. OK GNU C++0x TESTS 35 15 204800 1600
9742168 RealMadrid B Feb. 7, 2015, 5:43 a.m. OK GNU C++0x TESTS 35 30 0 1600
6480819 saksouk B April 26, 2014, 8:20 p.m. OK GNU C++0x TESTS 35 30 0 1600
4321011 Orfest B Aug. 21, 2013, 5:20 p.m. OK GNU C++0x TESTS 35 30 0 1600
6480810 filani B April 26, 2014, 8:16 p.m. OK GNU C++0x TESTS 35 30 409600 1600
5626286 sokian B Jan. 6, 2014, 8:52 a.m. OK GNU C++0x TESTS 35 30 1126400 1600
9368688 jAckAL_1586 B Jan. 5, 2015, 9:34 p.m. OK GNU C++0x TESTS 35 30 1433600 1600
6522594 azerty B May 2, 2014, 2:25 p.m. OK GNU C++0x TESTS 35 30 1433600 1600
26974794 GMNY B May 9, 2017, 1:36 p.m. OK GNU C++11 TESTS 35 30 0 1600
19554068 RockyB B Aug. 1, 2016, 7:52 a.m. OK GNU C++11 TESTS 35 30 0 1600
19357190 Woreviam B July 23, 2016, 6:13 a.m. OK GNU C++11 TESTS 35 30 0 1600
17333938 PandaConda B April 16, 2016, 3:39 a.m. OK GNU C++11 TESTS 35 30 0 1600
17333935 DeeZL B April 16, 2016, 3:38 a.m. OK GNU C++11 TESTS 35 30 0 1600
15575654 .tx B Jan. 25, 2016, 2:47 p.m. OK GNU C++11 TESTS 35 30 0 1600
15335234 sonlh07 B Jan. 13, 2016, 6:10 p.m. OK GNU C++11 TESTS 35 30 0 1600
15274263 safayet007 B Jan. 9, 2016, 8:31 p.m. OK GNU C++11 TESTS 35 30 0 1600
14815860 bill_kondo B Dec. 15, 2015, 1:37 p.m. OK GNU C++11 TESTS 35 30 0 1600
11544401 amrzohdi B June 12, 2015, 1:51 p.m. OK GNU C++11 TESTS 35 30 0 1600
30051458 Dibagger B Sept. 4, 2017, 11:10 a.m. OK GNU C++14 TESTS 35 30 0 1600
30025671 vjudge2 B Sept. 3, 2017, 6:42 a.m. OK GNU C++14 TESTS 35 30 0 1600
30025662 mds_333 B Sept. 3, 2017, 6:41 a.m. OK GNU C++14 TESTS 35 30 0 1600
27460654 md.ashif313 B May 31, 2017, 6:53 a.m. OK GNU C++14 TESTS 35 30 0 1600
22598687 nologic B Nov. 29, 2016, 12:47 p.m. OK GNU C++14 TESTS 35 30 0 1600
20340276 GoingFinals2 B Sept. 2, 2016, 12:16 p.m. OK GNU C++14 TESTS 35 30 0 1600
20339872 Upsolver B Sept. 2, 2016, 11:53 a.m. OK GNU C++14 TESTS 35 30 0 1600
27790684 MusfiqxShohan B June 15, 2017, 9:42 a.m. OK GNU C++14 TESTS 35 30 102400 1600
32511261 nahid08 B Nov. 20, 2017, 9:01 p.m. OK GNU C++14 TESTS 35 30 1024000 1600
62337284 kashyap_archit B Oct. 11, 2019, 2:31 a.m. OK GNU C++14 TESTS 35 30 1433600 1600
55602156 LeoRiether B June 15, 2019, 7:07 p.m. OK GNU C++17 TESTS 35 30 0 1600
36140216 pun250 B March 10, 2018, 6:51 a.m. OK GNU C++17 TESTS 35 30 1945600 1600
69961809 kotamanegi B Feb. 1, 2020, 11:39 a.m. OK GNU C++17 TESTS 35 60 0 1600
63024969 jahangard B Oct. 20, 2019, 3:56 p.m. OK GNU C++17 TESTS 35 60 0 1600
58958979 manideep8 B Aug. 17, 2019, 2:18 p.m. OK GNU C++17 TESTS 35 60 204800 1600
58503966 mr-meeseeks B Aug. 9, 2019, 3:33 p.m. OK GNU C++17 TESTS 35 60 1024000 1600
55944220 abdulrahman_aj B June 22, 2019, 6:36 p.m. OK GNU C++17 TESTS 35 60 1433600 1600
52670587 no_one30 B April 13, 2019, 7:17 a.m. OK GNU C++17 TESTS 35 60 1433600 1600
39082808 alidadar7676 B June 10, 2018, 4:11 a.m. OK GNU C++17 TESTS 35 60 1433600 1600
69571277 MisterGu B Jan. 26, 2020, 2:10 p.m. OK GNU C++17 TESTS 35 62 0 1600
3069392 DimsFromDergachy B Feb. 4, 2013, 4:12 a.m. OK Haskell TESTS 35 15 0 1600
13134198 CyberZHG B Sept. 22, 2015, 1:52 a.m. OK Haskell TESTS 35 30 102400 1600
2575978 cojna B Nov. 16, 2012, 10:09 p.m. OK Haskell TESTS 35 46 0 1600
13134193 vjudge1 B Sept. 22, 2015, 1:51 a.m. OK Haskell TESTS 35 62 0 1600
2578569 Azat_Yusupov B Nov. 17, 2012, 10:45 a.m. OK Java 6 TESTS 35 78 0 1600
2577762 gh_ost B Nov. 17, 2012, 8:29 a.m. OK Java 6 TESTS 35 78 0 1600
2575809 ahmad_mamdouh B Nov. 16, 2012, 9:17 p.m. OK Java 6 TESTS 35 78 0 1600
2575360 wackloner B Nov. 16, 2012, 7:39 p.m. OK Java 6 TESTS 35 78 0 1600
2579361 xeyyam_quliyev B Nov. 17, 2012, 1:05 p.m. OK Java 6 TESTS 35 93 0 1600
3273513 BaHiE B March 10, 2013, 11:28 a.m. OK Java 6 TESTS 35 93 0 1600
3266891 OKA_1010 B March 8, 2013, 5:26 p.m. OK Java 6 TESTS 35 93 0 1600
2854866 Wahba B Dec. 29, 2012, 6:49 p.m. OK Java 6 TESTS 35 93 0 1600
2589599 moscoquera B Nov. 19, 2012, 3:39 p.m. OK Java 6 TESTS 35 93 0 1600
2585536 dtaka B Nov. 18, 2012, 2:31 p.m. OK Java 6 TESTS 35 93 0 1600
3351093 Mostafa.Gabriel B March 18, 2013, 12:20 p.m. OK Java 7 TESTS 35 78 0 1600
2571176 PlayLikeNeverB4 B Nov. 16, 2012, 4:39 p.m. OK Java 7 TESTS 35 78 0 1600
3137249 xifer92 B Feb. 16, 2013, 3:55 p.m. OK Java 7 TESTS 35 93 0 1600
2578209 mingotlik B Nov. 17, 2012, 9:42 a.m. OK Java 7 TESTS 35 93 0 1600
2571989 alex270295 B Nov. 16, 2012, 4:57 p.m. OK Java 7 TESTS 35 93 0 1600
2569013 NCoder B Nov. 16, 2012, 3:50 p.m. OK Java 7 TESTS 35 93 0 1600
4040147 Abdelrahman22 B July 8, 2013, 7:33 p.m. OK Java 7 TESTS 35 93 102400 1600
3291720 omaro B March 11, 2013, 6:38 p.m. OK Java 7 TESTS 35 93 102400 1600
2569956 OutSide B Nov. 16, 2012, 4:07 p.m. OK Java 7 TESTS 35 93 102400 1600
2575762 vadimmm B Nov. 16, 2012, 9:05 p.m. OK Java 7 TESTS 35 109 0 1600
48410116 poiuytrewq B Jan. 15, 2019, 7:10 a.m. OK Java 8 TESTS 35 218 0 1600
26735186 Amman20 B April 28, 2017, 8:55 p.m. OK Java 8 TESTS 35 218 20582400 1600
57022055 rathi.raghav00 B July 14, 2019, 2:32 p.m. OK Java 8 TESTS 35 248 0 1600
49809782 Shaykhutdinov-T-I B Feb. 11, 2019, 11:04 p.m. OK Java 8 TESTS 35 248 0 1600
32074756 kocko B Nov. 5, 2017, 11:31 a.m. OK Java 8 TESTS 35 248 0 1600
31224373 Abdullah_Abu_Alrish B Oct. 11, 2017, 5:51 p.m. OK Java 8 TESTS 35 248 0 1600
30804019 di_halt B Sept. 28, 2017, 12:18 p.m. OK Java 8 TESTS 35 248 0 1600
29593795 Key_J B Aug. 19, 2017, 9:05 a.m. OK Java 8 TESTS 35 248 0 1600
12268432 sweiss B July 29, 2015, 7:16 p.m. OK Java 8 TESTS 35 248 0 1600
23486195 prakash9 B Jan. 1, 2017, 3:58 p.m. OK Java 8 TESTS 35 248 20582400 1600
7190190 Eeyore B July 21, 2014, 2:38 a.m. OK JavaScript TESTS 35 62 102400 1600
2580580 NickSerg B Nov. 17, 2012, 6:32 p.m. OK Mono C# TESTS 35 109 102400 1600
2575849 ikagotso B Nov. 16, 2012, 9:31 p.m. OK Mono C# TESTS 35 203 1945600 1600
2572783 rokdw B Nov. 16, 2012, 5:15 p.m. OK Mono C# TESTS 35 218 1945600 1600
2575720 jonyrock B Nov. 16, 2012, 8:56 p.m. OK Mono C# TESTS 35 234 6758400 1600
16229466 og.kostya B Feb. 20, 2016, 1:19 p.m. OK MS C# TESTS 35 92 102400 1600
6263179 kvart714 B April 5, 2014, 9:35 a.m. OK MS C# TESTS 35 124 1126400 1600
5594935 abbyy B Dec. 31, 2013, 8:51 p.m. OK MS C# TESTS 35 124 4505600 1600
2829829 Carups B Dec. 26, 2012, 4:19 p.m. OK MS C++ TESTS 35 15 0 1600
2881506 prateep B Jan. 7, 2013, 8:59 p.m. OK MS C++ TESTS 35 15 1740800 1600
3266876 xa.mohsen B March 8, 2013, 5:22 p.m. OK MS C++ TESTS 35 15 1740800 1600
6505012 vjudge2 B April 29, 2014, 11:38 a.m. OK MS C++ TESTS 35 30 0 1600
16715335 sister_what_hate_most B March 14, 2016, 2:03 p.m. OK MS C++ TESTS 35 30 0 1600
16690240 vjudge3 B March 13, 2016, 10:56 a.m. OK MS C++ TESTS 35 30 0 1600
16689771 vjudge1 B March 13, 2016, 10:21 a.m. OK MS C++ TESTS 35 30 0 1600
16685093 vjudge5 B March 13, 2016, 4:58 a.m. OK MS C++ TESTS 35 30 0 1600
6505993 L_Ecry B April 29, 2014, 1:43 p.m. OK MS C++ TESTS 35 30 0 1600
5659644 Vlad_kv B Jan. 11, 2014, 1:05 p.m. OK MS C++ TESTS 35 30 0 1600
51266769 Husne_Matar B March 13, 2019, 3:54 p.m. OK MS C++ 2017 TESTS 35 62 1740800 1600
69486892 HishamDroubi B Jan. 24, 2020, 8 p.m. OK MS C++ 2017 TESTS 35 92 1331200 1600
12264633 Stomach_ache B July 29, 2015, 12:48 p.m. OK PHP TESTS 35 122 3788800 1600
2569953 chaotic_iak B Nov. 16, 2012, 4:07 p.m. OK PHP TESTS 35 500 4812800 1600
13000225 m7mdbadawy B Sept. 14, 2015, 7:59 p.m. OK PyPy 2 TESTS 35 436 3276800 1600
58838344 Leendertz B Aug. 14, 2019, 11:20 p.m. OK PyPy 3 TESTS 35 310 4505600 1600
26142471 0w1 B April 5, 2017, 12:12 p.m. OK PyPy 3 TESTS 35 434 30003200 1600
67251956 grhkm B Dec. 19, 2019, 7:33 p.m. OK PyPy 3 TESTS 35 468 7270400 1600
60311152 rajat_2548 B Sept. 9, 2019, 3:52 p.m. OK PyPy 3 TESTS 35 1340 8806400 1600
2587991 jill-jenn B Nov. 19, 2012, 11:21 a.m. OK Python 2 TESTS 35 62 0 1600
2576252 hota911 B Nov. 17, 2012, 12:49 a.m. OK Python 2 TESTS 35 62 0 1600
2681580 cm3 B Nov. 30, 2012, 5:14 p.m. OK Python 2 TESTS 35 62 307200 1600
3180335 lovefly1983 B Feb. 24, 2013, 1:50 p.m. OK Python 2 TESTS 35 93 1536000 1600
2587640 iyixiang B Nov. 19, 2012, 9:29 a.m. OK Python 2 TESTS 35 109 0 1600
2569352 StefanPochmann B Nov. 16, 2012, 3:55 p.m. OK Python 2 TESTS 35 109 1536000 1600
3089092 liouzhou_101 B Feb. 10, 2013, 11:42 a.m. OK Python 2 TESTS 35 109 1536000 1600
2630536 Newer123 B Nov. 23, 2012, 7:37 a.m. OK Python 2 TESTS 35 109 1536000 1600
2784840 daidailanlan B Dec. 17, 2012, 5:14 a.m. OK Python 2 TESTS 35 109 2048000 1600
2784830 daidailanlan B Dec. 17, 2012, 5:12 a.m. OK Python 2 TESTS 35 109 2048000 1600
5105762 yugle7 B Nov. 14, 2013, 4:39 p.m. OK Python 3 TESTS 35 92 307200 1600
3993784 Zyflair B June 29, 2013, 8:17 p.m. OK Python 3 TESTS 35 109 614400 1600
4446399 fish_ball B Sept. 12, 2013, 2:04 a.m. OK Python 3 TESTS 35 124 0 1600
42124209 Mk_Python_v1 B Aug. 26, 2018, 2:08 p.m. OK Python 3 TESTS 35 218 0 1600
54089071 Mohamed_Ayman B May 14, 2019, 9:26 a.m. OK Python 3 TESTS 35 280 2457600 1600
55716877 MajAK B June 18, 2019, 1:09 p.m. OK Python 3 TESTS 35 280 2662400 1600
54999237 NocturneBflat B June 3, 2019, 3:07 a.m. OK Python 3 TESTS 35 342 3481600 1600
20017841 iehn B Aug. 21, 2016, 3:32 a.m. OK Python 3 TESTS 35 654 12697600 1600
59782143 ashwin2000 B Aug. 31, 2019, 3:50 a.m. OK Python 3 TESTS 35 1558 0 1600
50513506 ashok123 B Feb. 26, 2019, 4:03 a.m. OK Python 3 TESTS 35 1714 6758400 1600
2958409 peking2 B Jan. 19, 2013, 5:51 a.m. OK Ruby TESTS 35 156 1433600 1600
22685000 karthickpdy B Dec. 3, 2016, 8:37 p.m. OK Ruby TESTS 35 186 1536000 1600
2958408 peking2 B Jan. 19, 2013, 5:50 a.m. OK Ruby TESTS 35 281 1536000 1600

remove filters

Back to search problems