Codeforces Round 520 (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
1062 Codeforces Round 520 (Div. 2) FINISHED False 7200 195229487 Nov. 14, 2018, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9001 ) B Math PROGRAMMING greedy math number theory 1600

B"JATC's math teacher always gives the class some interesting math problems so that they don't get bored. Today the problem is as follows. Given an integer n , you can perform the following operations zero or more times: You can perform these operations as many times as you like. What is the minimum value of n , that can be achieved and what is the minimum number of operations, to achieve that minimum value? Apparently, no one in the class knows the answer to this problem, maybe you can help them? The only line of the input contains a single integer n ( 1 <= n <= 10^6 ) -- the initial number. Print two integers: the minimum integer n that can be achieved using the described operations and the minimum number of operations required. In the first example, you can apply the operation mul 5 to get 100 and then sqrt to get 10 . In the second example, you can first apply sqrt to get 72 , then mul 18 to get 1296 and finally two more sqrt and you get 6 . Note, that even if the initial value of n is less or equal 10^6 , it can still become greater than 10^6 after applying one or more operations. "...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49899931 vjudge2 B Feb. 14, 2019, 8:49 a.m. OK Clang++17 Diagnostics TESTS 58 46 102400 1600
66081797 kevin.2tazos B Dec. 1, 2019, 12:35 a.m. OK Clang++17 Diagnostics TESTS 58 46 102400 1600
45744686 bee_the_second B Nov. 14, 2018, 7:36 p.m. OK Clang++17 Diagnostics TESTS 58 46 307200 1600
66081814 vjudge4 B Dec. 1, 2019, 12:36 a.m. OK Clang++17 Diagnostics TESTS 58 62 102400 1600
45884576 PandaIsTheBest B Nov. 17, 2018, 3:22 p.m. OK FPC TESTS 58 31 0 1600
45796205 CallBoy B Nov. 16, 2018, 10:52 a.m. OK FPC TESTS 58 31 819200 1600
46716669 YMJcvjk B Dec. 7, 2018, 11:36 a.m. OK FPC TESTS 58 31 3993600 1600
45736812 leedinh B Nov. 14, 2018, 5:15 p.m. OK FPC TESTS 58 31 3993600 1600
45866559 neo11235 B Nov. 17, 2018, 8:16 a.m. OK GNU C11 TESTS 58 31 0 1600
55213015 dhruvmalh B June 6, 2019, 3:26 p.m. OK GNU C11 TESTS 58 31 0 1600
45733771 darkus-_- B Nov. 14, 2018, 4:59 p.m. OK GNU C11 TESTS 58 31 0 1600
45745858 dixitgarg B Nov. 14, 2018, 8:07 p.m. OK GNU C11 TESTS 58 31 819200 1600
46036768 SilverFire B Nov. 21, 2018, 4:52 p.m. OK GNU C11 TESTS 58 31 3993600 1600
45739565 sh_prabhat B Nov. 14, 2018, 5:30 p.m. OK GNU C11 TESTS 58 31 3993600 1600
46036571 tkhabia2303 B Nov. 21, 2018, 4:44 p.m. OK GNU C11 TESTS 58 31 3993600 1600
50044590 vjudge3 B Feb. 17, 2019, 5 a.m. OK GNU C11 TESTS 58 31 3993600 1600
46048092 wawac B Nov. 22, 2018, 4:45 a.m. OK GNU C11 TESTS 58 31 4505600 1600
45731759 coderbd B Nov. 14, 2018, 4:48 p.m. OK GNU C11 TESTS 58 46 4403200 1600
45790430 18481574 B Nov. 16, 2018, 6:36 a.m. OK GNU C++11 TESTS 58 30 0 1600
45765827 BLUESKY007 B Nov. 15, 2018, 12:06 p.m. OK GNU C++11 TESTS 58 30 0 1600
45751881 LiqgNonqfu B Nov. 15, 2018, 2:06 a.m. OK GNU C++11 TESTS 58 30 0 1600
45745481 Hakumapilita B Nov. 14, 2018, 7:57 p.m. OK GNU C++11 TESTS 58 30 0 1600
45900243 vjudge2 B Nov. 18, 2018, 3:55 a.m. OK GNU C++11 TESTS 58 30 0 1600
53716225 checopa B May 3, 2019, 7:09 p.m. OK GNU C++11 TESTS 58 30 0 1600
45796062 Asif_Watson B Nov. 16, 2018, 10:46 a.m. OK GNU C++11 TESTS 58 30 0 1600
50066391 vjudge1 B Feb. 17, 2019, 3:01 p.m. OK GNU C++11 TESTS 58 30 8089600 1600
45798520 pmhai16spt B Nov. 16, 2018, 12:07 p.m. OK GNU C++11 TESTS 58 30 24064000 1600
69382138 Avign B Jan. 22, 2020, 8:08 p.m. OK GNU C++11 TESTS 58 31 0 1600
47377789 stupidshit B Dec. 22, 2018, 6:34 p.m. OK GNU C++14 TESTS 58 15 0 1600
66132371 Surf B Dec. 1, 2019, 10:57 a.m. OK GNU C++14 TESTS 58 15 0 1600
45782937 Medo. B Nov. 15, 2018, 9:14 p.m. OK GNU C++14 TESTS 58 15 0 1600
45774813 Darshan_J_Patel B Nov. 15, 2018, 4:27 p.m. OK GNU C++14 TESTS 58 15 0 1600
45758334 Waxa B Nov. 15, 2018, 7:31 a.m. OK GNU C++14 TESTS 58 15 0 1600
45901284 CoodeForces B Nov. 18, 2018, 5:02 a.m. OK GNU C++14 TESTS 58 15 0 1600
46550639 kgoyal B Dec. 3, 2018, 5:36 p.m. OK GNU C++14 TESTS 58 15 0 1600
50561814 I_D0nt_Kn0w B Feb. 27, 2019, 11:28 a.m. OK GNU C++14 TESTS 58 15 5017600 1600
69413506 tytanium B Jan. 23, 2020, 12:24 p.m. OK GNU C++14 TESTS 58 30 0 1600
66530397 mine691_lily B Dec. 9, 2019, 7:30 a.m. OK GNU C++14 TESTS 58 30 0 1600
47532284 fedimser B Dec. 26, 2018, 8:15 p.m. OK GNU C++17 TESTS 58 15 0 1600
54023946 vjudge3 B May 12, 2019, 11:26 a.m. OK GNU C++17 TESTS 58 15 102400 1600
45787753 rmedeiros23 B Nov. 16, 2018, 3:52 a.m. OK GNU C++17 TESTS 58 15 204800 1600
45786298 cocktail B Nov. 16, 2018, 2:08 a.m. OK GNU C++17 TESTS 58 15 204800 1600
45990864 divyanshshukla13 B Nov. 20, 2018, 9:44 a.m. OK GNU C++17 TESTS 58 15 204800 1600
46020669 yashar_sb_sb B Nov. 21, 2018, 7:45 a.m. OK GNU C++17 TESTS 58 15 204800 1600
45778100 Nowshad B Nov. 15, 2018, 6:25 p.m. OK GNU C++17 TESTS 58 15 307200 1600
45750372 yizhibaiwuya B Nov. 15, 2018, 12:14 a.m. OK GNU C++17 TESTS 58 15 307200 1600
45754332 leo7279 B Nov. 15, 2018, 4:33 a.m. OK GNU C++17 TESTS 58 15 307200 1600
46296192 eethan1 B Nov. 28, 2018, 3:02 a.m. OK GNU C++17 TESTS 58 15 409600 1600
57188429 HCI B July 17, 2019, 9:32 a.m. OK Go TESTS 58 31 0 1600
50250573 cprayer B Feb. 20, 2019, 5:02 p.m. OK Go TESTS 58 31 0 1600
46925434 davidguandev B Dec. 12, 2018, 8:20 a.m. OK Go TESTS 58 31 0 1600
45858544 vector9x B Nov. 17, 2018, 3:51 a.m. OK Go TESTS 58 31 0 1600
45734761 ravst_hsk B Nov. 14, 2018, 5:04 p.m. OK Haskell TESTS 58 31 8396800 1600
68021661 betcHajosHingjosH B Dec. 31, 2019, 11:59 p.m. OK Java 11 TESTS 58 171 0 1600
69548473 lazypanda B Jan. 26, 2020, 5:01 a.m. OK Java 8 TESTS 58 109 0 1600
57344405 adeepgarg13 B July 19, 2019, 9:17 p.m. OK Java 8 TESTS 58 109 0 1600
57333779 Java B July 19, 2019, 3:13 p.m. OK Java 8 TESTS 58 109 0 1600
52530716 xodiac B April 9, 2019, 1:22 p.m. OK Java 8 TESTS 58 109 0 1600
49341018 Icentamein B Feb. 1, 2019, 11:05 p.m. OK Java 8 TESTS 58 109 0 1600
48575572 prituladima B Jan. 19, 2019, 1:55 p.m. OK Java 8 TESTS 58 109 0 1600
47965332 aschugunov B Jan. 5, 2019, 11:50 a.m. OK Java 8 TESTS 58 109 0 1600
47860116 SpargelTarzan B Jan. 3, 2019, 5:17 a.m. OK Java 8 TESTS 58 109 0 1600
47418946 Pratik_Rajani B Dec. 23, 2018, 2:37 p.m. OK Java 8 TESTS 58 109 0 1600
46910548 abhi2601 B Dec. 11, 2018, 4:41 p.m. OK Java 8 TESTS 58 109 0 1600
45762416 dimoff66 B Nov. 15, 2018, 9:56 a.m. OK JavaScript TESTS 58 31 0 1600
45919304 DmitryDrozdov B Nov. 18, 2018, 3:37 p.m. OK Mono C# TESTS 58 46 0 1600
45876238 nastya1199 B Nov. 17, 2018, 12:04 p.m. OK Mono C# TESTS 58 46 0 1600
45750755 eki B Nov. 15, 2018, 12:43 a.m. OK Mono C# TESTS 58 61 102400 1600
45918966 DmitryDrozdov B Nov. 18, 2018, 3:24 p.m. OK Mono C# TESTS 58 62 0 1600
45918786 DmitryDrozdov B Nov. 18, 2018, 3:19 p.m. OK Mono C# TESTS 58 62 0 1600
45784469 niquefa_diego B Nov. 15, 2018, 11:19 p.m. OK Mono C# TESTS 58 62 0 1600
45732224 Coder_D B Nov. 14, 2018, 4:50 p.m. OK Mono C# TESTS 58 62 0 1600
45798174 trubor B Nov. 16, 2018, 11:57 a.m. OK Mono C# TESTS 58 62 3584000 1600
46848839 Mem B Dec. 10, 2018, 11:18 a.m. OK Mono C# TESTS 58 62 3584000 1600
45742202 Roverandom B Nov. 14, 2018, 6:57 p.m. OK Mono C# TESTS 58 62 3891200 1600
53767170 vjudge1 B May 5, 2019, 1:30 a.m. OK MS C++ TESTS 58 31 0 1600
53560287 vjudge4 B April 30, 2019, 9:04 a.m. OK MS C++ TESTS 58 31 0 1600
49850728 vjudge3 B Feb. 13, 2019, 3:20 a.m. OK MS C++ TESTS 58 31 0 1600
60756806 vjudge1 B Sept. 18, 2019, 9:19 a.m. OK MS C++ TESTS 58 31 0 1600
60757415 vjudge4 B Sept. 18, 2019, 9:35 a.m. OK MS C++ TESTS 58 31 0 1600
60910628 vjudge5 B Sept. 20, 2019, 5:41 a.m. OK MS C++ TESTS 58 31 0 1600
66096163 vjudge4 B Dec. 1, 2019, 7:58 a.m. OK MS C++ TESTS 58 31 0 1600
53767199 vjudge1 B May 5, 2019, 1:32 a.m. OK MS C++ TESTS 58 31 0 1600
53863650 yznl B May 8, 2019, 12:44 a.m. OK MS C++ TESTS 58 31 0 1600
53863659 yznl B May 8, 2019, 12:45 a.m. OK MS C++ TESTS 58 31 0 1600
54050175 atckh B May 12, 2019, 7:40 p.m. OK MS C++ 2017 TESTS 58 31 0 1600
65935215 maneatingmonkey B Nov. 29, 2019, 1:18 a.m. OK MS C++ 2017 TESTS 58 31 0 1600
62188575 AleksanderBalobanov B Oct. 9, 2019, 9:01 a.m. OK MS C++ 2017 TESTS 58 31 0 1600
60753599 vjudge3 B Sept. 18, 2019, 7:42 a.m. OK MS C++ 2017 TESTS 58 31 0 1600
65935230 vjudge3 B Nov. 29, 2019, 1:18 a.m. OK MS C++ 2017 TESTS 58 31 307200 1600
59918770 lokolo B Sept. 2, 2019, 8:49 p.m. OK MS C++ 2017 TESTS 58 31 3993600 1600
62799877 Landerkid B Oct. 17, 2019, 2:18 p.m. OK MS C++ 2017 TESTS 58 46 0 1600
55929841 petko_mitkov B June 22, 2019, 10:56 a.m. OK MS C++ 2017 TESTS 58 46 0 1600
49899806 coder_pikachu B Feb. 14, 2019, 8:46 a.m. OK MS C++ 2017 TESTS 58 46 0 1600
64896133 MRamanauskas B Nov. 14, 2019, 4:40 p.m. OK MS C++ 2017 TESTS 58 124 16076800 1600
45745791 sk0 B Nov. 14, 2018, 8:05 p.m. OK Ocaml TESTS 58 31 307200 1600
45745702 sk0 B Nov. 14, 2018, 8:02 p.m. OK Ocaml TESTS 58 46 307200 1600
45744667 sk0 B Nov. 14, 2018, 7:36 p.m. OK Ocaml TESTS 58 78 7577600 1600
45759072 ElIlia B Nov. 15, 2018, 7:57 a.m. OK PascalABC.NET TESTS 58 46 0 1600
45795385 KGYYT B Nov. 16, 2018, 10:24 a.m. OK PascalABC.NET TESTS 58 46 0 1600
51993171 mm944 B March 29, 2019, 9:54 p.m. OK PascalABC.NET TESTS 58 311 0 1600
45744097 rsFalse B Nov. 14, 2018, 7:25 p.m. OK Perl TESTS 58 31 0 1600
45732956 rsFalse B Nov. 14, 2018, 4:54 p.m. OK Perl TESTS 58 46 0 1600
45735251 katalama B Nov. 14, 2018, 5:07 p.m. OK PHP TESTS 58 46 409600 1600
45754642 latsyrc1123 B Nov. 15, 2018, 4:48 a.m. OK PyPy 2 TESTS 58 124 0 1600
48548899 wangkan2001 B Jan. 18, 2019, 10:40 p.m. OK PyPy 2 TESTS 58 124 0 1600
49891891 kipply B Feb. 14, 2019, 4:31 a.m. OK PyPy 2 TESTS 58 124 0 1600
48317682 soumyasarkar1998 B Jan. 13, 2019, 7:29 a.m. OK PyPy 2 TESTS 58 155 102400 1600
49458189 Mukundan314 B Feb. 4, 2019, 11:33 a.m. OK PyPy 2 TESTS 58 202 2150400 1600
45753358 raven_47 B Nov. 15, 2018, 3:36 a.m. OK PyPy 2 TESTS 58 202 6144000 1600
45917557 ARSHIA B Nov. 18, 2018, 2:44 p.m. OK PyPy 3 TESTS 58 139 0 1600
45790347 limitbreaker37 B Nov. 16, 2018, 6:32 a.m. OK PyPy 3 TESTS 58 139 0 1600
45743811 111vad111 B Nov. 14, 2018, 7:20 p.m. OK PyPy 3 TESTS 58 139 0 1600
68657489 Anu_cool B Jan. 12, 2020, 12:39 p.m. OK PyPy 3 TESTS 58 140 0 1600
45779950 cgfs10000 B Nov. 15, 2018, 7:30 p.m. OK PyPy 3 TESTS 58 140 0 1600
45756394 nikeshthapa255 B Nov. 15, 2018, 6:12 a.m. OK PyPy 3 TESTS 58 140 0 1600
45747725 SpecialGuest B Nov. 14, 2018, 9:09 p.m. OK PyPy 3 TESTS 58 140 0 1600
45745632 Marii B Nov. 14, 2018, 8 p.m. OK PyPy 3 TESTS 58 140 0 1600
45744754 LordVader B Nov. 14, 2018, 7:38 p.m. OK PyPy 3 TESTS 58 140 0 1600
68343388 latter0206 B Jan. 7, 2020, 5:40 a.m. OK PyPy 3 TESTS 58 155 0 1600
46994528 saloni_99 B Dec. 14, 2018, 7:31 a.m. OK Python 2 TESTS 58 171 0 1600
48718214 ssk497 B Jan. 22, 2019, 12:20 p.m. OK Python 2 TESTS 58 187 0 1600
46264221 nealzane B Nov. 26, 2018, 11:56 p.m. OK Python 2 TESTS 58 187 0 1600
45743796 anshuman16423 B Nov. 14, 2018, 7:20 p.m. OK Python 2 TESTS 58 202 102400 1600
45748963 OO0_Li_0OOx B Nov. 14, 2018, 10:17 p.m. OK Python 2 TESTS 58 218 16281600 1600
45776668 OO0_Li_0OOx B Nov. 15, 2018, 5:29 p.m. OK Python 2 TESTS 58 233 16281600 1600
45736764 ashashwat B Nov. 14, 2018, 5:15 p.m. OK Python 2 TESTS 58 249 5324800 1600
45752482 aeternalis1 B Nov. 15, 2018, 2:45 a.m. OK Python 2 TESTS 58 249 24883200 1600
45758456 radhikapillai25 B Nov. 15, 2018, 7:36 a.m. OK Python 2 TESTS 58 280 0 1600
45731930 1252187392 B Nov. 14, 2018, 4:49 p.m. OK Python 2 TESTS 58 296 16384000 1600
45790373 atharva456 B Nov. 16, 2018, 6:33 a.m. OK Python 3 TESTS 58 109 0 1600
45760193 strint B Nov. 15, 2018, 8:37 a.m. OK Python 3 TESTS 58 109 0 1600
45755668 flydzen B Nov. 15, 2018, 5:38 a.m. OK Python 3 TESTS 58 109 0 1600
45754151 loalkota B Nov. 15, 2018, 4:21 a.m. OK Python 3 TESTS 58 109 0 1600
45777587 snjumaheshwari98 B Nov. 15, 2018, 6:06 p.m. OK Python 3 TESTS 58 109 0 1600
53175845 daotiennamhlvl B April 23, 2019, 3:37 a.m. OK Python 3 TESTS 58 109 0 1600
53175630 daotiennamhlvl B April 23, 2019, 3:27 a.m. OK Python 3 TESTS 58 109 0 1600
45987411 IsThatYou B Nov. 20, 2018, 7:37 a.m. OK Python 3 TESTS 58 109 0 1600
67520798 fiiirsmiiirs B Dec. 24, 2019, 12:21 p.m. OK Python 3 TESTS 58 109 307200 1600
52986221 Losiash_prog B April 18, 2019, 7:01 p.m. OK Python 3 TESTS 58 109 307200 1600
45741853 geckods B Nov. 14, 2018, 6:53 p.m. OK Ruby TESTS 58 78 307200 1600
45739837 nafeezabrar B Nov. 14, 2018, 5:31 p.m. OK Scala TESTS 58 421 0 1600
45743840 truongbom B Nov. 14, 2018, 7:20 p.m. OK Scala TESTS 58 811 62668800 1600

remove filters

Back to search problems