Codeforces Round 636 (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
1343 Codeforces Round 636 (Div. 3) FINISHED False 7200 149700263 April 21, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 48903 ) A Candies PROGRAMMING brute force math 900

B'Recently Vova found n candy wrappers. He remembers that he bought x candies during the first day, 2x candies during the second day, 4x candies during the third day, ... , 2^{k-1} x candies during the k -th day. But there is an issue: Vova remembers neither x nor k but he is sure that x and k are positive integers and k > 1 . Vova will be satisfied if you tell him any positive integer x so there is an integer k>1 that x + 2x + 4x + ... + 2^{k-1} x = n . It is guaranteed that at least one solution exists. Note that k > 1 . You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then t test cases follow. The only line of the test case contains one integer n ( 3 <= n <= 10^9 ) -- the number of candy wrappers Vova found. It is guaranteed that there is some positive integer x and integer k>1 that x + 2x + 4x + ... + 2^{k-1} x = n . Print one integer -- any positive integer value of x so there is an integer k>1 that x + 2x + 4x + ... + 2^{k-1} x = n . In the first test case of the example, one of the possible answers is x=1, k=2 . Then 1 cdot 1 + 2 cdot 1 equals n=3 . In the second test case of the example, one of the possible answers is x=2, k=2 . Then 1 cdot 2 + 2 cdot 2 equals n=6 . In the third test case of the example, one of the possible answers is x=1, k=3 . Then 1 cdot 1 + 2 cdot 1 + 4 cdot 1 equals n=7 . In the fourth test case of the example, one of the possible answers is x=7, k=2 . Then 1 cdot 7 + 2 cdot 7 equals n=21 . In the fifth test case of the example, one of the possible answers is x=4, k=3 . Then 1 cdot 4 + 2 cdot 4 + 4 cdot 4 equals n=28 . '...

Tutorials

76352

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
77617427 mrittunjoysarkerakash A April 22, 2020, 7:33 a.m. OK Clang++17 Diagnostics TESTS 24 62 0 900
77636670 vjudge3 A April 22, 2020, 11:02 a.m. OK Clang++17 Diagnostics TESTS 24 186 0 900
77745736 vjudge4 A April 23, 2020, 11:31 a.m. OK Clang++17 Diagnostics TESTS 24 186 102400 900
77620514 Rajveer_100 A April 22, 2020, 8:03 a.m. OK Clang++17 Diagnostics TESTS 24 233 0 900
77601216 fpc_coder A April 22, 2020, 2:13 a.m. OK FPC TESTS 24 46 0 900
77942075 vjudge5 A April 24, 2020, 5:34 p.m. OK GNU C11 TESTS 24 46 204800 900
77624018 Hasibul_Hossain A April 22, 2020, 8:41 a.m. OK GNU C11 TESTS 24 46 307200 900
77616786 _sam__ A April 22, 2020, 7:27 a.m. OK GNU C11 TESTS 24 61 0 900
77618604 Suman_Mandol A April 22, 2020, 7:44 a.m. OK GNU C11 TESTS 24 61 0 900
77659272 Harustuki A April 22, 2020, 2:21 p.m. OK GNU C11 TESTS 24 61 0 900
77669654 nayemislamzr18 A April 22, 2020, 3:54 p.m. OK GNU C11 TESTS 24 61 0 900
77661514 crististm A April 22, 2020, 2:41 p.m. OK GNU C11 TESTS 24 61 204800 900
77576353 ritheshvarma A April 21, 2020, 5:36 p.m. OK GNU C11 TESTS 24 61 307200 900
78011353 TheMisfits A April 25, 2020, 10:08 a.m. OK GNU C11 TESTS 24 62 0 900
77983880 TarunabhOjashvi A April 25, 2020, 6:37 a.m. OK GNU C11 TESTS 24 62 0 900
77560501 CN_pf_d A April 21, 2020, 4:23 p.m. OK GNU C++11 TESTS 24 15 0 900
77582948 aboulkacem A April 21, 2020, 6:56 p.m. OK GNU C++11 TESTS 24 30 0 900
77592700 Who__Cares A April 21, 2020, 9:44 p.m. OK GNU C++11 TESTS 24 30 0 900
77617413 void_jack A April 22, 2020, 7:33 a.m. OK GNU C++11 TESTS 24 30 0 900
77972451 fangtanchen A April 25, 2020, 3:51 a.m. OK GNU C++11 TESTS 24 30 0 900
77618631 dredwerkz A April 22, 2020, 7:45 a.m. OK GNU C++11 TESTS 24 30 204800 900
77625684 Top1sun1 A April 22, 2020, 9 a.m. OK GNU C++11 TESTS 24 30 307200 900
77961054 johnson10024 A April 24, 2020, 10:17 p.m. OK GNU C++11 TESTS 24 31 0 900
77965017 vjudge1 A April 25, 2020, 12:16 a.m. OK GNU C++11 TESTS 24 31 0 900
77970057 JJLeo A April 25, 2020, 2:53 a.m. OK GNU C++11 TESTS 24 31 0 900
77618448 mvavmvevt A April 22, 2020, 7:43 a.m. OK GNU C++14 TESTS 24 15 0 900
77581736 praful_07 A April 21, 2020, 6:40 p.m. OK GNU C++14 TESTS 24 15 0 900
77990189 szfck A April 25, 2020, 7:46 a.m. OK GNU C++14 TESTS 24 30 0 900
77692169 Devil_22138 A April 22, 2020, 8:04 p.m. OK GNU C++14 TESTS 24 30 0 900
77701526 rasfmar A April 23, 2020, 12:01 a.m. OK GNU C++14 TESTS 24 30 0 900
77705290 lincolnx A April 23, 2020, 2:21 a.m. OK GNU C++14 TESTS 24 30 0 900
77812495 puru98 A April 23, 2020, 3:41 p.m. OK GNU C++14 TESTS 24 30 0 900
77867333 O7Oo7oO7O A April 24, 2020, 2:29 a.m. OK GNU C++14 TESTS 24 30 0 900
77882643 FFinSCUT A April 24, 2020, 6:22 a.m. OK GNU C++14 TESTS 24 30 0 900
77934925 patelkishan651 A April 24, 2020, 4:14 p.m. OK GNU C++14 TESTS 24 30 0 900
77723836 CitricAcid A April 23, 2020, 7:31 a.m. OK GNU C++17 TESTS 24 15 0 900
77883235 nikhilrathore_1999 A April 24, 2020, 6:29 a.m. OK GNU C++17 TESTS 24 30 0 900
77906250 laomazoukai A April 24, 2020, 11:24 a.m. OK GNU C++17 TESTS 24 30 0 900
77861009 Enin_Arus_08 A April 23, 2020, 11:23 p.m. OK GNU C++17 TESTS 24 30 0 900
77746041 xaacc A April 23, 2020, 11:34 a.m. OK GNU C++17 TESTS 24 30 0 900
77722773 WangHZ A April 23, 2020, 7:18 a.m. OK GNU C++17 TESTS 24 30 0 900
77721697 iamLost A April 23, 2020, 7:04 a.m. OK GNU C++17 TESTS 24 30 0 900
77713737 rishikesh.che18 A April 23, 2020, 5:13 a.m. OK GNU C++17 TESTS 24 30 0 900
77697341 heavyhash A April 22, 2020, 9:44 p.m. OK GNU C++17 TESTS 24 30 0 900
77678278 AGRU A April 22, 2020, 5:16 p.m. OK GNU C++17 TESTS 24 30 0 900
77647662 pranonraian A April 22, 2020, 12:56 p.m. OK GNU C++17 (64) TESTS 24 15 0 900
77664498 hetgiolambai A April 22, 2020, 3:09 p.m. OK GNU C++17 (64) TESTS 24 15 0 900
77893086 p7x A April 24, 2020, 8:25 a.m. OK GNU C++17 (64) TESTS 24 15 0 900
77943529 ivan100sic A April 24, 2020, 5:52 p.m. OK GNU C++17 (64) TESTS 24 15 0 900
77643828 ankan.ekansh A April 22, 2020, 12:15 p.m. OK GNU C++17 (64) TESTS 24 15 0 900
77630631 6553368 A April 22, 2020, 9:57 a.m. OK GNU C++17 (64) TESTS 24 15 40140800 900
77588297 Racer5x A April 21, 2020, 8:19 p.m. OK GNU C++17 (64) TESTS 24 30 0 900
77598121 sharrad99 A April 22, 2020, 12:38 a.m. OK GNU C++17 (64) TESTS 24 30 0 900
77574306 jisanahmed10667 A April 21, 2020, 5:17 p.m. OK GNU C++17 (64) TESTS 24 30 0 900
77598789 Kuroni A April 22, 2020, 1:01 a.m. OK GNU C++17 (64) TESTS 24 30 0 900
77634380 sighduck A April 22, 2020, 10:38 a.m. OK Go TESTS 24 46 102400 900
77617570 barisma A April 22, 2020, 7:34 a.m. OK Go TESTS 24 46 102400 900
77576196 sharmajatin741 A April 21, 2020, 5:35 p.m. OK Java 11 TESTS 24 187 0 900
77646138 Piccadilly A April 22, 2020, 12:39 p.m. OK Java 11 TESTS 24 187 0 900
77629296 singhdhanwant A April 22, 2020, 9:42 a.m. OK Java 11 TESTS 24 187 0 900
77699716 TheSawan A April 22, 2020, 10:53 p.m. OK Java 11 TESTS 24 202 0 900
77672239 mikkk A April 22, 2020, 4:18 p.m. OK Java 11 TESTS 24 202 0 900
77667682 rajparekh2024 A April 22, 2020, 3:37 p.m. OK Java 11 TESTS 24 202 0 900
77604979 dribbler A April 22, 2020, 3:52 a.m. OK Java 11 TESTS 24 202 0 900
77603533 XsLel A April 22, 2020, 3:19 a.m. OK Java 11 TESTS 24 202 0 900
77588495 ddhroov10 A April 21, 2020, 8:22 p.m. OK Java 11 TESTS 24 202 0 900
77587655 Clowyy A April 21, 2020, 8:08 p.m. OK Java 11 TESTS 24 202 0 900
77698132 bluesky111 A April 22, 2020, 10:06 p.m. OK Java 8 TESTS 24 108 0 900
77674775 amolpratap007 A April 22, 2020, 4:41 p.m. OK Java 8 TESTS 24 109 0 900
77647243 dewanshnigam A April 22, 2020, 12:51 p.m. OK Java 8 TESTS 24 109 0 900
77637278 laylay A April 22, 2020, 11:09 a.m. OK Java 8 TESTS 24 109 0 900
77581584 NMouad21 A April 21, 2020, 6:38 p.m. OK Java 8 TESTS 24 109 0 900
77568099 gagan_6730 A April 21, 2020, 4:36 p.m. OK Java 8 TESTS 24 109 0 900
77713351 MiroO A April 23, 2020, 5:07 a.m. OK Java 8 TESTS 24 124 0 900
77972177 dyhu083 A April 25, 2020, 3:45 a.m. OK Java 8 TESTS 24 124 0 900
77719782 sumedh.shenoy A April 23, 2020, 6:40 a.m. OK Java 8 TESTS 24 124 0 900
77714124 shubhampandey18 A April 23, 2020, 5:19 a.m. OK Java 8 TESTS 24 124 0 900
77695819 Luay A April 22, 2020, 9:09 p.m. OK JavaScript TESTS 24 62 1331200 900
77696429 Luay A April 22, 2020, 9:22 p.m. OK JavaScript TESTS 24 77 1331200 900
77603034 Spheniscine A April 22, 2020, 3:05 a.m. OK Kotlin TESTS 24 124 0 900
77642497 Kopenkin A April 22, 2020, 12:02 p.m. OK Kotlin TESTS 24 140 0 900
77702711 IsTinG A April 23, 2020, 12:49 a.m. OK Kotlin TESTS 24 202 0 900
77618373 dkozak94 A April 22, 2020, 7:42 a.m. OK Kotlin TESTS 24 217 0 900
77636812 spezcial A April 22, 2020, 11:04 a.m. OK Kotlin TESTS 24 233 0 900
77561190 RockyFail A April 21, 2020, 4:25 p.m. OK Mono C# TESTS 24 77 716800 900
77593447 PPons A April 21, 2020, 10:05 p.m. OK Mono C# TESTS 24 92 1433600 900
77749296 HenrySo0127 A April 23, 2020, 12:05 p.m. OK Mono C# TESTS 24 93 1433600 900
77649913 pacificus A April 22, 2020, 1:18 p.m. OK Mono C# TESTS 24 109 716800 900
77597540 nghiapd A April 22, 2020, 12:19 a.m. OK Mono C# TESTS 24 109 716800 900
77579379 TRR A April 21, 2020, 6:10 p.m. OK Mono C# TESTS 24 109 716800 900
77564119 SvetlinkA A April 21, 2020, 4:30 p.m. OK Mono C# TESTS 24 109 716800 900
77608931 despair_101 A April 22, 2020, 5:19 a.m. OK Mono C# TESTS 24 124 716800 900
77690348 zerg A April 22, 2020, 7:36 p.m. OK Mono C# TESTS 24 124 4300800 900
77566750 igormaslov123 A April 21, 2020, 4:33 p.m. OK Mono C# TESTS 24 140 716800 900
77953784 vjudge2 A April 24, 2020, 8:07 p.m. OK MS C++ TESTS 24 46 0 900
77624488 CLamb A April 22, 2020, 8:46 a.m. OK MS C++ TESTS 24 46 0 900
77876076 vjudge5 A April 24, 2020, 4:56 a.m. OK MS C++ TESTS 24 62 0 900
77640721 vjudge5 A April 22, 2020, 11:44 a.m. OK MS C++ TESTS 24 62 0 900
77598521 cherishChen A April 22, 2020, 12:52 a.m. OK MS C++ 2017 TESTS 24 31 0 900
77987255 vjudge4 A April 25, 2020, 7:13 a.m. OK MS C++ 2017 TESTS 24 31 0 900
77580117 Graywizard A April 21, 2020, 6:19 p.m. OK MS C++ 2017 TESTS 24 46 0 900
77986383 x_y A April 25, 2020, 7:04 a.m. OK MS C++ 2017 TESTS 24 46 0 900
77704988 Ruben_tao A April 23, 2020, 2:10 a.m. OK MS C++ 2017 TESTS 24 46 0 900
77654368 elvcn A April 22, 2020, 1:35 p.m. OK MS C++ 2017 TESTS 24 46 0 900
77620037 Bigface A April 22, 2020, 7:59 a.m. OK MS C++ 2017 TESTS 24 46 0 900
77586944 metal4people A April 21, 2020, 7:57 p.m. OK MS C++ 2017 TESTS 24 46 0 900
77566814 301272316 A April 21, 2020, 4:34 p.m. OK MS C++ 2017 TESTS 24 46 0 900
77941627 ayuhero31 A April 24, 2020, 5:29 p.m. OK MS C++ 2017 TESTS 24 46 102400 900
77759908 v3d3 A April 23, 2020, 1:44 p.m. OK Node.js TESTS 24 280 6041600 900
77636677 nuralamcse024 A April 22, 2020, 11:03 a.m. OK Node.js TESTS 24 280 6553600 900
77635463 hacker_prime A April 22, 2020, 10:50 a.m. OK Node.js TESTS 24 295 6041600 900
77634523 hacker_prime A April 22, 2020, 10:40 a.m. OK Node.js TESTS 24 296 6348800 900
77626116 nuralamcse024 A April 22, 2020, 9:05 a.m. OK Node.js TESTS 24 311 6144000 900
77637004 nuralamcse024 A April 22, 2020, 11:06 a.m. OK Node.js TESTS 24 311 6451200 900
77633009 nuralamcse024 A April 22, 2020, 10:23 a.m. OK Node.js TESTS 24 327 6041600 900
77857547 Matuha777 A April 23, 2020, 10:05 p.m. OK PascalABC.NET TESTS 24 545 102400 900
77617598 mayakin A April 22, 2020, 7:34 a.m. OK PHP TESTS 24 93 0 900
77604135 avres A April 22, 2020, 3:34 a.m. OK PHP TESTS 24 140 0 900
77581131 TheCrossCarrier A April 21, 2020, 6:32 p.m. OK PHP TESTS 24 389 0 900
77585726 yumtam A April 21, 2020, 7:37 p.m. OK PyPy 2 TESTS 24 170 1945600 900
77687059 lebron87 A April 22, 2020, 6:52 p.m. OK PyPy 2 TESTS 24 296 2560000 900
77660582 LaoJiangHu A April 22, 2020, 2:33 p.m. OK PyPy 2 TESTS 24 327 3379200 900
77605209 FahimSifnatul A April 22, 2020, 3:57 a.m. OK PyPy 3 TESTS 24 171 2764800 900
77561369 subash774 A April 21, 2020, 4:25 p.m. OK PyPy 3 TESTS 24 171 4505600 900
77625128 Anuranjan_Pandey A April 22, 2020, 8:53 a.m. OK PyPy 3 TESTS 24 186 4403200 900
77730022 sscrazyy A April 23, 2020, 8:48 a.m. OK PyPy 3 TESTS 24 186 4505600 900
77587386 _Alchemist A April 21, 2020, 8:04 p.m. OK PyPy 3 TESTS 24 187 4300800 900
77557334 KirKhal A April 21, 2020, 4:17 p.m. OK PyPy 3 TESTS 24 187 4812800 900
77855027 vinuthegr8 A April 23, 2020, 9:20 p.m. OK PyPy 3 TESTS 24 202 4505600 900
77563438 xandernewton A April 21, 2020, 4:29 p.m. OK PyPy 3 TESTS 24 202 4812800 900
77603159 Chanchal_Maji A April 22, 2020, 3:09 a.m. OK PyPy 3 TESTS 24 233 4915200 900
77816533 pseudonam A April 23, 2020, 3:49 p.m. OK PyPy 3 TESTS 24 264 6348800 900
77709491 rdik A April 23, 2020, 4:15 a.m. OK Python 2 TESTS 24 202 0 900
77952122 vjudge1 A April 24, 2020, 7:44 p.m. OK Python 2 TESTS 24 233 102400 900
77968716 code_marshal A April 25, 2020, 2:15 a.m. OK Python 2 TESTS 24 249 307200 900
77645092 ComptineDunAutreEte A April 22, 2020, 12:29 p.m. OK Python 2 TESTS 24 295 409600 900
77564008 hackerbaba A April 21, 2020, 4:29 p.m. OK Python 2 TESTS 24 358 204800 900
77762647 orailly A April 23, 2020, 2:13 p.m. OK Python 3 TESTS 24 140 1126400 900
77749860 MidAndFeed A April 23, 2020, 12:08 p.m. OK Python 3 TESTS 24 155 1024000 900
77729984 sscrazyy A April 23, 2020, 8:48 a.m. OK Python 3 TESTS 24 171 307200 900
77596118 perDAYTwo_A A April 21, 2020, 11:28 p.m. OK Python 3 TESTS 24 171 307200 900
77572353 TimurABS A April 21, 2020, 5 p.m. OK Python 3 TESTS 24 171 307200 900
77570885 chromium6012 A April 21, 2020, 4:50 p.m. OK Python 3 TESTS 24 171 512000 900
77577574 eugalt A April 21, 2020, 5:50 p.m. OK Python 3 TESTS 24 187 614400 900
77918782 JokerNN A April 24, 2020, 1:56 p.m. OK Python 3 TESTS 24 202 0 900
77655463 Wl.Reino A April 22, 2020, 1:45 p.m. OK Python 3 TESTS 24 202 307200 900
77653899 Wl.Reino A April 22, 2020, 1:30 p.m. OK Python 3 TESTS 24 202 307200 900
77677889 xodeChemist A April 22, 2020, 5:12 p.m. OK Ruby TESTS 24 93 0 900
77673706 eugene.l A April 22, 2020, 4:31 p.m. OK Ruby TESTS 24 109 0 900
77651936 xyqkoala A April 22, 2020, 1:25 p.m. OK Rust TESTS 24 31 307200 900
77686238 rpinoit A April 22, 2020, 6:42 p.m. OK Rust TESTS 24 139 0 900
77962374 vjudge2 A April 24, 2020, 10:51 p.m. OK Rust TESTS 24 155 0 900

remove filters

Back to search problems