Codeforces Round 878 (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
1840 Codeforces Round 878 (Div. 3) FINISHED False 8100 51117863 June 6, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14311 ) D Wooden Toy Festival PROGRAMMING binary search greedy sortings

B"In a small town, there is a workshop specializing in woodwork. Since the town is small, only three carvers work there. Soon, a wooden toy festival is planned in the town. The workshop employees want to prepare for it. They know that n people will come to the workshop with a request to make a wooden toy. People are different and may want different toys. For simplicity, let's denote the pattern of the toy that the i -th person wants as a_i ( 1 <= a_i <= 10^9 ). Each of the carvers can choose an integer pattern x ( 1 <= x <= 10^9 ) in advance, different carvers can choose different patterns. x is the integer. During the preparation for the festival, the carvers will perfectly work out the technique of making the toy of the chosen pattern, which will allow them to cut it out of wood instantly. To make a toy of pattern y for a carver who has chosen pattern x , it will take |x - y| time, because the more the toy resembles the one he can make instantly, the faster the carver will cope with the work. On the day of the festival, when the next person comes to the workshop with a request to make a wooden toy, the carvers can choose who will take on the job. At the same time, the carvers are very skilled people and can work on orders for different people simultaneously. Since people don't like to wait, the carvers want to choose patterns for preparation in such a way that the maximum waiting time over all people is as small as possible. Output the best maximum waiting time that the carvers can achieve. The first line of the input contains an integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then follow the descriptions of the test cases. The first line of a test case contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of people who will come to the workshop. The second line of a test case contains n integers a_1, a_2, a_3, ... , a_n ( 1 <= a_i"...

Tutorials

Codeforces Round #878 (Div.3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
208810989 hhsaffar D June 6, 2023, 4:49 p.m. OK C# 10 TESTS 19 187 37683200
208853840 Dhru008 D June 7, 2023, 5:03 a.m. OK C# 10 TESTS 19 1060 73113600
208853889 swayingdream D June 7, 2023, 5:04 a.m. OK GNU C11 TESTS 19 78 819200
208837998 alsharif.mohamed23 D June 6, 2023, 10:41 p.m. OK GNU C++14 TESTS 19 62 819200
208841419 meowduck D June 7, 2023, 1:01 a.m. OK GNU C++14 TESTS 19 77 3993600
208849572 Linver D June 7, 2023, 3:54 a.m. OK GNU C++14 TESTS 19 78 819200
208846685 funnyguyz D June 7, 2023, 3:03 a.m. OK GNU C++14 TESTS 19 78 819200
208845720 seekluna D June 7, 2023, 2:44 a.m. OK GNU C++14 TESTS 19 78 819200
208845154 seekluna D June 7, 2023, 2:32 a.m. OK GNU C++14 TESTS 19 78 819200
208844152 seekluna D June 7, 2023, 2:13 a.m. OK GNU C++14 TESTS 19 78 819200
208839858 og_abryel D June 6, 2023, 11:57 p.m. OK GNU C++14 TESTS 19 78 819200
208837646 alsharif.mohamed23 D June 6, 2023, 10:29 p.m. OK GNU C++14 TESTS 19 78 819200
208857795 Mr_White_ D June 7, 2023, 6:01 a.m. OK GNU C++14 TESTS 19 78 819200
208845240 XiaoDou D June 7, 2023, 2:34 a.m. OK GNU C++17 TESTS 19 62 1536000
208844984 Alpaca00 D June 7, 2023, 2:29 a.m. OK GNU C++17 TESTS 19 77 819200
208843599 Rorschach77 D June 7, 2023, 2 a.m. OK GNU C++17 TESTS 19 77 819200
208841416 shen_256 D June 7, 2023, 1 a.m. OK GNU C++17 TESTS 19 77 819200
208837995 MAlexxiT D June 6, 2023, 10:40 p.m. OK GNU C++17 TESTS 19 77 819200
208847817 Amro_Sous D June 7, 2023, 3:23 a.m. OK GNU C++17 TESTS 19 77 819200
208828990 jiv99sri25 D June 6, 2023, 7:18 p.m. OK GNU C++17 TESTS 19 77 819200
208838901 yejihan D June 6, 2023, 11:16 p.m. OK GNU C++17 TESTS 19 77 2457600
208855252 knightzzz1 D June 7, 2023, 5:25 a.m. OK GNU C++17 TESTS 19 78 819200
208854750 temp190 D June 7, 2023, 5:18 a.m. OK GNU C++17 TESTS 19 78 819200
208854039 Fiatiustitia D June 7, 2023, 5:07 a.m. OK GNU C++17 (64) TESTS 19 46 819200
208816760 sillyMistakes D June 6, 2023, 5:14 p.m. OK GNU C++17 (64) TESTS 19 61 819200
208814824 Ma7moud_Desouky D June 6, 2023, 5:03 p.m. OK GNU C++17 (64) TESTS 19 61 819200
208838627 GabrielNeri D June 6, 2023, 11:05 p.m. OK GNU C++17 (64) TESTS 19 61 1638400
208822240 Fagun D June 6, 2023, 5:58 p.m. OK GNU C++17 (64) TESTS 19 61 9625600
208854947 Ceased.xp D June 7, 2023, 5:21 a.m. OK GNU C++17 (64) TESTS 19 62 819200
208840988 MaGnsi0 D June 7, 2023, 12:45 a.m. OK GNU C++17 (64) TESTS 19 62 819200
208835207 enslaved D June 6, 2023, 9:14 p.m. OK GNU C++17 (64) TESTS 19 62 819200
208841771 turgon314 D June 7, 2023, 1:14 a.m. OK GNU C++17 (64) TESTS 19 62 819200
208818115 atulkumarmaurya201 D June 6, 2023, 5:23 p.m. OK GNU C++17 (64) TESTS 19 62 819200
208851635 jiangly D June 7, 2023, 4:28 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208851190 AbeedShaik D June 7, 2023, 4:20 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208849530 Heisenburg-120 D June 7, 2023, 3:53 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208853690 himanshu_jadon D June 7, 2023, 5:01 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208857705 makinotori14 D June 7, 2023, 5:59 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208856849 Jaydatt_Dholakiya D June 7, 2023, 5:48 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208856174 zhangzs D June 7, 2023, 5:38 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208855321 riseacat D June 7, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208852838 wyhong3103 D June 7, 2023, 4:47 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208852378 mobbb D June 7, 2023, 4:40 a.m. OK GNU C++20 (64) TESTS 19 46 819200
208818000 MrAIMStein D June 6, 2023, 5:22 p.m. OK Go TESTS 19 62 10240000
208827408 Nikscorp D June 6, 2023, 6:54 p.m. OK Go TESTS 19 77 8192000
208844042 cck111 D June 7, 2023, 2:10 a.m. OK Go TESTS 19 156 5222400
208843960 xiaopang003 D June 7, 2023, 2:08 a.m. OK Java 11 TESTS 19 249 0
208844744 aditya_2024 D June 7, 2023, 2:24 a.m. OK Java 11 TESTS 19 280 0
208822204 aswad2 D June 6, 2023, 5:58 p.m. OK Java 11 TESTS 19 312 0
208843420 NithinBharathi D June 7, 2023, 1:55 a.m. OK Java 11 TESTS 19 373 4403200
208827740 kasiru_69 D June 6, 2023, 6:59 p.m. OK Java 11 TESTS 19 389 4198400
208817866 Panther369 D June 6, 2023, 5:21 p.m. OK Java 11 TESTS 19 483 4198400
208818976 Vrutik_2809 D June 6, 2023, 5:29 p.m. OK Java 17 TESTS 19 187 512000
208844336 xiaopang003 D June 7, 2023, 2:17 a.m. OK Java 17 TESTS 19 280 614400
208824129 ManasR_2003 D June 6, 2023, 6:17 p.m. OK Java 17 TESTS 19 280 921600
208846951 kkz666 D June 7, 2023, 3:07 a.m. OK Java 17 TESTS 19 295 409600
208853054 rishabhkumrawat02 D June 7, 2023, 4:51 a.m. OK Java 17 TESTS 19 373 20582400
208845371 wdjuruo D June 7, 2023, 2:37 a.m. OK Java 17 TESTS 19 545 19558400
208832396 aryanmittal_10 D June 6, 2023, 8:13 p.m. OK Java 17 TESTS 19 592 1024000
208842025 Biubiu0919 D June 7, 2023, 1:20 a.m. OK Java 17 TESTS 19 607 1331200
208814005 zopchur D June 6, 2023, 4:58 p.m. OK Java 17 TESTS 19 623 1024000
208813622 AbdallaAzzohry D June 6, 2023, 4:57 p.m. OK Java 17 TESTS 19 638 1228800
208841681 Ayushtripathi441 D June 7, 2023, 1:11 a.m. OK Java 8 TESTS 19 187 3481600
208848204 bleach__ D June 7, 2023, 3:29 a.m. OK Java 8 TESTS 19 202 18227200
208830954 medos2000 D June 6, 2023, 7:48 p.m. OK Java 8 TESTS 19 217 3072000
208832425 kanumba D June 6, 2023, 8:14 p.m. OK Java 8 TESTS 19 264 4812800
208811254 EliudGarcia2004 D June 6, 2023, 4:49 p.m. OK Java 8 TESTS 19 373 3891200
208848820 Mmm_D D June 7, 2023, 3:40 a.m. OK Java 8 TESTS 19 467 0
208822616 procoderomk D June 6, 2023, 6:01 p.m. OK Java 8 TESTS 19 467 15155200
208848744 Mmm_D D June 7, 2023, 3:39 a.m. OK Java 8 TESTS 19 483 0
208825760 Abhinav__hadole D June 6, 2023, 6:34 p.m. OK Java 8 TESTS 19 529 0
208855651 vijay_panwar12 D June 7, 2023, 5:30 a.m. OK Java 8 TESTS 19 561 0
208853506 Hakiobo D June 7, 2023, 4:58 a.m. OK Kotlin 1.7 TESTS 19 592 10956800
208829995 Greyhound D June 6, 2023, 7:33 p.m. OK PyPy 3 TESTS 19 187 16486400
208822606 atLeastBlue D June 6, 2023, 6:01 p.m. OK PyPy 3 TESTS 19 607 19046400
208837285 34z12000 D June 6, 2023, 10:19 p.m. OK PyPy 3 TESTS 19 685 21504000
208849891 julondonor D June 7, 2023, 3:59 a.m. OK PyPy 3 TESTS 19 686 20377600
208835259 AbdulRahmanLuai D June 6, 2023, 9:16 p.m. OK PyPy 3-64 TESTS 19 155 26828800
208829557 damya D June 6, 2023, 7:26 p.m. OK PyPy 3-64 TESTS 19 155 30105600
208827087 Mustela_Erminea D June 6, 2023, 6:50 p.m. OK PyPy 3-64 TESTS 19 155 30105600
208817338 abhijeet.panihar.cse20 D June 6, 2023, 5:18 p.m. OK PyPy 3-64 TESTS 19 171 21196800
208842433 Quick-One D June 7, 2023, 1:31 a.m. OK PyPy 3-64 TESTS 19 171 33484800
208841110 sjNxksbzj D June 7, 2023, 12:50 a.m. OK PyPy 3-64 TESTS 19 202 24166400
208827557 pratyanch_jain D June 6, 2023, 6:57 p.m. OK PyPy 3-64 TESTS 19 202 24576000
208849909 dxulet D June 7, 2023, 3:59 a.m. OK PyPy 3-64 TESTS 19 202 30003200
208852203 waki_ D June 7, 2023, 4:37 a.m. OK PyPy 3-64 TESTS 19 202 30105600
208846407 Hisoka-TheMagician D June 7, 2023, 2:57 a.m. OK PyPy 3-64 TESTS 19 202 30105600
208826280 reynaldocv D June 6, 2023, 6:40 p.m. OK Python 3 TESTS 19 529 27750400
208826026 reynaldocv D June 6, 2023, 6:37 p.m. OK Python 3 TESTS 19 623 27750400
208818597 hanstraw D June 6, 2023, 5:27 p.m. OK Python 3 TESTS 19 748 29184000
208816842 AtLeastRed D June 6, 2023, 5:14 p.m. OK Python 3 TESTS 19 1122 27136000
208811329 contact.thevarunsappa D June 6, 2023, 4:49 p.m. OK Python 3 TESTS 19 1247 26521600
208811436 brownfox2k6 D June 6, 2023, 4:49 p.m. OK Python 3 TESTS 19 1949 28672000
208825231 matheusdacach D June 6, 2023, 6:28 p.m. OK Rust 2021 TESTS 19 155 16691200

remove filters

Back to search problems