Codeforces Round 547 (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
1141 Codeforces Round 547 (Div. 3) FINISHED False 7200 178817099 March 19, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 32293 ) A Game 23 PROGRAMMING implementation math 1000

B'Polycarp plays "Game 23". Initially he has a number n and his goal is to transform it to m . In one move, he can multiply n by 2 or multiply n by 3 . He can perform any number of moves. Print the number of moves needed to transform n to m . Print -1 if it is impossible to do so. It is easy to prove that any way to transform n to m contains the same number of moves (i.e. number of moves doesn 't depend on the way of transformation). The only line of the input contains two integers n and m ( 1 <= n <= m <= 5 cdot10^8 ). Print the number of moves to transform n to m , or -1 if there is no solution. In the first example, the possible sequence of moves is: 120 rightarrow 240 rightarrow 720 rightarrow 1440 rightarrow 4320 rightarrow 12960 rightarrow 25920 rightarrow 51840. The are 7 steps in total. In the second example, no moves are needed. Thus, the answer is 0 . In the third example, it is impossible to transform 48 to 72 . '...

Tutorials

66062

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52294998 vjudge4 A April 4, 2019, 5:33 a.m. OK Clang++17 Diagnostics TESTS 77 46 0 1000
57069215 vjudge5 A July 15, 2019, 1:28 a.m. OK Clang++17 Diagnostics TESTS 77 46 0 1000
52381920 Dnacvtiud A April 6, 2019, 10:30 a.m. OK Clang++17 Diagnostics TESTS 77 46 0 1000
52020148 tramdang2000 A March 30, 2019, 12:18 p.m. OK Clang++17 Diagnostics TESTS 77 46 0 1000
68400899 Neeraj9436 A Jan. 8, 2020, 1:07 p.m. OK Clang++17 Diagnostics TESTS 77 61 204800 1000
53703613 vabshere A May 3, 2019, 12:01 p.m. OK Clang++17 Diagnostics TESTS 77 62 0 1000
52703098 eXodiquas A April 13, 2019, 3:11 p.m. OK D TESTS 77 31 0 1000
52724025 Denor A April 13, 2019, 10:03 p.m. OK Delphi TESTS 77 31 0 1000
58149044 hzhzhz5 A Aug. 2, 2019, 1:12 a.m. OK FPC TESTS 77 31 0 1000
59603837 YuLeo A Aug. 28, 2019, 7:46 a.m. OK FPC TESTS 77 31 0 1000
55818305 HQT2003 A June 20, 2019, 7:23 a.m. OK FPC TESTS 77 31 0 1000
52513655 omlgg A April 9, 2019, 2:50 a.m. OK FPC TESTS 77 31 0 1000
52327675 satthusitinh A April 5, 2019, 2:28 a.m. OK FPC TESTS 77 31 0 1000
52226573 vjudge5 A April 2, 2019, 9:49 a.m. OK FPC TESTS 77 31 0 1000
52065561 i9code A March 31, 2019, 5:10 a.m. OK FPC TESTS 77 31 0 1000
64119835 tranminhprvt01 A Nov. 3, 2019, 12:01 a.m. OK FPC TESTS 77 31 204800 1000
51960842 m.hasan01 A March 29, 2019, 6:41 a.m. OK FPC TESTS 77 31 204800 1000
64098833 calonmaster A Nov. 2, 2019, 2:46 p.m. OK FPC TESTS 77 31 307200 1000
69576950 Saydia A Jan. 26, 2020, 3:53 p.m. OK GNU C11 TESTS 77 31 0 1000
67872132 shs13 A Dec. 29, 2019, 11:54 a.m. OK GNU C11 TESTS 77 31 0 1000
68105931 baezilisK A Jan. 3, 2020, 7:02 a.m. OK GNU C11 TESTS 77 31 0 1000
68877661 apolar.genc A Jan. 15, 2020, 5:31 p.m. OK GNU C11 TESTS 77 31 0 1000
69428469 Mitsinbits A Jan. 23, 2020, 4:32 p.m. OK GNU C11 TESTS 77 31 0 1000
67773174 death_note_ A Dec. 28, 2019, 7:45 a.m. OK GNU C11 TESTS 77 31 0 1000
69688916 radlid A Jan. 28, 2020, 5:57 p.m. OK GNU C11 TESTS 77 31 0 1000
67447867 raresmihai01 A Dec. 23, 2019, 12:27 a.m. OK GNU C11 TESTS 77 31 0 1000
67760391 shadreza A Dec. 27, 2019, 9:50 p.m. OK GNU C11 TESTS 77 31 0 1000
67767487 jorgmandr A Dec. 28, 2019, 4:59 a.m. OK GNU C11 TESTS 77 31 0 1000
52356974 sajjad.h A April 5, 2019, 5:23 p.m. OK GNU C++11 TESTS 77 30 0 1000
56465055 0s4l1n6_requiem A July 3, 2019, 8:34 a.m. OK GNU C++11 TESTS 77 30 0 1000
52004084 letriman A March 30, 2019, 7:34 a.m. OK GNU C++11 TESTS 77 30 0 1000
52019476 luogu_bot2 A March 30, 2019, noon OK GNU C++11 TESTS 77 30 0 1000
69680969 vjudge3 A Jan. 28, 2020, 3:37 p.m. OK GNU C++11 TESTS 77 31 0 1000
69790786 Goofey A Jan. 29, 2020, 6:26 p.m. OK GNU C++11 TESTS 77 31 0 1000
69790825 vjudge1 A Jan. 29, 2020, 6:27 p.m. OK GNU C++11 TESTS 77 31 0 1000
69861976 Sonic97 A Jan. 30, 2020, 6:50 p.m. OK GNU C++11 TESTS 77 31 0 1000
69710186 sajid198 A Jan. 29, 2020, 6:41 a.m. OK GNU C++11 TESTS 77 31 0 1000
69703258 karimfarhouti A Jan. 29, 2020, 2:40 a.m. OK GNU C++11 TESTS 77 31 0 1000
53266777 proptit_12_1_13 A April 25, 2019, 2:34 a.m. OK GNU C++14 TESTS 77 15 0 1000
51929212 Heartmind A March 28, 2019, 9:25 a.m. OK GNU C++14 TESTS 77 15 0 1000
53223175 lamvh2812 A April 24, 2019, 12:56 p.m. OK GNU C++14 TESTS 77 15 0 1000
64100004 calonmaster A Nov. 2, 2019, 3:07 p.m. OK GNU C++14 TESTS 77 30 0 1000
68215413 vamsicool007 A Jan. 4, 2020, 10:35 p.m. OK GNU C++14 TESTS 77 30 0 1000
67309732 yangchaoyi A Dec. 21, 2019, 1:31 a.m. OK GNU C++14 TESTS 77 30 0 1000
66269229 BenW A Dec. 4, 2019, 11:41 a.m. OK GNU C++14 TESTS 77 30 0 1000
65937917 JamesKi A Nov. 29, 2019, 3:51 a.m. OK GNU C++14 TESTS 77 30 0 1000
63986831 patidarronak07 A Nov. 1, 2019, noon OK GNU C++14 TESTS 77 30 0 1000
62391982 Zhu_Jiu A Oct. 12, 2019, 2:55 a.m. OK GNU C++14 TESTS 77 30 0 1000
53834258 zstzst A May 7, 2019, 12:33 a.m. OK GNU C++17 TESTS 77 15 0 1000
57070877 vjudge3 A July 15, 2019, 2:30 a.m. OK GNU C++17 TESTS 77 15 0 1000
57567240 _Madotsuki_ A July 23, 2019, 3:26 a.m. OK GNU C++17 TESTS 77 15 0 1000
59954133 bhawani0910 A Sept. 3, 2019, 3:31 p.m. OK GNU C++17 TESTS 77 15 0 1000
52150964 .tx A April 1, 2019, 11:36 a.m. OK GNU C++17 TESTS 77 15 0 1000
52635822 F-Mu A April 12, 2019, 9:58 a.m. OK GNU C++17 TESTS 77 15 204800 1000
66638370 nirjhorJU A Dec. 11, 2019, 1:47 p.m. OK GNU C++17 TESTS 77 30 0 1000
68736589 Tokee_iitju A Jan. 13, 2020, 8:33 p.m. OK GNU C++17 TESTS 77 30 0 1000
69470005 kair011a_ A Jan. 24, 2020, 2:13 p.m. OK GNU C++17 TESTS 77 30 0 1000
66545419 ERROR... A Dec. 9, 2019, 1:02 p.m. OK GNU C++17 TESTS 77 30 0 1000
61787249 ekZam A Oct. 3, 2019, 2:47 p.m. OK Go TESTS 77 31 0 1000
56948445 DorMOUSE-None A July 13, 2019, 12:42 a.m. OK Go TESTS 77 31 0 1000
54821445 tony_stark1 A May 30, 2019, 3:11 a.m. OK Go TESTS 77 31 0 1000
53884901 one0one A May 8, 2019, 5:22 p.m. OK Go TESTS 77 31 0 1000
52028045 avtobus A March 30, 2019, 4:01 p.m. OK Go TESTS 77 31 0 1000
52015595 vchilikov A March 30, 2019, 10:26 a.m. OK Go TESTS 77 31 0 1000
67397892 sighduck A Dec. 22, 2019, 1:17 a.m. OK Go TESTS 77 46 0 1000
52027836 avtobus A March 30, 2019, 3:53 p.m. OK Go TESTS 77 46 0 1000
51898510 AlwaysGreen A March 27, 2019, 12:36 p.m. OK Go TESTS 77 46 0 1000
53180417 sonowz A April 23, 2019, 7:15 a.m. OK Haskell TESTS 77 46 102400 1000
57747222 Jsxft A July 25, 2019, 1:29 p.m. OK Haskell TESTS 77 46 102400 1000
57429462 jmazon A July 20, 2019, 11:26 p.m. OK Haskell TESTS 77 46 102400 1000
55576763 Russell_Emerine A June 15, 2019, 2:11 a.m. OK Haskell TESTS 77 46 102400 1000
51879744 kobortor_haskell A March 26, 2019, 10:36 p.m. OK Haskell TESTS 77 46 102400 1000
51813331 sahiltiwari A March 25, 2019, 7:28 a.m. OK Haskell TESTS 77 46 102400 1000
68566045 its_me_ft A Jan. 10, 2020, 9:20 p.m. OK Java 11 TESTS 77 217 0 1000
67216922 Justcodeit22 A Dec. 19, 2019, 2:52 p.m. OK Java 11 TESTS 77 218 0 1000
59922145 vjudge3 A Sept. 3, 2019, 12:11 a.m. OK Java 8 TESTS 77 109 0 1000
58106686 darren_yao A Aug. 1, 2019, 4:48 a.m. OK Java 8 TESTS 77 109 0 1000
57429919 Samez A July 21, 2019, 12:01 a.m. OK Java 8 TESTS 77 109 0 1000
57428561 vvenkai A July 20, 2019, 10:26 p.m. OK Java 8 TESTS 77 109 0 1000
56880790 ujjwalsingh30 A July 12, 2019, 10:21 a.m. OK Java 8 TESTS 77 109 0 1000
56165888 Nutella3000 A June 27, 2019, 2:16 p.m. OK Java 8 TESTS 77 109 0 1000
54942605 viczammer A June 1, 2019, 4:27 p.m. OK Java 8 TESTS 77 109 0 1000
54840072 ragpatel8742 A May 30, 2019, 12:24 p.m. OK Java 8 TESTS 77 109 0 1000
54718921 ankyy_0103 A May 27, 2019, 3:10 p.m. OK Java 8 TESTS 77 109 0 1000
54013110 mufaddalnaya A May 12, 2019, 4:29 a.m. OK Java 8 TESTS 77 109 0 1000
53886255 one0one A May 8, 2019, 6:25 p.m. OK JavaScript TESTS 77 31 0 1000
52149331 codedsaasd A April 1, 2019, 10:58 a.m. OK JavaScript TESTS 77 31 0 1000
53491494 I.A.K.O.V A April 29, 2019, 8:58 a.m. OK Kotlin TESTS 77 124 0 1000
53491403 I.A.K.O.V A April 29, 2019, 8:55 a.m. OK Kotlin TESTS 77 124 0 1000
53491323 I.A.K.O.V A April 29, 2019, 8:52 a.m. OK Kotlin TESTS 77 140 0 1000
52199520 nickmeller A April 1, 2019, 4:48 p.m. OK Kotlin TESTS 77 140 0 1000
51867025 BlackLunx A March 26, 2019, 3:39 p.m. OK Kotlin TESTS 77 155 102400 1000
57196435 alxrm A July 17, 2019, 12:20 p.m. OK Kotlin TESTS 77 171 102400 1000
58111083 Spheniscine A Aug. 1, 2019, 7:10 a.m. OK Kotlin TESTS 77 171 102400 1000
57195688 alxrm A July 17, 2019, 12:07 p.m. OK Kotlin TESTS 77 296 1536000 1000
54487639 iamlegend A May 22, 2019, 1:53 p.m. OK Mono C# TESTS 77 46 0 1000
53741742 og.kostya A May 4, 2019, 2:15 p.m. OK Mono C# TESTS 77 46 0 1000
53968065 one0one A May 10, 2019, 6:44 p.m. OK Mono C# TESTS 77 46 0 1000
54372543 m1_k3 A May 19, 2019, 7:16 a.m. OK Mono C# TESTS 77 46 0 1000
52461613 Salatik231166 A April 7, 2019, 1:41 p.m. OK Mono C# TESTS 77 46 0 1000
51851672 Gray_Rhino A March 26, 2019, 8:21 a.m. OK Mono C# TESTS 77 61 0 1000
60840948 den.egorychev A Sept. 19, 2019, 10:55 a.m. OK Mono C# TESTS 77 62 0 1000
58935220 shohag_16030 A Aug. 17, 2019, 3:39 a.m. OK Mono C# TESTS 77 62 0 1000
51843505 EKMPls A March 26, 2019, 1:35 a.m. OK Mono C# TESTS 77 62 1638400 1000
63112392 hibatibati A Oct. 22, 2019, 8:02 a.m. OK Mono C# TESTS 77 62 1638400 1000
52727387 vjudge1 A April 14, 2019, 1:45 a.m. OK MS C++ TESTS 77 30 0 1000
66012337 vjudge3 A Nov. 30, 2019, 3:21 a.m. OK MS C++ TESTS 77 31 0 1000
69703823 vjudge1 A Jan. 29, 2020, 3:06 a.m. OK MS C++ TESTS 77 31 0 1000
69573400 vjudge1 A Jan. 26, 2020, 2:47 p.m. OK MS C++ TESTS 77 31 0 1000
68772378 vjudge4 A Jan. 14, 2020, 12:20 p.m. OK MS C++ TESTS 77 31 0 1000
68687343 vjudge5 A Jan. 13, 2020, 4:16 a.m. OK MS C++ TESTS 77 31 0 1000
68349389 vjudge1 A Jan. 7, 2020, 9:04 a.m. OK MS C++ TESTS 77 31 0 1000
66137299 vjudge3 A Dec. 1, 2019, 12:47 p.m. OK MS C++ TESTS 77 31 0 1000
66027104 vjudge1 A Nov. 30, 2019, 9:01 a.m. OK MS C++ TESTS 77 31 0 1000
66021976 vjudge5 A Nov. 30, 2019, 7:38 a.m. OK MS C++ TESTS 77 31 0 1000
60840791 azazas A Sept. 19, 2019, 10:52 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
60955783 vjudge3 A Sept. 21, 2019, 2:30 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
61102220 hosein_bidaki A Sept. 23, 2019, 7:25 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
62564135 vjudge5 A Oct. 14, 2019, 12:48 p.m. OK MS C++ 2017 TESTS 77 31 0 1000
62965250 copycode A Oct. 20, 2019, 4:09 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
62965274 copycode A Oct. 20, 2019, 4:09 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
64183299 vjudge3 A Nov. 4, 2019, 2:54 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
64183365 vjudge4 A Nov. 4, 2019, 2:57 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
65886473 vjudge5 A Nov. 27, 2019, 10:56 p.m. OK MS C++ 2017 TESTS 77 31 0 1000
68152893 Shiyuzhi A Jan. 4, 2020, 7:40 a.m. OK MS C++ 2017 TESTS 77 31 0 1000
64404196 fc-lib-xyz A Nov. 6, 2019, 4:21 p.m. OK Node.js TESTS 77 187 512000 1000
52132520 sngv A March 31, 2019, 9:57 p.m. OK Node.js TESTS 77 296 4505600 1000
51849312 rediska336 A March 26, 2019, 6:59 a.m. OK PascalABC.NET TESTS 77 186 0 1000
52381472 Grigory2009 A April 6, 2019, 10:18 a.m. OK PascalABC.NET TESTS 77 187 0 1000
56024518 Gimber A June 25, 2019, 6:14 a.m. OK PascalABC.NET TESTS 77 202 0 1000
55056191 28Nik A June 3, 2019, 7:06 p.m. OK PascalABC.NET TESTS 77 202 0 1000
52644229 Braintorm A April 12, 2019, 1:47 p.m. OK PascalABC.NET TESTS 77 311 102400 1000
53191843 a.holodov A April 23, 2019, 1:14 p.m. OK PascalABC.NET TESTS 77 312 102400 1000
63541018 SlavaNixon A Oct. 27, 2019, 9:20 a.m. OK PascalABC.NET TESTS 77 312 102400 1000
51989555 rm.R0b0T A March 29, 2019, 7:12 p.m. OK PascalABC.NET TESTS 77 327 102400 1000
52351363 Houy3 A April 5, 2019, 2:43 p.m. OK PascalABC.NET TESTS 77 358 204800 1000
53560346 lostamok A April 30, 2019, 9:06 a.m. OK PHP TESTS 77 46 0 1000
53968533 one0one A May 10, 2019, 7:05 p.m. OK PHP TESTS 77 46 512000 1000
52028634 bertrandovide A March 30, 2019, 4:21 p.m. OK PyPy 2 TESTS 77 124 0 1000
52028586 bertrandovide A March 30, 2019, 4:20 p.m. OK PyPy 2 TESTS 77 124 0 1000
54634920 chaudhary_19 A May 25, 2019, 4:27 p.m. OK PyPy 2 TESTS 77 124 307200 1000
57968549 uz2ee A July 30, 2019, 4:23 a.m. OK PyPy 2 TESTS 77 155 0 1000
52136875 manoj.narens A April 1, 2019, 3:37 a.m. OK PyPy 2 TESTS 77 155 0 1000
52442225 sy_chen A April 7, 2019, 6:45 a.m. OK PyPy 2 TESTS 77 186 0 1000
52822668 Derzeed A April 16, 2019, 12:35 p.m. OK PyPy 2 TESTS 77 202 0 1000
59675963 ssk497 A Aug. 29, 2019, 6:08 p.m. OK PyPy 2 TESTS 77 280 7475200 1000
57961794 PedroA A July 29, 2019, 11:33 p.m. OK PyPy 2 TESTS 77 374 7680000 1000
58195125 vjudge2 A Aug. 2, 2019, 11:01 p.m. OK PyPy 2 TESTS 77 389 7680000 1000
55312056 x313x A June 8, 2019, 6:19 p.m. OK PyPy 3 TESTS 77 124 0 1000
52460693 Kirillov_Alexey A April 7, 2019, 1:19 p.m. OK PyPy 3 TESTS 77 124 0 1000
52226789 guardian.of.gods99 A April 2, 2019, 9:57 a.m. OK PyPy 3 TESTS 77 124 0 1000
52079313 ildarishe A March 31, 2019, 11:29 a.m. OK PyPy 3 TESTS 77 124 0 1000
52058938 LordVader A March 30, 2019, 9:59 p.m. OK PyPy 3 TESTS 77 124 0 1000
51995939 Kevin1010 A March 30, 2019, 1:59 a.m. OK PyPy 3 TESTS 77 124 0 1000
51958123 mr.adisbek A March 29, 2019, 4:41 a.m. OK PyPy 3 TESTS 77 124 0 1000
51831373 CowboyFromHell A March 25, 2019, 4:21 p.m. OK PyPy 3 TESTS 77 124 0 1000
52217793 acesine A April 2, 2019, 4 a.m. OK PyPy 3 TESTS 77 139 0 1000
51900096 surajsirvi88 A March 27, 2019, 1:11 p.m. OK PyPy 3 TESTS 77 139 0 1000
59114924 vjudge1 A Aug. 20, 2019, 12:50 a.m. OK Python 2 TESTS 77 171 0 1000
58936920 biltharesatyendra A Aug. 17, 2019, 4:53 a.m. OK Python 2 TESTS 77 171 0 1000
54636113 phoenix28 A May 25, 2019, 5:06 p.m. OK Python 2 TESTS 77 171 0 1000
52799467 franckmy A April 16, 2019, 1:28 a.m. OK Python 2 TESTS 77 171 0 1000
52243816 vjudge1 A April 2, 2019, 5:58 p.m. OK Python 2 TESTS 77 171 0 1000
52213547 vjudge3 A April 1, 2019, 10:02 p.m. OK Python 2 TESTS 77 171 0 1000
52207209 grossman.alexander A April 1, 2019, 5:50 p.m. OK Python 2 TESTS 77 171 0 1000
52059724 vjudge5 A March 30, 2019, 10:56 p.m. OK Python 2 TESTS 77 171 0 1000
52059700 ping_toddy A March 30, 2019, 10:53 p.m. OK Python 2 TESTS 77 171 0 1000
51954750 vjudge3 A March 29, 2019, 12:44 a.m. OK Python 2 TESTS 77 171 0 1000
55235446 Mint_Dentifrice A June 7, 2019, 8:10 a.m. OK Python 3 TESTS 77 108 0 1000
54726077 rodrigods A May 27, 2019, 8:38 p.m. OK Python 3 TESTS 77 108 0 1000
54497442 Zuizehongquaunha A May 22, 2019, 6:34 p.m. OK Python 3 TESTS 77 108 0 1000
54497396 guardian.of.gods99 A May 22, 2019, 6:33 p.m. OK Python 3 TESTS 77 108 0 1000
54435030 GonGs A May 21, 2019, 4:39 a.m. OK Python 3 TESTS 77 108 0 1000
54317956 vjudge5 A May 17, 2019, 7:17 p.m. OK Python 3 TESTS 77 108 0 1000
54316018 vjudge2 A May 17, 2019, 6:27 p.m. OK Python 3 TESTS 77 108 0 1000
52613113 victorbreder A April 11, 2019, 4:58 p.m. OK Python 3 TESTS 77 108 0 1000
52207916 R_H_Razu A April 1, 2019, 6:06 p.m. OK Python 3 TESTS 77 108 0 1000
52207750 amarjeet_singh A April 1, 2019, 6:02 p.m. OK Python 3 TESTS 77 108 0 1000
53837002 omar_hany A May 7, 2019, 4:06 a.m. OK Ruby TESTS 77 62 0 1000
59429127 megachuhancer A Aug. 25, 2019, 5:10 a.m. OK Ruby TESTS 77 62 102400 1000
51877482 clupasq A March 26, 2019, 8:24 p.m. OK Ruby TESTS 77 77 204800 1000
61396841 sansen A Sept. 28, 2019, 2:48 a.m. OK Rust TESTS 77 31 0 1000
55707727 tuna_salad A June 18, 2019, 8:33 a.m. OK Rust TESTS 77 31 0 1000
52285340 alykov A April 3, 2019, 7:23 p.m. OK Rust TESTS 77 31 0 1000
51813379 Asura A March 25, 2019, 7:30 a.m. OK Rust TESTS 77 31 0 1000
56063077 hir12111 A June 26, 2019, 6:33 a.m. OK Rust TESTS 77 31 102400 1000
51943595 Z.Y A March 28, 2019, 3:39 p.m. OK Scala TESTS 77 405 0 1000

remove filters

Back to search problems