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 |
---|---|---|---|---|---|---|
1767 | Educational Codeforces Round 140 (Rated for Div. 2) | FINISHED | False | 7200 | 60621899 | Dec. 16, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 20455 ) | B | Block Towers | PROGRAMMING | greedy sortings |
B"There are n block towers, numbered from 1 to n . The i -th tower consists of a_i blocks. In one move, you can move one block from tower i to tower j , but only if a_i > a_j . That move increases a_j by 1 and decreases a_i by 1 . You can perform as many moves as you would like (possibly, zero). What's the largest amount of blocks you can have on the tower 1 after the moves? The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. The first line of each testcase contains a single integer n ( 2 <= n <= 2 cdot 10^5 ) -- the number of towers. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the number of blocks on each tower. The sum of n over all testcases doesn't exceed 2 cdot 10^5 . For each testcase, print the largest amount of blocks you can have on the tower 1 after you make any number of moves (possibly, zero). In the first testcase, you can move a block from tower 2 to tower 1 , making the block counts [2, 1, 3] . Then move a block from tower 3 to tower 1 , making the block counts [3, 1, 2] . Tower 1 has 3 blocks in it, and you can't obtain a larger amount. In the second testcase, you can move a block from any of towers 2 or 3 to tower 1 , so that it has 2 blocks in it. In the third testcase, you can 500000000 times move a block from tower 2 to tower 1 . After that the block countes will be [500000001, 500000000] . "... |
110225 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
185541236 | singhkrishnajsr143 | B | Dec. 16, 2022, 5:16 p.m. | OK | C# 10 | TESTS | 9 | 109 | 26112000 | ||
185567449 | bluemegane | B | Dec. 16, 2022, 10:41 p.m. | OK | C# 8 | TESTS | 9 | 170 | 27033600 | ||
185554524 | Nazmul_TheDarkHorse | B | Dec. 16, 2022, 7:09 p.m. | OK | Clang++17 Diagnostics | TESTS | 9 | 1075 | 819200 | ||
185540709 | romeo2002 | B | Dec. 16, 2022, 5:13 p.m. | OK | GNU C11 | TESTS | 9 | 77 | 819200 | ||
185526092 | rewanthtalasila | B | Dec. 16, 2022, 4:15 p.m. | OK | GNU C11 | TESTS | 9 | 93 | 819200 | ||
185556648 | Hoarfrost32 | B | Dec. 16, 2022, 7:33 p.m. | OK | GNU C11 | TESTS | 9 | 93 | 819200 | ||
185545363 | SP2003 | B | Dec. 16, 2022, 5:47 p.m. | OK | GNU C11 | TESTS | 9 | 93 | 3174400 | ||
185528301 | hhoZWW | B | Dec. 16, 2022, 4:21 p.m. | OK | GNU C11 | TESTS | 9 | 108 | 1638400 | ||
185544295 | mafijul | B | Dec. 16, 2022, 5:39 p.m. | OK | GNU C11 | TESTS | 9 | 109 | 1638400 | ||
185529232 | DG2022 | B | Dec. 16, 2022, 4:24 p.m. | OK | GNU C11 | TESTS | 9 | 140 | 3174400 | ||
185524521 | dbg_8 | B | Dec. 16, 2022, 4:11 p.m. | OK | GNU C++14 | TESTS | 9 | 46 | 1536000 | ||
185535117 | OrazB | B | Dec. 16, 2022, 4:40 p.m. | OK | GNU C++14 | TESTS | 9 | 46 | 1843200 | ||
185522438 | God-of-Code | B | Dec. 16, 2022, 4:05 p.m. | OK | GNU C++14 | TESTS | 9 | 61 | 819200 | ||
185580391 | zhang_yue_yi | B | Dec. 17, 2022, 4:49 a.m. | OK | GNU C++14 | TESTS | 9 | 62 | 819200 | ||
185578761 | Andwerp | B | Dec. 17, 2022, 4:17 a.m. | OK | GNU C++14 | TESTS | 9 | 62 | 819200 | ||
185571885 | tonysiyutao | B | Dec. 17, 2022, 1:21 a.m. | OK | GNU C++14 | TESTS | 9 | 62 | 819200 | ||
185571564 | _chroneZ | B | Dec. 17, 2022, 1:11 a.m. | OK | GNU C++14 | TESTS | 9 | 62 | 819200 | ||
185571441 | cubill | B | Dec. 17, 2022, 1:06 a.m. | OK | GNU C++14 | TESTS | 9 | 62 | 819200 | ||
185569919 | bardiahyhd | B | Dec. 17, 2022, 12:07 a.m. | OK | GNU C++14 | TESTS | 9 | 62 | 819200 | ||
185581467 | undefina | B | Dec. 17, 2022, 5:10 a.m. | OK | GNU C++14 | TESTS | 9 | 62 | 819200 | ||
185555194 | Pradumn13 | B | Dec. 16, 2022, 7:17 p.m. | OK | GNU C++17 | TESTS | 9 | 15 | 1126400 | ||
185554965 | Pradumn13 | B | Dec. 16, 2022, 7:14 p.m. | OK | GNU C++17 | TESTS | 9 | 30 | 3993600 | ||
185570849 | _hobbyist | B | Dec. 17, 2022, 12:41 a.m. | OK | GNU C++17 | TESTS | 9 | 46 | 1638400 | ||
185573365 | wananan | B | Dec. 17, 2022, 2 a.m. | OK | GNU C++17 | TESTS | 9 | 46 | 1638400 | ||
185530110 | TTBB | B | Dec. 16, 2022, 4:26 p.m. | OK | GNU C++17 | TESTS | 9 | 61 | 819200 | ||
185583091 | Kanheyalal | B | Dec. 17, 2022, 5:34 a.m. | OK | GNU C++17 | TESTS | 9 | 62 | 819200 | ||
185579195 | izano | B | Dec. 17, 2022, 4:26 a.m. | OK | GNU C++17 | TESTS | 9 | 62 | 819200 | ||
185578497 | anurag_5 | B | Dec. 17, 2022, 4:12 a.m. | OK | GNU C++17 | TESTS | 9 | 62 | 819200 | ||
185583231 | _swaraj_ | B | Dec. 17, 2022, 5:36 a.m. | OK | GNU C++17 | TESTS | 9 | 62 | 819200 | ||
185579582 | kulkarni.r.yash | B | Dec. 17, 2022, 4:34 a.m. | OK | GNU C++17 | TESTS | 9 | 62 | 819200 | ||
185574237 | zhangshaojia | B | Dec. 17, 2022, 2:29 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 819200 | ||
185560743 | Huntik_03 | B | Dec. 16, 2022, 8:24 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 819200 | ||
185541419 | AmirH_O | B | Dec. 16, 2022, 5:17 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185584059 | RohitRKS | B | Dec. 17, 2022, 5:48 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185580435 | zeecode15 | B | Dec. 17, 2022, 4:50 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185568956 | tushar_2021 | B | Dec. 16, 2022, 11:33 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185559113 | tushar_2021 | B | Dec. 16, 2022, 8:01 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185553721 | Misbaul_Hasan | B | Dec. 16, 2022, 7 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185543646 | khubsadman | B | Dec. 16, 2022, 5:34 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185537015 | walilili | B | Dec. 16, 2022, 4:50 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 46 | 1638400 | ||
185568412 | 54M4R | B | Dec. 16, 2022, 11:13 p.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 819200 | ||
185576577 | Vionia | B | Dec. 17, 2022, 3:30 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 819200 | ||
185577288 | katsu. | B | Dec. 17, 2022, 3:46 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 819200 | ||
185536046 | R.Ranjan | B | Dec. 16, 2022, 4:45 p.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 819200 | ||
185537499 | Frus | B | Dec. 16, 2022, 4:53 p.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 819200 | ||
185553168 | tyrant01 | B | Dec. 16, 2022, 6:55 p.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 819200 | ||
185561733 | oneku | B | Dec. 16, 2022, 8:39 p.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 819200 | ||
185582316 | saurav_s00 | B | Dec. 17, 2022, 5:23 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 1638400 | ||
185577887 | Hexzenberg | B | Dec. 17, 2022, 3:59 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 1638400 | ||
185573400 | Forwhy | B | Dec. 17, 2022, 2:02 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 31 | 1638400 | ||
185530934 | _shrish_ | B | Dec. 16, 2022, 4:28 p.m. | OK | Go | TESTS | 9 | 124 | 7884800 | ||
185556775 | deepakjoshi6102 | B | Dec. 16, 2022, 7:34 p.m. | OK | Java 11 | TESTS | 9 | 233 | 3174400 | ||
185537150 | __Serendipity | B | Dec. 16, 2022, 4:51 p.m. | OK | Java 11 | TESTS | 9 | 233 | 5529600 | ||
185523530 | saurabh_kh | B | Dec. 16, 2022, 4:08 p.m. | OK | Java 11 | TESTS | 9 | 249 | 6348800 | ||
185530748 | dheerajchhatanidc | B | Dec. 16, 2022, 4:28 p.m. | OK | Java 11 | TESTS | 9 | 295 | 3584000 | ||
185536290 | shubham202012 | B | Dec. 16, 2022, 4:46 p.m. | OK | Java 11 | TESTS | 9 | 296 | 5017600 | ||
185544682 | tanish_1131 | B | Dec. 16, 2022, 5:42 p.m. | OK | Java 11 | TESTS | 9 | 311 | 3891200 | ||
185563465 | DarkNight47Rises | B | Dec. 16, 2022, 9:08 p.m. | OK | Java 11 | TESTS | 9 | 530 | 0 | ||
185522859 | singhalmradul | B | Dec. 16, 2022, 4:06 p.m. | OK | Java 11 | TESTS | 9 | 545 | 0 | ||
185525201 | AppleJuice123 | B | Dec. 16, 2022, 4:13 p.m. | OK | Java 11 | TESTS | 9 | 546 | 0 | ||
185522970 | PrernaV_142002 | B | Dec. 16, 2022, 4:07 p.m. | OK | Java 11 | TESTS | 9 | 561 | 2662400 | ||
185582145 | Badass_Nemesis | B | Dec. 17, 2022, 5:19 a.m. | OK | Java 17 | TESTS | 9 | 217 | 512000 | ||
185567177 | sourin_bruh | B | Dec. 16, 2022, 10:33 p.m. | OK | Java 17 | TESTS | 9 | 249 | 4505600 | ||
185567315 | sourin_bruh | B | Dec. 16, 2022, 10:37 p.m. | OK | Java 17 | TESTS | 9 | 264 | 3686400 | ||
185522808 | -Jarvis- | B | Dec. 16, 2022, 4:06 p.m. | OK | Java 17 | TESTS | 9 | 264 | 4096000 | ||
185582231 | shahneel226 | B | Dec. 17, 2022, 5:21 a.m. | OK | Java 17 | TESTS | 9 | 265 | 3174400 | ||
185567232 | sourin_bruh | B | Dec. 16, 2022, 10:35 p.m. | OK | Java 17 | TESTS | 9 | 265 | 3686400 | ||
185549961 | harman1148 | B | Dec. 16, 2022, 6:25 p.m. | OK | Java 17 | TESTS | 9 | 296 | 21401600 | ||
185567214 | sourin_bruh | B | Dec. 16, 2022, 10:34 p.m. | OK | Java 17 | TESTS | 9 | 311 | 3686400 | ||
185567152 | sourin_bruh | B | Dec. 16, 2022, 10:33 p.m. | OK | Java 17 | TESTS | 9 | 311 | 4812800 | ||
185564987 | abdulazizms | B | Dec. 16, 2022, 9:40 p.m. | OK | Java 17 | TESTS | 9 | 327 | 20172800 | ||
185557361 | imMortalSuv | B | Dec. 16, 2022, 7:41 p.m. | OK | Java 8 | TESTS | 9 | 155 | 11468800 | ||
185553848 | avinendra08 | B | Dec. 16, 2022, 7:02 p.m. | OK | Java 8 | TESTS | 9 | 171 | 10444800 | ||
185528610 | yadavdipesh | B | Dec. 16, 2022, 4:22 p.m. | OK | Java 8 | TESTS | 9 | 187 | 13516800 | ||
185533491 | hanisntsolo | B | Dec. 16, 2022, 4:33 p.m. | OK | Java 8 | TESTS | 9 | 202 | 66048000 | ||
185581649 | golions | B | Dec. 17, 2022, 5:12 a.m. | OK | Java 8 | TESTS | 9 | 217 | 9728000 | ||
185546411 | Juhaied_nabid | B | Dec. 16, 2022, 5:56 p.m. | OK | Java 8 | TESTS | 9 | 436 | 0 | ||
185540653 | toufique_husein | B | Dec. 16, 2022, 5:12 p.m. | OK | Java 8 | TESTS | 9 | 436 | 0 | ||
185522891 | FrAnKy_Mawina | B | Dec. 16, 2022, 4:06 p.m. | OK | Java 8 | TESTS | 9 | 452 | 0 | ||
185582109 | harshpanwar1705 | B | Dec. 17, 2022, 5:19 a.m. | OK | Java 8 | TESTS | 9 | 467 | 0 | ||
185581733 | Tanvir2000 | B | Dec. 17, 2022, 5:13 a.m. | OK | Java 8 | TESTS | 9 | 467 | 0 | ||
185559971 | aadrito | B | Dec. 16, 2022, 8:14 p.m. | OK | MS C++ 2017 | TESTS | 9 | 171 | 819200 | ||
185558965 | aadrito | B | Dec. 16, 2022, 8 p.m. | OK | MS C++ 2017 | TESTS | 9 | 171 | 819200 | ||
185538233 | hot_chert | B | Dec. 16, 2022, 4:57 p.m. | OK | MS C++ 2017 | TESTS | 9 | 171 | 819200 | ||
185531478 | lkh4317 | B | Dec. 16, 2022, 4:29 p.m. | OK | MS C++ 2017 | TESTS | 9 | 171 | 819200 | ||
185531211 | lkh4317 | B | Dec. 16, 2022, 4:29 p.m. | OK | MS C++ 2017 | TESTS | 9 | 171 | 819200 | ||
185534099 | whiteReboot | B | Dec. 16, 2022, 4:34 p.m. | OK | MS C++ 2017 | TESTS | 9 | 187 | 819200 | ||
185525801 | Repaidd | B | Dec. 16, 2022, 4:14 p.m. | OK | MS C++ 2017 | TESTS | 9 | 202 | 819200 | ||
185565134 | shorya1835 | B | Dec. 16, 2022, 9:43 p.m. | OK | MS C++ 2017 | TESTS | 9 | 202 | 2252800 | ||
185532463 | khushich | B | Dec. 16, 2022, 4:31 p.m. | OK | MS C++ 2017 | TESTS | 9 | 202 | 2252800 | ||
185554800 | aryasrivastava17 | B | Dec. 16, 2022, 7:12 p.m. | OK | MS C++ 2017 | TESTS | 9 | 202 | 4403200 | ||
185526977 | k26rahul | B | Dec. 16, 2022, 4:18 p.m. | OK | Node.js | TESTS | 9 | 217 | 27852800 | ||
185568631 | mtorreselizo | B | Dec. 16, 2022, 11:20 p.m. | OK | PHP | TESTS | 9 | 233 | 31539200 | ||
185574575 | hxu10 | B | Dec. 17, 2022, 2:40 a.m. | OK | PyPy 3 | TESTS | 9 | 155 | 21196800 | ||
185545951 | WalrusRamen21 | B | Dec. 16, 2022, 5:52 p.m. | OK | PyPy 3 | TESTS | 9 | 436 | 19763200 | ||
185540356 | fntfaizan | B | Dec. 16, 2022, 5:10 p.m. | OK | PyPy 3 | TESTS | 9 | 467 | 19148800 | ||
185525781 | whohowlong | B | Dec. 16, 2022, 4:14 p.m. | OK | PyPy 3 | TESTS | 9 | 467 | 19456000 | ||
185524939 | sohilkhanduja | B | Dec. 16, 2022, 4:12 p.m. | OK | PyPy 3 | TESTS | 9 | 483 | 18944000 | ||
185547789 | kunal_14s | B | Dec. 16, 2022, 6:07 p.m. | OK | PyPy 3 | TESTS | 9 | 483 | 19148800 | ||
185543298 | Abu_Bakar_Siddik | B | Dec. 16, 2022, 5:31 p.m. | OK | PyPy 3 | TESTS | 9 | 498 | 19456000 | ||
185538951 | shivank.pasi | B | Dec. 16, 2022, 5:02 p.m. | OK | PyPy 3 | TESTS | 9 | 499 | 18944000 | ||
185542580 | singhanki | B | Dec. 16, 2022, 5:26 p.m. | OK | PyPy 3 | TESTS | 9 | 529 | 19353600 | ||
185532311 | hjk63 | B | Dec. 16, 2022, 4:31 p.m. | OK | PyPy 3 | TESTS | 9 | 530 | 20070400 | ||
185563165 | beethoven97 | B | Dec. 16, 2022, 9:03 p.m. | OK | PyPy 3-64 | TESTS | 9 | 108 | 21504000 | ||
185569736 | bokunopicolo | B | Dec. 17, 2022, 12:01 a.m. | OK | PyPy 3-64 | TESTS | 9 | 109 | 28467200 | ||
185538455 | Lolikion | B | Dec. 16, 2022, 4:59 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 22220800 | ||
185551631 | mayank35 | B | Dec. 16, 2022, 6:40 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 24473600 | ||
185531421 | nilan11 | B | Dec. 16, 2022, 4:29 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 29388800 | ||
185574545 | hkwu6013 | B | Dec. 17, 2022, 2:39 a.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 29900800 | ||
185561304 | hosamcv0 | B | Dec. 16, 2022, 8:32 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 30105600 | ||
185575284 | zjcccc | B | Dec. 17, 2022, 2:59 a.m. | OK | PyPy 3-64 | TESTS | 9 | 140 | 26726400 | ||
185561981 | Anti-Neutrino | B | Dec. 16, 2022, 8:43 p.m. | OK | PyPy 3-64 | TESTS | 9 | 140 | 30208000 | ||
185528233 | Netaji_Subhas | B | Dec. 16, 2022, 4:21 p.m. | OK | PyPy 3-64 | TESTS | 9 | 140 | 30617600 | ||
185522317 | dee2018 | B | Dec. 16, 2022, 4:05 p.m. | OK | Python 3 | TESTS | 9 | 233 | 18329600 | ||
185582873 | eugalt | B | Dec. 17, 2022, 5:31 a.m. | OK | Python 3 | TESTS | 9 | 234 | 19660800 | ||
185544891 | bekeygul | B | Dec. 16, 2022, 5:44 p.m. | OK | Python 3 | TESTS | 9 | 248 | 18022400 | ||
185521606 | WAAAAAAAAAAAAAAAAAAAAA | B | Dec. 16, 2022, 4:03 p.m. | OK | Python 3 | TESTS | 9 | 248 | 18022400 | ||
185536889 | devi.aishwarya15 | B | Dec. 16, 2022, 4:49 p.m. | OK | Python 3 | TESTS | 9 | 249 | 17612800 | ||
185569641 | ahmedramadan5452332 | B | Dec. 16, 2022, 11:57 p.m. | OK | Python 3 | TESTS | 9 | 264 | 16486400 | ||
185535477 | mariemmohamed200713 | B | Dec. 16, 2022, 4:42 p.m. | OK | Python 3 | TESTS | 9 | 265 | 18022400 | ||
185535126 | aviral2004 | B | Dec. 16, 2022, 4:40 p.m. | OK | Python 3 | TESTS | 9 | 265 | 18022400 | ||
185568243 | ben.bjorsvik | B | Dec. 16, 2022, 11:06 p.m. | OK | Python 3 | TESTS | 9 | 280 | 16486400 | ||
185538445 | vinayworks666 | B | Dec. 16, 2022, 4:59 p.m. | OK | Python 3 | TESTS | 9 | 280 | 17612800 | ||
185543493 | mdmundo | B | Dec. 16, 2022, 5:33 p.m. | OK | Rust 2021 | TESTS | 9 | 31 | 7884800 | ||
185580788 | cottoncotton | B | Dec. 17, 2022, 4:58 a.m. | OK | Rust 2021 | TESTS | 9 | 46 | 69632000 |
Back to search problems