Codeforces Round 654 (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
1371 Codeforces Round 654 (Div. 2) FINISHED False 7200 143742311 July 1, 2020, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 47006 ) A Magical Sticks PROGRAMMING math

B'A penguin Rocher has n sticks. He has exactly one stick with length i for all 1 <= i <= n . He can connect some sticks. If he connects two sticks that have lengths a and b , he gets one stick with length a + b . Two sticks, that were used in the operation disappear from his set and the new connected stick appears in his set and can be used for the next connections. He wants to create the maximum number of sticks that have the same length. It is not necessary to make all sticks have the same length, some sticks can have the other length. How many sticks with the equal length he can create? The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. Next t lines contain descriptions of test cases. For each test case, the only line contains a single integer n ( 1 <= n <= 10^{9} ). For each test case, print a single integer -- the answer to the problem. In the third case, he can connect two sticks with lengths 1 and 2 and he will get one stick with length 3 . So, he will have two sticks with lengths 3 . In the fourth case, he can connect two sticks with lengths 1 and 3 and he will get one stick with length 4 . After that, he will have three sticks with lengths {2, 4, 4 } , so two sticks have the same length, and one stick has the other length. '...

Tutorials

Codeforces Round #654 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
85708594 Ajay_Modi A July 1, 2020, 6:02 p.m. OK Clang++17 Diagnostics TESTS 3 46 0
85708236 Red_monster A July 1, 2020, 5:57 p.m. OK GNU C11 TESTS 3 15 0
85708450 Mitsinbits A July 1, 2020, 6 p.m. OK GNU C11 TESTS 3 15 0
85729583 Sabikun_Zerin A July 2, 2020, 2:36 a.m. OK GNU C11 TESTS 3 15 0
85733914 L.SK A July 2, 2020, 4:09 a.m. OK GNU C11 TESTS 3 15 0
85735515 aditta_saikat A July 2, 2020, 4:39 a.m. OK GNU C11 TESTS 3 15 0
85736344 1999623 A July 2, 2020, 4:54 a.m. OK GNU C11 TESTS 3 15 0
85706818 errorfound A July 1, 2020, 5:42 p.m. OK GNU C11 TESTS 3 15 0
85701752 RJ_Hossan A July 1, 2020, 4:58 p.m. OK GNU C11 TESTS 3 15 0
85703027 Luna_4444 A July 1, 2020, 5:06 p.m. OK GNU C11 TESTS 3 15 0
85704444 zunead_31 A July 1, 2020, 5:19 p.m. OK GNU C11 TESTS 3 15 0
85713645 Hritwik_gok A July 1, 2020, 7:10 p.m. OK GNU C++11 TESTS 3 0 0
85736603 abaatar A July 2, 2020, 4:58 a.m. OK GNU C++11 TESTS 3 15 0
85736980 xwn A July 2, 2020, 5:04 a.m. OK GNU C++11 TESTS 3 15 0
85737215 saiful_alam41 A July 2, 2020, 5:07 a.m. OK GNU C++11 TESTS 3 15 0
85737385 YHHxBULIATANIA A July 2, 2020, 5:10 a.m. OK GNU C++11 TESTS 3 15 0
85737442 ady_skywalker A July 2, 2020, 5:11 a.m. OK GNU C++11 TESTS 3 15 0
85737455 ajit_5633 A July 2, 2020, 5:11 a.m. OK GNU C++11 TESTS 3 15 0
85737709 Arnob2018331024 A July 2, 2020, 5:15 a.m. OK GNU C++11 TESTS 3 15 0
85738602 SiZuKaaa A July 2, 2020, 5:30 a.m. OK GNU C++11 TESTS 3 15 0
85739418 dysyn1314 A July 2, 2020, 5:42 a.m. OK GNU C++11 TESTS 3 15 0
85673500 fanqeixi A July 1, 2020, 2:50 p.m. OK GNU C++14 TESTS 3 0 0
85740795 rags_1501 A July 2, 2020, 6:01 a.m. OK GNU C++14 TESTS 3 15 0
85740213 lengzz A July 2, 2020, 5:53 a.m. OK GNU C++14 TESTS 3 15 0
85740320 retr__0 A July 2, 2020, 5:54 a.m. OK GNU C++14 TESTS 3 15 0
85740649 kmshalini00 A July 2, 2020, 5:59 a.m. OK GNU C++14 TESTS 3 15 0
85738466 charan45 A July 2, 2020, 5:28 a.m. OK GNU C++14 TESTS 3 15 0
85738771 2019163 A July 2, 2020, 5:33 a.m. OK GNU C++14 TESTS 3 15 0
85738912 DIKSHA_SINGHAL A July 2, 2020, 5:35 a.m. OK GNU C++14 TESTS 3 15 0
85739120 Reddy_3.14 A July 2, 2020, 5:38 a.m. OK GNU C++14 TESTS 3 15 0
85739916 day_tripper A July 2, 2020, 5:49 a.m. OK GNU C++14 TESTS 3 15 0
85661664 lost_soul519 A July 1, 2020, 2:27 p.m. OK GNU C++17 TESTS 3 0 0
85712312 nirmal_suthar A July 1, 2020, 6:50 p.m. OK GNU C++17 TESTS 3 0 0
85701040 Newbie-Compiler A July 1, 2020, 4:54 p.m. OK GNU C++17 TESTS 3 0 0
85737860 Zweib A July 2, 2020, 5:17 a.m. OK GNU C++17 TESTS 3 15 0
85740741 Aziz_14_ A July 2, 2020, 6:01 a.m. OK GNU C++17 TESTS 3 15 0
85740317 Eswaraprasad A July 2, 2020, 5:54 a.m. OK GNU C++17 TESTS 3 15 0
85739021 Peal_Mazumder A July 2, 2020, 5:37 a.m. OK GNU C++17 TESTS 3 15 0
85738987 shameedoffice A July 2, 2020, 5:36 a.m. OK GNU C++17 TESTS 3 15 0
85738692 fake_practice A July 2, 2020, 5:31 a.m. OK GNU C++17 TESTS 3 15 0
85738189 lcjWA A July 2, 2020, 5:23 a.m. OK GNU C++17 TESTS 3 15 0
85700743 tanmay30 A July 1, 2020, 4:52 p.m. OK GNU C++17 (64) TESTS 3 0 0
85734283 adi2710 A July 2, 2020, 4:16 a.m. OK GNU C++17 (64) TESTS 3 0 0
85725017 kvutxdy A July 2, 2020, 12:27 a.m. OK GNU C++17 (64) TESTS 3 15 0
85726064 iaNTU A July 2, 2020, 1:04 a.m. OK GNU C++17 (64) TESTS 3 15 0
85727324 vjudge5 A July 2, 2020, 1:42 a.m. OK GNU C++17 (64) TESTS 3 15 0
85724145 nicknamee12 A July 1, 2020, 11:52 p.m. OK GNU C++17 (64) TESTS 3 15 0
85733727 yashj6294 A July 2, 2020, 4:04 a.m. OK GNU C++17 (64) TESTS 3 15 0
85735882 Suyun514 A July 2, 2020, 4:45 a.m. OK GNU C++17 (64) TESTS 3 15 0
85733510 haruki_K A July 2, 2020, 4 a.m. OK GNU C++17 (64) TESTS 3 15 0
85724457 FlowerOfSorrow A July 2, 2020, 12:06 a.m. OK GNU C++17 (64) TESTS 3 15 0
85737182 BugLeave A July 2, 2020, 5:07 a.m. OK Go TESTS 3 46 0
85717562 Russell_Emerine A July 1, 2020, 8:21 p.m. OK Haskell TESTS 3 15 0
85702969 iamgabruh A July 1, 2020, 5:06 p.m. OK Java 11 TESTS 3 155 0
85733333 prafful49 A July 2, 2020, 3:57 a.m. OK Java 11 TESTS 3 171 0
85723998 Oopsimbad A July 1, 2020, 11:45 p.m. OK Java 11 TESTS 3 171 0
85710595 Akag A July 1, 2020, 6:26 p.m. OK Java 11 TESTS 3 171 0
85708395 adhi_2311 A July 1, 2020, 5:59 p.m. OK Java 11 TESTS 3 171 0
85707441 litesam A July 1, 2020, 5:48 p.m. OK Java 11 TESTS 3 171 0
85681727 typewriter999 A July 1, 2020, 3:06 p.m. OK Java 11 TESTS 3 171 0
85673054 satya_2810 A July 1, 2020, 2:49 p.m. OK Java 11 TESTS 3 171 0
85701745 NalinTiwary A July 1, 2020, 4:58 p.m. OK Java 11 TESTS 3 171 3072000
85717504 aniket19233 A July 1, 2020, 8:19 p.m. OK Java 11 TESTS 3 186 0
85705775 hassanU A July 1, 2020, 5:32 p.m. OK Java 8 TESTS 3 77 0
85715060 Naman_123 A July 1, 2020, 7:33 p.m. OK Java 8 TESTS 3 78 0
85732029 akshith1997 A July 2, 2020, 3:31 a.m. OK Java 8 TESTS 3 92 0
85738234 algo.java A July 2, 2020, 5:24 a.m. OK Java 8 TESTS 3 92 0
85733887 labdhi A July 2, 2020, 4:08 a.m. OK Java 8 TESTS 3 93 0
85735646 atharvat77 A July 2, 2020, 4:41 a.m. OK Java 8 TESTS 3 93 0
85731999 ISSAM_LAKOUAM A July 2, 2020, 3:30 a.m. OK Java 8 TESTS 3 93 0
85731627 pulkit14 A July 2, 2020, 3:22 a.m. OK Java 8 TESTS 3 93 0
85730191 abhinav74 A July 2, 2020, 2:50 a.m. OK Java 8 TESTS 3 93 0
85717367 jxin31415 A July 1, 2020, 8:16 p.m. OK Java 8 TESTS 3 93 0
85701807 nuralamcse024 A July 1, 2020, 4:58 p.m. OK JavaScript TESTS 3 30 1024000
85716560 timurtibeyev A July 1, 2020, 7:59 p.m. OK Kotlin TESTS 3 93 0
85737513 BugLeave A July 2, 2020, 5:12 a.m. OK Kotlin TESTS 3 93 0
85725324 Spheniscine A July 2, 2020, 12:38 a.m. OK Kotlin TESTS 3 108 0
85712804 Hakiobo A July 1, 2020, 6:57 p.m. OK Kotlin TESTS 3 108 0
85676877 CepGamer A July 1, 2020, 2:56 p.m. OK Kotlin TESTS 3 155 0
85675694 riantkb A July 1, 2020, 2:54 p.m. OK Mono C# TESTS 3 46 102400
85706166 TRR A July 1, 2020, 5:36 p.m. OK Mono C# TESTS 3 61 0
85703869 dekir A July 1, 2020, 5:13 p.m. OK Mono C# TESTS 3 62 0
85674384 chillionaire_08 A July 1, 2020, 2:51 p.m. OK MS C++ TESTS 3 30 0
85671040 MazenShebeta A July 1, 2020, 2:45 p.m. OK MS C++ TESTS 3 31 0
85662850 Amit_123 A July 1, 2020, 2:29 p.m. OK MS C++ 2017 TESTS 3 15 0
85732775 Monitorz A July 2, 2020, 3:46 a.m. OK MS C++ 2017 TESTS 3 15 0
85690271 HelloWorld101 A July 1, 2020, 3:24 p.m. OK MS C++ 2017 TESTS 3 15 0
85676427 Dastaan_54 A July 1, 2020, 2:56 p.m. OK MS C++ 2017 TESTS 3 15 0
85664307 serv A July 1, 2020, 2:32 p.m. OK MS C++ 2017 TESTS 3 15 0
85727929 skymin A July 2, 2020, 1:56 a.m. OK MS C++ 2017 TESTS 3 15 4812800
85661443 betteraway A July 1, 2020, 2:27 p.m. OK MS C++ 2017 TESTS 3 30 0
85689905 icecap360 A July 1, 2020, 3:24 p.m. OK MS C++ 2017 TESTS 3 30 0
85692821 GayLord1.1 A July 1, 2020, 3:29 p.m. OK MS C++ 2017 TESTS 3 30 0
85716200 swomack A July 1, 2020, 7:53 p.m. OK MS C++ 2017 TESTS 3 30 307200
85728812 OmniSliver A July 2, 2020, 2:18 a.m. OK Node.js TESTS 3 77 102400
85669154 explorer_sifat A July 1, 2020, 2:41 p.m. OK Node.js TESTS 3 77 1331200
85728828 pk01 A July 2, 2020, 2:18 a.m. OK PyPy 2 TESTS 3 155 102400
85730762 ORZZZQTXDY A July 2, 2020, 3:03 a.m. OK PyPy 2 TESTS 3 155 102400
85708105 quadraticreciprocity A July 1, 2020, 5:55 p.m. OK PyPy 2 TESTS 3 171 204800
85698809 UTMoonlight A July 1, 2020, 4:44 p.m. OK PyPy 3 TESTS 3 124 1433600
85738840 _tool_ A July 2, 2020, 5:34 a.m. OK PyPy 3 TESTS 3 139 1433600
85710598 Venom_007 A July 1, 2020, 6:26 p.m. OK PyPy 3 TESTS 3 139 1638400
85724451 jscn A July 2, 2020, 12:06 a.m. OK PyPy 3 TESTS 3 140 0
85704448 xicarik A July 1, 2020, 5:19 p.m. OK PyPy 3 TESTS 3 140 1433600
85714510 otterPurva A July 1, 2020, 7:24 p.m. OK PyPy 3 TESTS 3 155 1433600
85712790 nidhi1503 A July 1, 2020, 6:57 p.m. OK PyPy 3 TESTS 3 155 2662400
85727214 GRAYRHINO A July 2, 2020, 1:38 a.m. OK PyPy 3 TESTS 3 155 2764800
85706618 bit_2 A July 1, 2020, 5:40 p.m. OK PyPy 3 TESTS 3 156 1740800
85695368 abhishek.maletha2000 A July 1, 2020, 3:33 p.m. OK PyPy 3 TESTS 3 156 2764800
85713471 ap1008 A July 1, 2020, 7:07 p.m. OK Python 2 TESTS 3 171 0
85707833 elistark A July 1, 2020, 5:52 p.m. OK Python 2 TESTS 3 171 0
85668689 Prasanna28 A July 1, 2020, 2:40 p.m. OK Python 3 TESTS 3 92 0
85740092 dineshreddy01 A July 2, 2020, 5:52 a.m. OK Python 3 TESTS 3 93 0
85739892 Norch A July 2, 2020, 5:49 a.m. OK Python 3 TESTS 3 93 0
85739258 subham2512 A July 2, 2020, 5:40 a.m. OK Python 3 TESTS 3 93 0
85738999 Inferno2332 A July 2, 2020, 5:36 a.m. OK Python 3 TESTS 3 93 0
85737331 manas17 A July 2, 2020, 5:09 a.m. OK Python 3 TESTS 3 93 0
85729135 hannibal404 A July 2, 2020, 2:25 a.m. OK Python 3 TESTS 3 93 0
85727339 KanhuKeNanu A July 2, 2020, 1:42 a.m. OK Python 3 TESTS 3 93 0
85727067 tryxl A July 2, 2020, 1:34 a.m. OK Python 3 TESTS 3 93 0
85726721 Shyam456 A July 2, 2020, 1:25 a.m. OK Python 3 TESTS 3 93 0
85717587 sp1cyChezz A July 1, 2020, 8:22 p.m. OK Ruby TESTS 3 904 102400
85728187 Luis.D A July 2, 2020, 2:02 a.m. OK Rust TESTS 3 46 0

remove filters

Back to search problems