Codeforces Round 647 (Div. 2) - Thanks, Algo Muse!

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
1362 Codeforces Round 647 (Div. 2) - Thanks, Algo Muse! FINISHED False 9000 140541899 June 4, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18562 ) C Johnny and Another Rating Drop PROGRAMMING bitmasks greedy math 1400

B"The last contest held on Johnny's favorite competitive programming platform has been received rather positively. However, Johnny's rating has dropped again! He thinks that the presented tasks are lovely, but don't show the truth about competitors' skills. The boy is now looking at the ratings of consecutive participants written in a binary system. He thinks that the more such ratings differ, the more unfair is that such people are next to each other. He defines the difference between two numbers as the number of bit positions, where one number has zero, and another has one (we suppose that numbers are padded with leading zeros to the same length). For example, the difference of 5 = 101_2 and 14 = 1110_2 equals to 3 , since 0101 and 1110 differ in 3 positions. Johnny defines the unfairness of the contest as the sum of such differences counted for neighboring participants. Johnny has just sent you the rating sequence and wants you to find the unfairness of the competition. You have noticed that you've got a sequence of consecutive integers from 0 to n . That's strange, but the boy stubbornly says that everything is right. So help him and find the desired unfairness for received numbers. The input consists of multiple test cases. The first line contains one integer t ( 1 <= q t <= q 10 ,000 ) -- the number of test cases. The following t lines contain a description of test cases. The first and only line in each test case contains a single integer n ( 1 <= q n <= q 10^{18}) . Output t lines. For each test case, you should output a single line with one integer -- the unfairness of the contest if the rating sequence equals to 0 , 1 , ..., n - 1 , n . For n = 5 we calculate unfairness of the following sequence (numbers from 0 to 5 written in binary with extra leading zeroes, so they all have the same length): The differences are equal to 1 "...

Tutorials

Codeforces Round #647 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
83112217 mb85 C June 8, 2020, 7:56 a.m. OK Clang++17 Diagnostics TESTS 21 233 0 1400
82603208 ijk13 C June 5, 2020, 6:41 a.m. OK Clang++17 Diagnostics TESTS 21 343 0 1400
82582569 Gassa C June 4, 2020, 11:29 p.m. OK D TESTS 21 31 0 1400
82582484 Gassa C June 4, 2020, 11:26 p.m. OK D TESTS 21 46 0 1400
82601553 divyansh_io C June 5, 2020, 6:21 a.m. OK GNU C11 TESTS 21 31 0 1400
82601941 divyansh_io C June 5, 2020, 6:26 a.m. OK GNU C11 TESTS 21 31 0 1400
82591583 301_anky C June 5, 2020, 3:44 a.m. OK GNU C11 TESTS 21 62 0 1400
83111295 chowdhuryshashwoto C June 8, 2020, 7:43 a.m. OK GNU C11 TESTS 21 62 0 1400
82602490 2711bharath C June 5, 2020, 6:32 a.m. OK GNU C11 TESTS 21 77 0 1400
82612434 mesumit C June 5, 2020, 8:32 a.m. OK GNU C11 TESTS 21 77 0 1400
82671711 luvcoding99 C June 6, 2020, 3:44 a.m. OK GNU C11 TESTS 21 77 204800 1400
82582113 JoseTomas01 C June 4, 2020, 11:08 p.m. OK GNU C11 TESTS 21 78 0 1400
82582376 10years C June 4, 2020, 11:21 p.m. OK GNU C11 TESTS 21 78 0 1400
82575219 ShuvoMalakar C June 4, 2020, 7:56 p.m. OK GNU C11 TESTS 21 78 0 1400
82696233 zhaoyiming C June 6, 2020, 10:40 a.m. OK GNU C++11 TESTS 21 31 0 1400
82689344 cavary_cl C June 6, 2020, 8:52 a.m. OK GNU C++11 TESTS 21 31 0 1400
82688573 deebcjrb3 C June 6, 2020, 8:39 a.m. OK GNU C++11 TESTS 21 31 0 1400
82685940 cugel C June 6, 2020, 7:58 a.m. OK GNU C++11 TESTS 21 31 0 1400
82685195 cugel C June 6, 2020, 7:47 a.m. OK GNU C++11 TESTS 21 31 0 1400
83539857 DarkoLoveRuby C June 12, 2020, 2:30 p.m. OK GNU C++11 TESTS 21 31 0 1400
83150724 iyua C June 8, 2020, 3:32 p.m. OK GNU C++11 TESTS 21 31 0 1400
83123762 xiaoxiaomo C June 8, 2020, 10:18 a.m. OK GNU C++11 TESTS 21 31 0 1400
82954996 lahlah C June 8, 2020, 4:57 a.m. OK GNU C++11 TESTS 21 31 0 1400
82780636 tyf0530 C June 7, 2020, 1:04 p.m. OK GNU C++11 TESTS 21 31 0 1400
83199737 742949301 C June 9, 2020, 8:24 a.m. OK GNU C++14 TESTS 21 31 0 1400
83203736 Cyborg_pro C June 9, 2020, 9:14 a.m. OK GNU C++14 TESTS 21 31 0 1400
83382516 vjazz C June 11, 2020, 1:01 p.m. OK GNU C++14 TESTS 21 31 0 1400
83560485 tj-black C June 12, 2020, 7:55 p.m. OK GNU C++14 TESTS 21 31 0 1400
83470083 shashank8 C June 11, 2020, 5:45 p.m. OK GNU C++14 TESTS 21 31 0 1400
83189835 tirth9960 C June 9, 2020, 6:07 a.m. OK GNU C++14 TESTS 21 31 0 1400
83186074 zybkl C June 9, 2020, 5:03 a.m. OK GNU C++14 TESTS 21 31 0 1400
83157847 Rohit_varma C June 8, 2020, 4:59 p.m. OK GNU C++14 TESTS 21 31 0 1400
83149863 ____ALPHA____ C June 8, 2020, 3:24 p.m. OK GNU C++14 TESTS 21 31 0 1400
83107298 shadman C June 8, 2020, 6:51 a.m. OK GNU C++14 TESTS 21 31 0 1400
83158831 AnandprakashDK C June 8, 2020, 5:15 p.m. OK GNU C++17 TESTS 21 31 0 1400
83305748 JumpingDestructor C June 10, 2020, 1:58 p.m. OK GNU C++17 TESTS 21 31 0 1400
83210658 dg25 C June 9, 2020, 10:48 a.m. OK GNU C++17 TESTS 21 31 0 1400
83209184 happy_ C June 9, 2020, 10:29 a.m. OK GNU C++17 TESTS 21 31 0 1400
83162801 scortier C June 8, 2020, 6:07 p.m. OK GNU C++17 TESTS 21 31 0 1400
83127540 holocaust C June 8, 2020, 11:05 a.m. OK GNU C++17 TESTS 21 31 0 1400
83127491 Zappelectro C June 8, 2020, 11:04 a.m. OK GNU C++17 TESTS 21 31 0 1400
82972582 dhruva_shashi C June 8, 2020, 5:23 a.m. OK GNU C++17 TESTS 21 31 0 1400
82874287 vlad.iftimescu C June 7, 2020, 5:15 p.m. OK GNU C++17 TESTS 21 31 0 1400
82783903 preet_t C June 7, 2020, 1:53 p.m. OK GNU C++17 TESTS 21 31 0 1400
82565187 dpw4112001 C June 4, 2020, 6:12 p.m. OK GNU C++17 (64) TESTS 21 30 0 1400
82568950 galen_colin C June 4, 2020, 6:37 p.m. OK GNU C++17 (64) TESTS 21 30 24064000 1400
82818924 Theofratus C June 7, 2020, 3:14 p.m. OK GNU C++17 (64) TESTS 21 31 0 1400
82896390 assem99 C June 8, 2020, 12:57 a.m. OK GNU C++17 (64) TESTS 21 31 0 1400
83126526 aeiou1 C June 8, 2020, 10:52 a.m. OK GNU C++17 (64) TESTS 21 31 0 1400
83129016 Xellos C June 8, 2020, 11:23 a.m. OK GNU C++17 (64) TESTS 21 31 0 1400
83144619 emthrm C June 8, 2020, 2:31 p.m. OK GNU C++17 (64) TESTS 21 31 0 1400
83176250 Bekh C June 9, 2020, 12:09 a.m. OK GNU C++17 (64) TESTS 21 31 0 1400
82785940 Mormo_1703119 C June 7, 2020, 2:22 p.m. OK GNU C++17 (64) TESTS 21 31 0 1400
82786888 ASTR1104 C June 7, 2020, 2:36 p.m. OK GNU C++17 (64) TESTS 21 31 0 1400
82665715 Thallium_is_Vegetable C June 5, 2020, 11:43 p.m. OK Go TESTS 21 46 102400 1400
83258109 magnickolas C June 9, 2020, 11:35 p.m. OK Go TESTS 21 78 0 1400
82550608 takezawa C June 4, 2020, 4:33 p.m. OK Go TESTS 21 92 102400 1400
82585945 amarjeetanand C June 5, 2020, 1:29 a.m. OK Go TESTS 21 92 5427200 1400
82785362 NGUYEN_THANH_LOI C June 7, 2020, 2:14 p.m. OK Go TESTS 21 701 0 1400
82766937 Andrey_R C June 7, 2020, 9:35 a.m. OK Haskell TESTS 21 61 102400 1400
82660049 Laurens C June 5, 2020, 8:08 p.m. OK Haskell TESTS 21 124 102400 1400
82669429 MiltonEiji C June 6, 2020, 2:33 a.m. OK Haskell TESTS 21 389 102400 1400
82692673 118907 C June 6, 2020, 9:45 a.m. OK Haskell TESTS 21 436 5324800 1400
82607483 mahendrabishnoi2 C June 5, 2020, 7:34 a.m. OK Java 11 TESTS 21 171 0 1400
82580570 bckslsh03 C June 4, 2020, 10:03 p.m. OK Java 11 TESTS 21 171 0 1400
83264138 anivrit C June 10, 2020, 3:18 a.m. OK Java 11 TESTS 21 187 0 1400
82580496 PocolaOctavian C June 4, 2020, 10 p.m. OK Java 11 TESTS 21 187 0 1400
83108689 ClaudeHunt C June 8, 2020, 7:10 a.m. OK Java 11 TESTS 21 202 0 1400
82882501 devesh08 C June 7, 2020, 7:07 p.m. OK Java 11 TESTS 21 202 0 1400
82722050 Stul19 C June 6, 2020, 4:22 p.m. OK Java 11 TESTS 21 202 0 1400
82693057 yahoo1529 C June 6, 2020, 9:51 a.m. OK Java 11 TESTS 21 202 0 1400
82637628 nickleoden299 C June 5, 2020, 2:13 p.m. OK Java 11 TESTS 21 202 0 1400
82584625 anhpp C June 5, 2020, 12:48 a.m. OK Java 11 TESTS 21 202 0 1400
83336279 derrick20 C June 10, 2020, 9:31 p.m. OK Java 8 TESTS 21 109 0 1400
82573614 masterbios C June 4, 2020, 7:31 p.m. OK Java 8 TESTS 21 109 0 1400
83264095 MagentaCobra C June 10, 2020, 3:17 a.m. OK Java 8 TESTS 21 124 0 1400
82899987 AnandOza C June 8, 2020, 2:43 a.m. OK Java 8 TESTS 21 124 0 1400
82756390 labdhi C June 7, 2020, 6:51 a.m. OK Java 8 TESTS 21 124 0 1400
82690179 amolpratap007 C June 6, 2020, 9:05 a.m. OK Java 8 TESTS 21 124 0 1400
82688747 Hasib_Ullah C June 6, 2020, 8:42 a.m. OK Java 8 TESTS 21 124 0 1400
82683031 Faizan C June 6, 2020, 7:17 a.m. OK Java 8 TESTS 21 124 0 1400
82682178 Faizan C June 6, 2020, 7:04 a.m. OK Java 8 TESTS 21 124 0 1400
82650513 turing_fan123 C June 5, 2020, 5:06 p.m. OK Java 8 TESTS 21 124 0 1400
82594177 Spheniscine C June 5, 2020, 4:32 a.m. OK Kotlin TESTS 21 124 0 1400
82570822 Hakiobo C June 4, 2020, 6:56 p.m. OK Kotlin TESTS 21 124 0 1400
82596296 Spheniscine C June 5, 2020, 5:08 a.m. OK Kotlin TESTS 21 124 0 1400
83342893 wuchaojie925 C June 11, 2020, 2:12 a.m. OK Kotlin TESTS 21 218 0 1400
82550714 sylvyrfysh C June 4, 2020, 4:33 p.m. OK Kotlin TESTS 21 218 0 1400
82718594 vrublack C June 6, 2020, 3:37 p.m. OK Kotlin TESTS 21 233 0 1400
82630447 whiter4bbit C June 5, 2020, 12:33 p.m. OK Kotlin TESTS 21 264 0 1400
82556270 wbars C June 4, 2020, 4:49 p.m. OK Kotlin TESTS 21 358 0 1400
82692229 jankmet C June 6, 2020, 9:39 a.m. OK Mono C# TESTS 21 124 2560000 1400
82619996 TRR C June 5, 2020, 10:09 a.m. OK Mono C# TESTS 21 140 1126400 1400
82689084 treasuryonly C June 6, 2020, 8:47 a.m. OK Mono C# TESTS 21 218 2457600 1400
82558347 Lyova C June 4, 2020, 4:54 p.m. OK Mono C# TESTS 21 295 33075200 1400
82688206 treasuryonly C June 6, 2020, 8:34 a.m. OK Mono C# TESTS 21 343 2457600 1400
82552400 192073333 C June 4, 2020, 4:38 p.m. OK MS C++ TESTS 21 46 0 1400
82547867 _remake_ C June 4, 2020, 4:25 p.m. OK MS C++ TESTS 21 77 0 1400
82546722 svkale C June 4, 2020, 4:22 p.m. OK MS C++ TESTS 21 93 0 1400
82708517 Kasumigaoka C June 6, 2020, 1:33 p.m. OK MS C++ 2017 TESTS 21 31 204800 1400
82556014 AlexanderPodkop30 C June 4, 2020, 4:48 p.m. OK MS C++ 2017 TESTS 21 46 0 1400
82558562 dundae C June 4, 2020, 4:55 p.m. OK MS C++ 2017 TESTS 21 46 0 1400
82609695 skymin C June 5, 2020, 8:01 a.m. OK MS C++ 2017 TESTS 21 46 16896000 1400
82579862 TOPAPEC C June 4, 2020, 9:43 p.m. OK MS C++ 2017 TESTS 21 62 0 1400
82669131 qq1598852340 C June 6, 2020, 2:23 a.m. OK MS C++ 2017 TESTS 21 77 0 1400
82690264 langfeihenkechi C June 6, 2020, 9:07 a.m. OK MS C++ 2017 TESTS 21 77 0 1400
82609977 Aurox_ C June 5, 2020, 8:04 a.m. OK MS C++ 2017 TESTS 21 77 0 1400
82550376 GK_Ebbaka C June 4, 2020, 4:32 p.m. OK MS C++ 2017 TESTS 21 77 0 1400
82613111 HishamDroubi C June 5, 2020, 8:41 a.m. OK MS C++ 2017 TESTS 21 77 28057600 1400
82571066 realnimish C June 4, 2020, 6:58 p.m. OK PyPy 2 TESTS 21 171 2150400 1400
82623334 kit.shiron C June 5, 2020, 10:54 a.m. OK PyPy 2 TESTS 21 218 3788800 1400
82664272 beethoven97 C June 5, 2020, 10:30 p.m. OK PyPy 2 TESTS 21 280 1126400 1400
82594354 anshuman16423 C June 5, 2020, 4:36 a.m. OK PyPy 2 TESTS 21 358 9216000 1400
82660172 alexwice C June 5, 2020, 8:11 p.m. OK PyPy 2 TESTS 21 373 2457600 1400
82545362 mo-hit C June 4, 2020, 4:18 p.m. OK PyPy 2 TESTS 21 468 9420800 1400
82616670 sirna07 C June 5, 2020, 9:25 a.m. OK PyPy 2 TESTS 21 561 7884800 1400
82587664 wolffd C June 5, 2020, 2:20 a.m. OK PyPy 2 TESTS 21 795 8806400 1400
82662299 beethoven97 C June 5, 2020, 9:14 p.m. OK PyPy 2 TESTS 21 811 8908800 1400
82603626 new.byte C June 5, 2020, 6:46 a.m. OK PyPy 2 TESTS 21 841 8806400 1400
82737614 shaiful01931 C June 6, 2020, 9 p.m. OK PyPy 3 TESTS 21 186 3276800 1400
82569995 srkvrm C June 4, 2020, 6:47 p.m. OK PyPy 3 TESTS 21 202 4812800 1400
82566986 Nifer C June 4, 2020, 6:24 p.m. OK PyPy 3 TESTS 21 202 4812800 1400
82559142 bravotango C June 4, 2020, 4:56 p.m. OK PyPy 3 TESTS 21 217 3584000 1400
82785171 unknown_2433 C June 7, 2020, 2:12 p.m. OK PyPy 3 TESTS 21 233 3276800 1400
82578926 tirtho2107 C June 4, 2020, 9:17 p.m. OK PyPy 3 TESTS 21 233 3584000 1400
82573257 340951987 C June 4, 2020, 7:26 p.m. OK PyPy 3 TESTS 21 233 4198400 1400
82575825 Achilles221B C June 4, 2020, 8:07 p.m. OK PyPy 3 TESTS 21 233 4812800 1400
82594179 pratikjain226 C June 5, 2020, 4:33 a.m. OK PyPy 3 TESTS 21 249 4096000 1400
82610038 montey C June 5, 2020, 8:05 a.m. OK PyPy 3 TESTS 21 249 4300800 1400
82570631 Ekinak C June 4, 2020, 6:54 p.m. OK Python 2 TESTS 21 343 102400 1400
82570291 fuadul C June 4, 2020, 6:50 p.m. OK Python 2 TESTS 21 389 307200 1400
82610268 coderbd C June 5, 2020, 8:08 a.m. OK Python 2 TESTS 21 436 0 1400
82548192 bertrandovide C June 4, 2020, 4:26 p.m. OK Python 2 TESTS 21 452 102400 1400
82644745 Mahahaha C June 5, 2020, 3:44 p.m. OK Python 3 TESTS 21 140 512000 1400
82663585 pkseeg C June 5, 2020, 9:59 p.m. OK Python 3 TESTS 21 140 614400 1400
82553043 sudhirMTS C June 4, 2020, 4:40 p.m. OK Python 3 TESTS 21 171 614400 1400
82778109 tkst C June 7, 2020, 12:27 p.m. OK Python 3 TESTS 21 187 0 1400
82765441 Pratech C June 7, 2020, 9:12 a.m. OK Python 3 TESTS 21 187 0 1400
82707410 raunaksarda1999 C June 6, 2020, 1:19 p.m. OK Python 3 TESTS 21 187 0 1400
82656753 LintuStorm C June 5, 2020, 6:51 p.m. OK Python 3 TESTS 21 187 0 1400
82624960 sarthak889 C June 5, 2020, 11:16 a.m. OK Python 3 TESTS 21 187 0 1400
82610022 lucifer085 C June 5, 2020, 8:05 a.m. OK Python 3 TESTS 21 187 0 1400
82595618 rahul_kh C June 5, 2020, 4:57 a.m. OK Python 3 TESTS 21 187 0 1400
82741047 Rara. C June 6, 2020, 11:20 p.m. OK Ruby TESTS 21 342 0 1400
83512853 t-uchida C June 12, 2020, 8:39 a.m. OK Rust TESTS 21 140 0 1400
83180999 sidky C June 9, 2020, 3:01 a.m. OK Rust TESTS 21 171 0 1400
82661540 pandrei C June 5, 2020, 8:49 p.m. OK Rust TESTS 21 171 0 1400
82619266 IvanDyachenko C June 5, 2020, 10 a.m. OK Scala TESTS 21 842 0 1400
82619122 IvanDyachenko C June 5, 2020, 9:58 a.m. OK Scala TESTS 21 889 0 1400
82619497 IvanDyachenko C June 5, 2020, 10:02 a.m. OK Scala TESTS 21 904 0 1400
82619457 IvanDyachenko C June 5, 2020, 10:02 a.m. OK Scala TESTS 21 935 0 1400

remove filters

Back to search problems