Codeforces Round 555 (Div. 3)

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
1157 Codeforces Round 555 (Div. 3) FINISHED False 7200 175533899 April 26, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15715 ) A Reachable Numbers PROGRAMMING implementation 1100

B"Let's denote a function f(x) in such a way: we add 1 to x , then, while there is at least one trailing zero in the resulting number, we remove that zero. For example, We say that some number y is reachable from x if we can apply function f to x some (possibly zero) times so that we get y as a result. For example, 102 is reachable from 10098 because f(f(f(10098))) = f(f(10099)) = f(101) = 102 ; and any number is reachable from itself. You are given a number n ; your task is to count how many different numbers are reachable from n . The first line contains one integer n ( 1 <= n <= 10^9 ). Print one integer: the number of different numbers that are reachable from n . The numbers that are reachable from 1098 are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1098, 1099 . "...

Tutorials

66737

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
58904992 vjudge4 A Aug. 16, 2019, 10:43 a.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
55192920 meetgolakiya A June 6, 2019, 7:14 a.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
56822420 vjudge3 A July 11, 2019, 1:46 a.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
58917366 vjudge3 A Aug. 16, 2019, 3:33 p.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
55085556 jp_jp A June 4, 2019, 12:27 p.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
55085284 jp_jp A June 4, 2019, 12:21 p.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
53989785 vjudge2 A May 11, 2019, 11:42 a.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
53860231 Aman_mittal A May 7, 2019, 7:20 p.m. OK Clang++17 Diagnostics TESTS 130 46 0 1100
53613547 Mcccree A May 1, 2019, 2:24 p.m. OK Clang++17 Diagnostics TESTS 130 62 0 1100
54401653 minhquaningenious A May 20, 2019, 1:08 a.m. OK FPC TESTS 130 31 307200 1100
53947022 bao-gpmn A May 10, 2019, 7:20 a.m. OK FPC TESTS 130 46 512000 1100
67211824 Revanth27 A Dec. 19, 2019, 2:19 p.m. OK GNU C11 TESTS 130 31 0 1100
67312751 vjudge2 A Dec. 21, 2019, 4:08 a.m. OK GNU C11 TESTS 130 31 0 1100
69218563 vjudge2 A Jan. 21, 2020, 2:57 a.m. OK GNU C11 TESTS 130 31 0 1100
63959289 vjudge1 A Nov. 1, 2019, 4:09 a.m. OK GNU C11 TESTS 130 31 0 1100
64515861 Hiddenboy99 A Nov. 8, 2019, 10:41 a.m. OK GNU C11 TESTS 130 31 0 1100
64584848 kaziiriad A Nov. 9, 2019, 1:04 p.m. OK GNU C11 TESTS 130 31 0 1100
65333192 DevJewel A Nov. 19, 2019, 7:31 a.m. OK GNU C11 TESTS 130 31 0 1100
65337225 ifran09 A Nov. 19, 2019, 9:23 a.m. OK GNU C11 TESTS 130 31 0 1100
65531830 Yulina A Nov. 22, 2019, 12:44 p.m. OK GNU C11 TESTS 130 31 0 1100
65538627 0xbaadf00d A Nov. 22, 2019, 3:09 p.m. OK GNU C11 TESTS 130 31 0 1100
69573074 luogu_bot3 A Jan. 26, 2020, 2:42 p.m. OK GNU C++11 TESTS 130 31 0 1100
69898126 Goobyee A Jan. 31, 2020, 12:18 p.m. OK GNU C++11 TESTS 130 31 0 1100
69820401 duxinting A Jan. 30, 2020, 7:37 a.m. OK GNU C++11 TESTS 130 31 0 1100
69816850 vjudge1 A Jan. 30, 2020, 6:26 a.m. OK GNU C++11 TESTS 130 31 0 1100
69804538 zxjls A Jan. 30, 2020, 12:52 a.m. OK GNU C++11 TESTS 130 31 0 1100
69637791 scheduler A Jan. 27, 2020, 7:23 p.m. OK GNU C++11 TESTS 130 31 0 1100
69586655 laksh_kumar A Jan. 26, 2020, 7:50 p.m. OK GNU C++11 TESTS 130 31 0 1100
69581283 LakshKumar A Jan. 26, 2020, 5:29 p.m. OK GNU C++11 TESTS 130 31 0 1100
69824230 vjudge5 A Jan. 30, 2020, 8:45 a.m. OK GNU C++11 TESTS 130 31 0 1100
69872867 vjudge1 A Jan. 31, 2020, 1:48 a.m. OK GNU C++11 TESTS 130 31 0 1100
55473670 josemaganadev A June 11, 2019, 8:42 p.m. OK GNU C++14 TESTS 130 30 0 1100
54704801 Ashay_Nayak A May 27, 2019, 4:09 a.m. OK GNU C++14 TESTS 130 30 0 1100
53740504 randomssr A May 4, 2019, 1:32 p.m. OK GNU C++14 TESTS 130 30 0 1100
53722165 mostwanted7 A May 4, 2019, 1:09 a.m. OK GNU C++14 TESTS 130 30 0 1100
53654467 KimDinh A May 2, 2019, 3:40 a.m. OK GNU C++14 TESTS 130 30 0 1100
53494574 parth8302 A April 29, 2019, 11 a.m. OK GNU C++14 TESTS 130 30 0 1100
56962811 vjudge3 A July 13, 2019, 7:15 a.m. OK GNU C++14 TESTS 130 30 0 1100
54279001 siddharthbhati10 A May 17, 2019, 12:30 p.m. OK GNU C++14 TESTS 130 30 204800 1100
60276312 andronos A Sept. 8, 2019, 6:01 p.m. OK GNU C++14 TESTS 130 30 204800 1100
54999706 itsmihir A June 3, 2019, 3:31 a.m. OK GNU C++14 TESTS 130 30 204800 1100
53583421 shivgarg A April 30, 2019, 4:56 p.m. OK GNU C++17 TESTS 130 30 0 1100
53676608 dianakus205 A May 2, 2019, 4:15 p.m. OK GNU C++17 TESTS 130 30 0 1100
56821901 vjudge5 A July 11, 2019, 1:18 a.m. OK GNU C++17 TESTS 130 30 0 1100
53659373 Ginstein A May 2, 2019, 6:51 a.m. OK GNU C++17 TESTS 130 30 102400 1100
53561209 coffee_machine A April 30, 2019, 9:38 a.m. OK GNU C++17 TESTS 130 30 204800 1100
53826039 tin.tin A May 6, 2019, 4:10 p.m. OK GNU C++17 TESTS 130 30 204800 1100
69818720 vjudge2 A Jan. 30, 2020, 7:01 a.m. OK GNU C++17 TESTS 130 31 0 1100
69824818 vjudge4 A Jan. 30, 2020, 8:54 a.m. OK GNU C++17 TESTS 130 31 0 1100
69936269 avibhar A Feb. 1, 2020, 3:58 a.m. OK GNU C++17 TESTS 130 31 0 1100
69818620 Loolo A Jan. 30, 2020, 6:59 a.m. OK GNU C++17 TESTS 130 31 0 1100
53484599 MiohitoKiri5474 A April 29, 2019, 1:39 a.m. OK Go TESTS 130 31 0 1100
65689167 rnazmo A Nov. 25, 2019, 3:16 a.m. OK Go TESTS 130 46 0 1100
55325065 Avonazhrets A June 9, 2019, 7:31 a.m. OK Go TESTS 130 46 0 1100
53983659 Sabirov_Jahongir A May 11, 2019, 8:29 a.m. OK Go TESTS 130 46 0 1100
53738604 Laurens A May 4, 2019, 12:27 p.m. OK Haskell TESTS 130 31 102400 1100
53738669 Laurens A May 4, 2019, 12:29 p.m. OK Haskell TESTS 130 46 102400 1100
67780870 Laurens A Dec. 28, 2019, 10:54 a.m. OK Haskell TESTS 130 46 102400 1100
54805172 codemania A May 29, 2019, 1:43 p.m. OK Haskell TESTS 130 46 102400 1100
53738912 Laurens A May 4, 2019, 12:38 p.m. OK Haskell TESTS 130 46 102400 1100
53738813 Laurens A May 4, 2019, 12:34 p.m. OK Haskell TESTS 130 46 102400 1100
53738553 Laurens A May 4, 2019, 12:25 p.m. OK Haskell TESTS 130 46 102400 1100
53738410 Laurens A May 4, 2019, 12:19 p.m. OK Haskell TESTS 130 46 102400 1100
53738395 Laurens A May 4, 2019, 12:18 p.m. OK Haskell TESTS 130 46 102400 1100
53738380 Laurens A May 4, 2019, 12:18 p.m. OK Haskell TESTS 130 46 102400 1100
68704633 StEpAn_123 A Jan. 13, 2020, 10:47 a.m. OK Java 11 TESTS 130 186 0 1100
69639771 Jainam_Sanghvi A Jan. 27, 2020, 8:11 p.m. OK Java 11 TESTS 130 202 0 1100
68633619 satya_p54 A Jan. 12, 2020, 4:39 a.m. OK Java 11 TESTS 130 202 0 1100
67423736 narayan.xrd A Dec. 22, 2019, 12:41 p.m. OK Java 11 TESTS 130 202 0 1100
68313597 akshVerma A Jan. 6, 2020, 12:19 p.m. OK Java 8 TESTS 130 109 0 1100
56039922 dyhu083 A June 25, 2019, 1:50 p.m. OK Java 8 TESTS 130 109 0 1100
54901499 darshan287 A June 1, 2019, 6:50 a.m. OK Java 8 TESTS 130 109 0 1100
54865482 wretar A May 31, 2019, 5:53 a.m. OK Java 8 TESTS 130 109 0 1100
54862297 vinvin A May 31, 2019, 3:22 a.m. OK Java 8 TESTS 130 109 0 1100
54519472 kusomushi A May 23, 2019, 11:39 a.m. OK Java 8 TESTS 130 109 0 1100
54490243 darthvader1521 A May 22, 2019, 3:06 p.m. OK Java 8 TESTS 130 109 0 1100
54457285 jaynils A May 21, 2019, 4:33 p.m. OK Java 8 TESTS 130 109 0 1100
54052878 vjudge1 A May 13, 2019, 5:52 a.m. OK Java 8 TESTS 130 109 0 1100
53857710 potatmen A May 7, 2019, 5:25 p.m. OK Java 8 TESTS 130 109 0 1100
53874208 bumbleboo A May 8, 2019, 11:09 a.m. OK JavaScript TESTS 130 46 0 1100
56168556 Spheniscine A June 27, 2019, 3:24 p.m. OK Kotlin TESTS 130 124 0 1100
67062887 robota A Dec. 17, 2019, 9:53 a.m. OK Kotlin TESTS 130 124 0 1100
61963645 blue_jam A Oct. 6, 2019, 8:13 a.m. OK Kotlin TESTS 130 124 0 1100
60213308 Mur A Sept. 7, 2019, 10:55 a.m. OK Kotlin TESTS 130 124 0 1100
54849298 MohammedAlaaMorsi A May 30, 2019, 3:42 p.m. OK Kotlin TESTS 130 124 0 1100
54778892 szfck A May 28, 2019, 7:50 p.m. OK Kotlin TESTS 130 124 0 1100
54754594 PotatoAndCoke A May 28, 2019, 2:26 p.m. OK Kotlin TESTS 130 124 0 1100
54743147 Chronos13 A May 28, 2019, 9:06 a.m. OK Kotlin TESTS 130 124 0 1100
54734958 Roll_Num_56 A May 28, 2019, 4:13 a.m. OK Kotlin TESTS 130 124 0 1100
54710595 msagimbekov A May 27, 2019, 9:58 a.m. OK Kotlin TESTS 130 124 0 1100
55238467 Androninja A June 7, 2019, 9:36 a.m. OK Mono C# TESTS 130 46 0 1100
53810696 Salatik231166 A May 6, 2019, 6:27 a.m. OK Mono C# TESTS 130 46 0 1100
53493389 dmitru A April 29, 2019, 10:15 a.m. OK Mono C# TESTS 130 46 0 1100
53565726 core_coder A April 30, 2019, 12:19 p.m. OK Mono C# TESTS 130 61 0 1100
54559022 NikolaySchepalov A May 24, 2019, 1:03 p.m. OK Mono C# TESTS 130 62 0 1100
53803533 downloads A May 5, 2019, 9:09 p.m. OK Mono C# TESTS 130 62 0 1100
53560587 TRR A April 30, 2019, 9:16 a.m. OK Mono C# TESTS 130 62 0 1100
68215989 Apple_Jacks A Jan. 4, 2020, 11:21 p.m. OK Mono C# TESTS 130 62 3584000 1100
54404484 maxkh A May 20, 2019, 4:55 a.m. OK Mono C# TESTS 130 62 3584000 1100
53810995 Gray_Rhino A May 6, 2019, 6:42 a.m. OK Mono C# TESTS 130 62 3584000 1100
69824158 vjudge4 A Jan. 30, 2020, 8:44 a.m. OK MS C++ TESTS 130 31 0 1100
69819694 vjudge4 A Jan. 30, 2020, 7:20 a.m. OK MS C++ TESTS 130 31 0 1100
69819302 vjudge3 A Jan. 30, 2020, 7:12 a.m. OK MS C++ TESTS 130 31 0 1100
69817248 vjudge3 A Jan. 30, 2020, 6:34 a.m. OK MS C++ TESTS 130 31 0 1100
69816533 vjudge2 A Jan. 30, 2020, 6:21 a.m. OK MS C++ TESTS 130 31 0 1100
68146161 vjudge4 A Jan. 4, 2020, 4:31 a.m. OK MS C++ TESTS 130 31 0 1100
64552500 vjudge1 A Nov. 9, 2019, 12:58 a.m. OK MS C++ TESTS 130 31 0 1100
64514827 vjudge1 A Nov. 8, 2019, 10:18 a.m. OK MS C++ TESTS 130 31 0 1100
63980559 vjudge5 A Nov. 1, 2019, 10:08 a.m. OK MS C++ TESTS 130 31 0 1100
69875733 vjudge1 A Jan. 31, 2020, 3:53 a.m. OK MS C++ TESTS 130 31 0 1100
58169787 HelloWorld1024 Yanhui Cuc-center A Aug. 2, 2019, 10:46 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
69906600 liq A Jan. 31, 2020, 2:18 p.m. OK MS C++ 2017 TESTS 130 31 0 1100
64554565 vjudge4 A Nov. 9, 2019, 2:38 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
63968660 vjudge3 A Nov. 1, 2019, 8:15 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
63965100 vjudge2 A Nov. 1, 2019, 6:52 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
63954638 vjudge1 A Nov. 1, 2019, 12:20 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
63934645 vjudge3 A Oct. 31, 2019, 3:26 p.m. OK MS C++ 2017 TESTS 130 31 0 1100
59344513 V4V A Aug. 23, 2019, 9:05 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
58477304 vjudge2 A Aug. 9, 2019, 3:43 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
58212254 ZA139 A Aug. 3, 2019, 9:15 a.m. OK MS C++ 2017 TESTS 130 31 0 1100
54324218 staRain A May 18, 2019, 1:04 a.m. OK Node.js TESTS 130 171 512000 1100
54102121 maksimleshkovich A May 14, 2019, 2:49 p.m. OK PascalABC.NET TESTS 130 202 0 1100
53533216 vintage_Vlad_Makeev A April 29, 2019, 10:45 p.m. OK Perl TESTS 130 46 0 1100
53906139 mayakin A May 9, 2019, 12:50 p.m. OK PHP TESTS 130 46 0 1100
58139085 deren A Aug. 1, 2019, 5:20 p.m. OK PyPy 2 TESTS 130 124 0 1100
56525113 shanu_im A July 4, 2019, 4:47 p.m. OK PyPy 2 TESTS 130 124 0 1100
53479602 alexwice A April 28, 2019, 6:28 p.m. OK PyPy 2 TESTS 130 124 0 1100
53581461 torabey A April 30, 2019, 3:55 p.m. OK PyPy 2 TESTS 130 140 0 1100
56473591 ghost_shedow A July 3, 2019, 12:13 p.m. OK PyPy 2 TESTS 130 186 0 1100
53853290 gatsko A May 7, 2019, 2:34 p.m. OK PyPy 2 TESTS 130 218 7680000 1100
57793666 Madhur1906 A July 26, 2019, 10:35 a.m. OK PyPy 2 TESTS 130 233 0 1100
58668290 ssk497 A Aug. 12, 2019, 1:24 p.m. OK PyPy 2 TESTS 130 311 8908800 1100
53885863 tarush A May 8, 2019, 6:06 p.m. OK PyPy 3 TESTS 130 124 0 1100
53693175 _hanabi_ A May 3, 2019, 6:16 a.m. OK PyPy 3 TESTS 130 124 0 1100
53676261 Atishay A May 2, 2019, 4:02 p.m. OK PyPy 3 TESTS 130 124 0 1100
55514843 guardian.of.gods99 A June 13, 2019, 4:14 a.m. OK PyPy 3 TESTS 130 139 0 1100
55309588 kpiiitb A June 8, 2019, 4:43 p.m. OK PyPy 3 TESTS 130 139 0 1100
54476697 bupt.wc A May 22, 2019, 8:53 a.m. OK PyPy 3 TESTS 130 139 0 1100
54098377 Messiah_10 A May 14, 2019, 2:21 p.m. OK PyPy 3 TESTS 130 139 0 1100
53771729 SHOVON588 A May 5, 2019, 5:52 a.m. OK PyPy 3 TESTS 130 139 0 1100
53611995 spellstaker A May 1, 2019, 1:35 p.m. OK PyPy 3 TESTS 130 139 0 1100
56078893 Vovkaez A June 26, 2019, 2:12 p.m. OK PyPy 3 TESTS 130 139 102400 1100
58138383 soyluy A Aug. 1, 2019, 5:05 p.m. OK Python 2 TESTS 130 171 0 1100
54663081 kaif_7 A May 26, 2019, 11:46 a.m. OK Python 2 TESTS 130 171 0 1100
53847765 franckmy A May 7, 2019, 11:57 a.m. OK Python 2 TESTS 130 171 0 1100
53790952 Edge11 A May 5, 2019, 12:48 p.m. OK Python 2 TESTS 130 171 0 1100
53581389 torabey A April 30, 2019, 3:53 p.m. OK Python 2 TESTS 130 171 0 1100
54553721 shubhankarsharma00 A May 24, 2019, 10:34 a.m. OK Python 2 TESTS 130 186 0 1100
53709285 Nurali-006-228713-08 A May 3, 2019, 2:45 p.m. OK Python 2 TESTS 130 186 0 1100
53562826 raman92 A April 30, 2019, 10:40 a.m. OK Python 2 TESTS 130 186 0 1100
53482947 Harsh_jiit A April 28, 2019, 10:31 p.m. OK Python 2 TESTS 130 186 0 1100
68045082 animesht A Jan. 1, 2020, 4:05 p.m. OK Python 2 TESTS 130 187 0 1100
66975180 nitesh_scorpio A Dec. 15, 2019, 2:26 p.m. OK Python 3 TESTS 130 109 0 1100
65346993 Asif01933 A Nov. 19, 2019, 12:56 p.m. OK Python 3 TESTS 130 109 0 1100
63107733 Just__Nick A Oct. 22, 2019, 5:51 a.m. OK Python 3 TESTS 130 109 0 1100
59063420 ramimourani36 A Aug. 19, 2019, 12:13 a.m. OK Python 3 TESTS 130 109 0 1100
58902271 vjudge5 A Aug. 16, 2019, 9:40 a.m. OK Python 3 TESTS 130 109 0 1100
58575245 Harsha1726 A Aug. 11, 2019, 12:05 p.m. OK Python 3 TESTS 130 109 0 1100
57830839 garv_98 A July 27, 2019, 5:57 a.m. OK Python 3 TESTS 130 109 0 1100
57450602 Enqidu A July 21, 2019, 9:36 a.m. OK Python 3 TESTS 130 109 0 1100
56428193 nikunj_patel A July 2, 2019, 10:45 a.m. OK Python 3 TESTS 130 109 0 1100
55688722 russia_putin_money A June 17, 2019, 4:54 p.m. OK Python 3 TESTS 130 109 0 1100
53532909 abedatallah A April 29, 2019, 10:17 p.m. OK Ruby TESTS 130 108 204800 1100
59851088 wadhah1000 A Sept. 1, 2019, 11:35 a.m. OK Rust TESTS 130 31 0 1100
53589780 DragonCoderZ A April 30, 2019, 9:44 p.m. OK Rust TESTS 130 31 0 1100
63074725 manta1130 A Oct. 21, 2019, 1:23 p.m. OK Rust TESTS 130 46 0 1100
56440711 no__ A July 2, 2019, 4:12 p.m. OK Rust TESTS 130 46 0 1100

remove filters

Back to search problems