Codeforces Round 595 (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
1249 Codeforces Round 595 (Div. 3) FINISHED False 8100 165684287 Oct. 22, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15735 ) C1 Good Numbers (easy version) PROGRAMMING brute force greedy implementation 1300

B'The only difference between easy and hard versions is the maximum value of n . You are given a positive integer number n . You really love good numbers so you want to find the smallest good number greater than or equal to n . The positive integer is called good if it can be represented as a sum of distinct powers of 3 (i.e. no duplicates of powers of 3 are allowed). For example: Note, that there exist other representations of 19 and 20 as sums of powers of 3 but none of them consists of distinct powers of 3 . For the given positive integer n find such smallest m ( n <= m ) that m is a good number. You have to answer q independent queries. The first line of the input contains one integer q ( 1 <= q <= 500 ) -- the number of queries. Then q queries follow. The only line of the query contains one integer n ( 1 <= n <= 10^4 ). For each query, print such smallest integer m (where n <= m ) that m is a good number. '...

Tutorials

Codeforces Round #595 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
63207921 Dodger23 C1 Oct. 23, 2019, 1:32 a.m. OK Clang++17 Diagnostics TESTS 12 62 6348800 1300
63250372 Just_Matvey C1 Oct. 23, 2019, 3:51 p.m. OK FPC TESTS 12 31 0 1300
63268412 duydec1 C1 Oct. 24, 2019, 2:15 a.m. OK FPC TESTS 12 31 0 1300
64476594 chaorenhaha C1 Nov. 7, 2019, 2:34 p.m. OK FPC TESTS 12 31 204800 1300
63238579 tranminhprvt01 C1 Oct. 23, 2019, 12:54 p.m. OK FPC TESTS 12 109 0 1300
66796265 JinDT C1 Dec. 13, 2019, 5:11 p.m. OK FPC TESTS 12 140 0 1300
63207537 Shuns C1 Oct. 23, 2019, 1:13 a.m. OK GNU C11 TESTS 12 15 0 1300
68340974 luogu_bot4 C1 Jan. 7, 2020, 3:34 a.m. OK GNU C11 TESTS 12 15 0 1300
63863567 samay_kothari C1 Oct. 30, 2019, 5:10 p.m. OK GNU C11 TESTS 12 30 0 1300
63612630 sm2bhat C1 Oct. 27, 2019, 5:59 p.m. OK GNU C11 TESTS 12 30 0 1300
63236404 MOHIR_MBSTU C1 Oct. 23, 2019, 12:24 p.m. OK GNU C11 TESTS 12 30 0 1300
67763905 raresmihai01 C1 Dec. 28, 2019, 1:48 a.m. OK GNU C11 TESTS 12 31 0 1300
68486417 dongbin1999 C1 Jan. 10, 2020, 9:55 a.m. OK GNU C11 TESTS 12 31 0 1300
68585955 vjudge2 C1 Jan. 11, 2020, 11:16 a.m. OK GNU C11 TESTS 12 31 0 1300
66506566 Rahimmia C1 Dec. 8, 2019, 2:40 p.m. OK GNU C11 TESTS 12 31 0 1300
67282738 shoryak C1 Dec. 20, 2019, 1:30 p.m. OK GNU C11 TESTS 12 31 0 1300
66568340 yuzhechuan C1 Dec. 10, 2019, 1:35 a.m. OK GNU C++11 TESTS 12 15 0 1300
66399078 mefrah C1 Dec. 6, 2019, 11:44 a.m. OK GNU C++11 TESTS 12 15 0 1300
65466015 vjudge2 C1 Nov. 21, 2019, 5:56 a.m. OK GNU C++11 TESTS 12 15 0 1300
64740165 MelonMeow_ylh C1 Nov. 12, 2019, 11:43 a.m. OK GNU C++11 TESTS 12 15 0 1300
64612620 Vxlimo C1 Nov. 10, 2019, 2:44 a.m. OK GNU C++11 TESTS 12 15 0 1300
64568078 luogu_bot2 C1 Nov. 9, 2019, 8:15 a.m. OK GNU C++11 TESTS 12 15 0 1300
64479111 Dear_with_teers C1 Nov. 7, 2019, 3:20 p.m. OK GNU C++11 TESTS 12 15 0 1300
69703359 Rockett C1 Jan. 29, 2020, 2:45 a.m. OK GNU C++11 TESTS 12 15 0 1300
67962837 vjudge5 C1 Dec. 30, 2019, 12:15 p.m. OK GNU C++11 TESTS 12 15 0 1300
67324989 prowess C1 Dec. 21, 2019, 9:26 a.m. OK GNU C++11 TESTS 12 15 0 1300
68015436 codefresher C1 Dec. 31, 2019, 6:09 p.m. OK GNU C++14 TESTS 12 15 0 1300
69467599 shadesOfRed C1 Jan. 24, 2020, 1:28 p.m. OK GNU C++14 TESTS 12 15 0 1300
69156952 adhirajbist C1 Jan. 19, 2020, 8:01 p.m. OK GNU C++14 TESTS 12 15 0 1300
68992779 architgoku13 C1 Jan. 17, 2020, 3:56 p.m. OK GNU C++14 TESTS 12 15 0 1300
68618695 shamsenur_shanto C1 Jan. 11, 2020, 6:32 p.m. OK GNU C++14 TESTS 12 15 0 1300
68618662 vjudge3 C1 Jan. 11, 2020, 6:32 p.m. OK GNU C++14 TESTS 12 15 0 1300
68228774 practice__dp C1 Jan. 5, 2020, 8:20 a.m. OK GNU C++14 TESTS 12 15 0 1300
68135627 MaminBandit C1 Jan. 3, 2020, 6:47 p.m. OK GNU C++14 TESTS 12 15 0 1300
68072952 Luzivanlt C1 Jan. 2, 2020, 11:12 a.m. OK GNU C++14 TESTS 12 15 0 1300
67970403 kkaustubhv56 C1 Dec. 30, 2019, 2:48 p.m. OK GNU C++14 TESTS 12 15 0 1300
68787752 Meenakshi23 C1 Jan. 14, 2020, 2:56 p.m. OK GNU C++17 TESTS 12 15 0 1300
68828044 74ankur09 C1 Jan. 14, 2020, 8:11 p.m. OK GNU C++17 TESTS 12 15 0 1300
68851730 mohit1O98 C1 Jan. 15, 2020, 9:11 a.m. OK GNU C++17 TESTS 12 15 0 1300
68964360 darele C1 Jan. 17, 2020, 3:49 a.m. OK GNU C++17 TESTS 12 15 0 1300
69031236 Childe_Zhe C1 Jan. 18, 2020, 8:10 a.m. OK GNU C++17 TESTS 12 15 0 1300
69067242 pain.Q C1 Jan. 18, 2020, 7:14 p.m. OK GNU C++17 TESTS 12 15 0 1300
69095170 UnbearableREDS C1 Jan. 19, 2020, 11:45 a.m. OK GNU C++17 TESTS 12 15 0 1300
69151822 ankan.ekansh C1 Jan. 19, 2020, 5:54 p.m. OK GNU C++17 TESTS 12 15 0 1300
69368337 vjudge1 C1 Jan. 22, 2020, 4:52 p.m. OK GNU C++17 TESTS 12 15 0 1300
69665454 Ka_Kiye_Koot_Diye C1 Jan. 28, 2020, 11:10 a.m. OK GNU C++17 TESTS 12 15 0 1300
63424540 maguroguma C1 Oct. 26, 2019, 7:27 a.m. OK Go TESTS 12 31 0 1300
63356976 synapse C1 Oct. 25, 2019, 3:17 a.m. OK Go TESTS 12 31 0 1300
64735344 brosucks C1 Nov. 12, 2019, 10:06 a.m. OK Go TESTS 12 46 0 1300
63214764 ivanzuki C1 Oct. 23, 2019, 5:38 a.m. OK Go TESTS 12 62 0 1300
63434479 jedikni C1 Oct. 26, 2019, 10:11 a.m. OK Haskell TESTS 12 46 102400 1300
67137990 lightseba C1 Dec. 18, 2019, 5:22 a.m. OK Java 11 TESTS 12 171 0 1300
65512030 bluesky111 C1 Nov. 22, 2019, 4:38 a.m. OK Java 11 TESTS 12 171 0 1300
65500679 pizzaEater C1 Nov. 21, 2019, 6:43 p.m. OK Java 11 TESTS 12 187 0 1300
69577167 alankritanand001 C1 Jan. 26, 2020, 3:57 p.m. OK Java 11 TESTS 12 202 0 1300
64557536 dudo48 C1 Nov. 9, 2019, 4:36 a.m. OK Java 11 TESTS 12 202 0 1300
63291707 tapanr97 C1 Oct. 24, 2019, 11:56 a.m. OK Java 11 TESTS 12 202 0 1300
67438979 Felz C1 Dec. 22, 2019, 6:25 p.m. OK Java 11 TESTS 12 217 0 1300
63278740 Xiao_Tou C1 Oct. 24, 2019, 7:56 a.m. OK Java 11 TESTS 12 217 0 1300
64441675 raindragon C1 Nov. 7, 2019, 4:40 a.m. OK Java 11 TESTS 12 218 0 1300
63245121 Ahmed_Diab C1 Oct. 23, 2019, 2:27 p.m. OK Java 11 TESTS 12 249 0 1300
67526906 MahmoudJobeel C1 Dec. 24, 2019, 2:22 p.m. OK Java 8 TESTS 12 108 0 1300
64664384 dyhu083 C1 Nov. 11, 2019, 12:22 a.m. OK Java 8 TESTS 12 108 0 1300
63256058 T_Nady C1 Oct. 23, 2019, 6:13 p.m. OK Java 8 TESTS 12 108 0 1300
63263378 WashRoom C1 Oct. 23, 2019, 9:42 p.m. OK Java 8 TESTS 12 109 0 1300
69247244 luchy0120 C1 Jan. 21, 2020, 1:16 p.m. OK Java 8 TESTS 12 109 0 1300
68066883 amolpratap007 C1 Jan. 2, 2020, 8:18 a.m. OK Java 8 TESTS 12 109 0 1300
63278538 Oland C1 Oct. 24, 2019, 7:52 a.m. OK Java 8 TESTS 12 109 0 1300
63243761 devesh08 C1 Oct. 23, 2019, 2:07 p.m. OK Java 8 TESTS 12 109 0 1300
63242259 petr_op C1 Oct. 23, 2019, 1:46 p.m. OK Java 8 TESTS 12 109 0 1300
63230085 inseder C1 Oct. 23, 2019, 10:40 a.m. OK Java 8 TESTS 12 109 0 1300
63511227 walborn C1 Oct. 26, 2019, 8:40 p.m. OK JavaScript TESTS 12 46 1126400 1300
63208717 Spheniscine C1 Oct. 23, 2019, 2:13 a.m. OK Kotlin TESTS 12 124 409600 1300
63860656 mirennn C1 Oct. 30, 2019, 4:46 p.m. OK Kotlin TESTS 12 140 0 1300
63759443 mendel_vv C1 Oct. 30, 2019, 2:37 a.m. OK Kotlin TESTS 12 140 0 1300
66142124 hyper_sinnniy C1 Dec. 1, 2019, 2:54 p.m. OK Kotlin TESTS 12 155 0 1300
63763128 satyamcse C1 Oct. 30, 2019, 5:02 a.m. OK Kotlin TESTS 12 155 0 1300
63282131 Black_Fregat C1 Oct. 24, 2019, 9:03 a.m. OK Kotlin TESTS 12 170 0 1300
63753214 kiuny C1 Oct. 29, 2019, 9:27 p.m. OK Kotlin TESTS 12 186 204800 1300
63898729 binglebog C1 Oct. 31, 2019, 3:59 a.m. OK Kotlin TESTS 12 234 0 1300
64731830 NEvOl C1 Nov. 12, 2019, 8:44 a.m. OK Mono C# TESTS 12 61 0 1300
63232205 Vovlik C1 Oct. 23, 2019, 11:18 a.m. OK Mono C# TESTS 12 61 0 1300
63235490 hloya C1 Oct. 23, 2019, 12:10 p.m. OK Mono C# TESTS 12 93 3584000 1300
63262718 m1_k3 C1 Oct. 23, 2019, 9:14 p.m. OK Mono C# TESTS 12 93 4300800 1300
65947179 vjudge3 C1 Nov. 29, 2019, 9:11 a.m. OK MS C++ TESTS 12 15 0 1300
63239477 vjudge2 C1 Oct. 23, 2019, 1:05 p.m. OK MS C++ TESTS 12 15 0 1300
63921720 vjudge5 C1 Oct. 31, 2019, 11:54 a.m. OK MS C++ TESTS 12 15 102400 1300
63528743 vjudge1 C1 Oct. 27, 2019, 6:05 a.m. OK MS C++ TESTS 12 15 102400 1300
64095528 vjudge4 C1 Nov. 2, 2019, 1:48 p.m. OK MS C++ TESTS 12 30 0 1300
63624894 vjudge3 C1 Oct. 28, 2019, 2:52 a.m. OK MS C++ TESTS 12 30 0 1300
64353801 vjudge3 C1 Nov. 6, 2019, 9:25 a.m. OK MS C++ TESTS 12 30 0 1300
66009218 vjudge4 C1 Nov. 30, 2019, 1:11 a.m. OK MS C++ TESTS 12 30 0 1300
67945379 vjudge1 C1 Dec. 30, 2019, 4:57 a.m. OK MS C++ TESTS 12 30 0 1300
68435590 vjudge3 C1 Jan. 9, 2020, 8:50 a.m. OK MS C++ TESTS 12 30 0 1300
65688887 vjudge4 C1 Nov. 25, 2019, 3:01 a.m. OK MS C++ 2017 TESTS 12 15 0 1300
63483387 vjudge4 C1 Oct. 26, 2019, 12:58 p.m. OK MS C++ 2017 TESTS 12 15 102400 1300
63374614 deuslovelt C1 Oct. 25, 2019, 10:35 a.m. OK MS C++ 2017 TESTS 12 30 0 1300
64072292 D9RS C1 Nov. 2, 2019, 7:48 a.m. OK MS C++ 2017 TESTS 12 30 0 1300
63656172 dbelov C1 Oct. 28, 2019, 12:46 p.m. OK MS C++ 2017 TESTS 12 30 0 1300
63723336 kawayisang C1 Oct. 29, 2019, 11:59 a.m. OK MS C++ 2017 TESTS 12 30 102400 1300
64097647 ano0406 C1 Nov. 2, 2019, 2:24 p.m. OK MS C++ 2017 TESTS 12 30 307200 1300
67868330 Parsa84 C1 Dec. 29, 2019, 10:29 a.m. OK MS C++ 2017 TESTS 12 30 307200 1300
69587803 kurs C1 Jan. 26, 2020, 8:30 p.m. OK MS C++ 2017 TESTS 12 31 0 1300
68487462 kim_young_hyun C1 Jan. 10, 2020, 10:21 a.m. OK MS C++ 2017 TESTS 12 31 0 1300
63225336 mayakin C1 Oct. 23, 2019, 9:07 a.m. OK PHP TESTS 12 62 409600 1300
63371366 alex223 C1 Oct. 25, 2019, 9:29 a.m. OK PyPy 2 TESTS 12 155 204800 1300
63244649 kfardeen7890 C1 Oct. 23, 2019, 2:20 p.m. OK PyPy 3 TESTS 12 155 1433600 1300
68227714 Mr.Inconsistent C1 Jan. 5, 2020, 7:52 a.m. OK PyPy 3 TESTS 12 155 1843200 1300
63353612 _Kee C1 Oct. 25, 2019, 12:25 a.m. OK PyPy 3 TESTS 12 155 2048000 1300
66987107 ffsgfy C1 Dec. 15, 2019, 6:35 p.m. OK PyPy 3 TESTS 12 155 2355200 1300
66272673 sruthi_1729 C1 Dec. 4, 2019, 12:50 p.m. OK PyPy 3 TESTS 12 156 3072000 1300
63216027 zsc666 C1 Oct. 23, 2019, 6:08 a.m. OK PyPy 3 TESTS 12 156 3072000 1300
63365530 victarry C1 Oct. 25, 2019, 7:20 a.m. OK PyPy 3 TESTS 12 170 1536000 1300
63378516 macdod C1 Oct. 25, 2019, 11:46 a.m. OK PyPy 3 TESTS 12 170 2048000 1300
63223875 danh07808 C1 Oct. 23, 2019, 8:42 a.m. OK PyPy 3 TESTS 12 170 2355200 1300
68161719 mr.inconsitent C1 Jan. 4, 2020, 11:10 a.m. OK PyPy 3 TESTS 12 171 1843200 1300
64149805 kalrover C1 Nov. 3, 2019, 11:02 a.m. OK Python 2 TESTS 12 171 0 1300
66195568 GTrigger C1 Dec. 2, 2019, 6:18 p.m. OK Python 2 TESTS 12 171 0 1300
63235826 Madhur1906 C1 Oct. 23, 2019, 12:15 p.m. OK Python 2 TESTS 12 171 0 1300
63254184 eugalt C1 Oct. 23, 2019, 5 p.m. OK Python 2 TESTS 12 186 0 1300
63925997 SoSooding C1 Oct. 31, 2019, 1:01 p.m. OK Python 2 TESTS 12 187 0 1300
67586974 neuhq_haha C1 Dec. 25, 2019, 8:40 a.m. OK Python 2 TESTS 12 202 409600 1300
63246824 LKSH2018 C1 Oct. 23, 2019, 2:53 p.m. OK Python 3 TESTS 12 108 0 1300
64568354 vjudge1 C1 Nov. 9, 2019, 8:19 a.m. OK Python 3 TESTS 12 108 102400 1300
64848004 meme_lord C1 Nov. 13, 2019, 6:19 p.m. OK Python 3 TESTS 12 109 0 1300
64581371 Jannoshh C1 Nov. 9, 2019, 12:11 p.m. OK Python 3 TESTS 12 109 0 1300
63609613 chituanh212 C1 Oct. 27, 2019, 4:37 p.m. OK Python 3 TESTS 12 109 0 1300
63436744 farhadcuber C1 Oct. 26, 2019, 10:53 a.m. OK Python 3 TESTS 12 109 0 1300
63414653 Vergil C1 Oct. 26, 2019, 3:19 a.m. OK Python 3 TESTS 12 109 0 1300
63379410 orailly C1 Oct. 25, 2019, 12:01 p.m. OK Python 3 TESTS 12 109 0 1300
63360045 RohitHansdah C1 Oct. 25, 2019, 5:07 a.m. OK Python 3 TESTS 12 109 0 1300
63358258 RohitHansdah C1 Oct. 25, 2019, 4:04 a.m. OK Python 3 TESTS 12 109 0 1300
64343719 tpoeiras C1 Nov. 6, 2019, 4:49 a.m. OK Rust TESTS 12 15 0 1300
64812931 maxglushkov561 C1 Nov. 13, 2019, 2:56 p.m. OK Rust TESTS 12 31 0 1300

remove filters

Back to search problems