Codeforces Round 935 (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
1945 Codeforces Round 935 (Div. 3) FINISHED False 8100 20987699 March 19, 2024, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 27792 ) A Setting up Camp PROGRAMMING greedy math

B'The organizing committee plans to take the participants of the Olympiad on a hike after the tour. Currently, the number of tents needed to be taken is being calculated. It is known that each tent can accommodate up to 3 people. Among the participants, there are a introverts, b extroverts, and c universals: The organizing committee respects the wishes of each participant very much, so they want to fulfill all of them. Tell us the minimum number of tents needed to be taken so that all participants can be accommodated according to their preferences. If it is impossible to accommodate the participants in a way that fulfills all the wishes, output -1 . Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. This is followed by the descriptions of the test cases. Each test case is described by a single line containing three integers a , b , c ( 0 <= a, b, c <= 10^9 ) -- the number of introverts, extroverts, and universals, respectively. For each test case, output a single integer -- the minimum number of tents, or -1 if it is impossible to accommodate the participants. In the first test case, 1 tent will be given to the introverts, 1 tent will be shared by two extroverts and one universal, and the last tent will be shared by two universals. In total, 3 tents are needed. In the second test case, three extroverts will take 1 tent, and 1 tent will be taken by an introvert. Then, one extrovert and one universal will be left. This extrovert will not be able to live with two others. '...

Tutorials

127377

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
252347285 YoussefAmr A March 19, 2024, 6:12 p.m. OK C# 10 TESTS 3 93 2764800
252348950 Shazidhstu20 A March 19, 2024, 6:25 p.m. OK C# 10 TESTS 3 93 2969600
252358917 kokora A March 19, 2024, 7:58 p.m. OK C# 10 TESTS 6 93 2969600
252312379 hello_guyzs A March 19, 2024, 2:30 p.m. OK C++14 (GCC 6-32) TESTS 3 0 0
252350161 reni444 A March 19, 2024, 6:35 p.m. OK C++14 (GCC 6-32) TESTS 3 0 0
252323949 kandivarshini1410 A March 19, 2024, 3:36 p.m. OK C++14 (GCC 6-32) TESTS 3 0 0
252313148 Romakolesn A March 19, 2024, 2:34 p.m. OK C++14 (GCC 6-32) TESTS 3 0 0
252391709 zhujiangyuan A March 20, 2024, 4:47 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252398205 LHJequelsIDIOT A March 20, 2024, 6 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252396753 namthanh2402 A March 20, 2024, 5:45 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252396492 krishrb2517_ A March 20, 2024, 5:42 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252394049 Karan741187 A March 20, 2024, 5:15 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252390760 l1ability A March 20, 2024, 4:32 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252378256 Ahmed_Jamal_Sultan A March 20, 2024, 1 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252393973 qiu_tianhan A March 20, 2024, 5:14 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252390699 MH_Nazmul A March 20, 2024, 4:32 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252389385 Seriously_Its_Sameer A March 20, 2024, 4:11 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252380160 qwerasdfzxcl A March 20, 2024, 1:38 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252374463 md_husain A March 19, 2024, 11:40 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252364290 ReGrn A March 19, 2024, 8:59 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252363817 farah___moh A March 19, 2024, 8:53 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252361598 Gedo_QotB A March 19, 2024, 8:26 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252361539 TarekFarag A March 19, 2024, 8:26 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252363702 yousefmohamed942 A March 19, 2024, 8:52 p.m. OK C++20 (GCC 13-64) TESTS 6 0 0
252397306 7cr A March 20, 2024, 5:51 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252396397 7cr A March 20, 2024, 5:41 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252395116 sakuaika A March 20, 2024, 5:27 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252391722 ritiwij A March 20, 2024, 4:47 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252390451 xctsar A March 20, 2024, 4:28 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252389656 1Notorious A March 20, 2024, 4:16 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252388015 YSGU A March 20, 2024, 3:50 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252374847 Abdelshakour A March 19, 2024, 11:49 p.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252379130 Narcissu233 A March 20, 2024, 1:18 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252388553 bluemegane A March 20, 2024, 3:59 a.m. OK C# 8 TESTS 6 108 2764800
252325443 calloc A March 19, 2024, 3:44 p.m. OK GNU C11 TESTS 3 15 0
252346063 L3002 A March 19, 2024, 6:03 p.m. OK GNU C11 TESTS 3 31 307200
252337999 kreesh_17 A March 19, 2024, 5:05 p.m. OK GNU C11 TESTS 3 46 0
252325273 krishnatulasi03 A March 19, 2024, 3:43 p.m. OK GNU C11 TESTS 3 46 0
252324254 lihua11 A March 19, 2024, 3:38 p.m. OK GNU C11 TESTS 3 46 0
252313353 Lauhensan A March 19, 2024, 2:35 p.m. OK GNU C11 TESTS 3 46 0
252327168 CHYShin A March 19, 2024, 3:54 p.m. OK GNU C11 TESTS 3 46 204800
252317322 Humaira228 A March 19, 2024, 2:58 p.m. OK GNU C11 TESTS 3 46 204800
252345020 makia A March 19, 2024, 5:55 p.m. OK GNU C11 TESTS 3 46 307200
252326294 Liton_Hossain_10 A March 19, 2024, 3:49 p.m. OK GNU C11 TESTS 3 46 307200
252360296 KRIS1 A March 19, 2024, 8:11 p.m. OK Go TESTS 6 701 1126400
252370429 Festyve A March 19, 2024, 10:22 p.m. OK Java 21 TESTS 6 202 0
252313171 Shaker_32 A March 19, 2024, 2:34 p.m. OK Java 21 TESTS 3 264 0
252346186 bytecoder18943 A March 19, 2024, 6:04 p.m. OK Java 21 TESTS 3 264 0
252305585 Pratik_M07 A March 19, 2024, 1:50 p.m. OK Java 21 TESTS 3 264 0
252365470 flickflock A March 19, 2024, 9:13 p.m. OK Java 21 TESTS 6 265 0
252332105 Mahinr10 A March 19, 2024, 4:24 p.m. OK Java 21 TESTS 3 265 0
252325529 RiceTofu A March 19, 2024, 3:45 p.m. OK Java 21 TESTS 3 265 0
252390673 believe18 A March 20, 2024, 4:31 a.m. OK Java 21 TESTS 6 280 0
252313995 sid234890 A March 19, 2024, 2:39 p.m. OK Java 21 TESTS 3 280 0
252307383 mohit1510 A March 19, 2024, 2 p.m. OK Java 21 TESTS 3 280 0
252342624 yellowflash A March 19, 2024, 5:37 p.m. OK Java 8 TESTS 3 109 0
252391212 51Hz A March 20, 2024, 4:40 a.m. OK Java 8 TESTS 6 124 0
252351612 Sumitsingh7 A March 19, 2024, 6:47 p.m. OK Java 8 TESTS 3 156 5836800
252320897 shashankp10 A March 19, 2024, 3:19 p.m. OK Java 8 TESTS 3 170 0
252361536 Shenta A March 19, 2024, 8:26 p.m. OK Java 8 TESTS 6 171 0
252315429 Siddharth_78 A March 19, 2024, 2:48 p.m. OK Java 8 TESTS 3 186 0
252391718 2100031718Hashreta A March 20, 2024, 4:47 a.m. OK Java 8 TESTS 6 202 0
252392351 Kahananghan A March 20, 2024, 4:54 a.m. OK Java 8 TESTS 6 217 0
252353446 godofdestruction A March 19, 2024, 7:04 p.m. OK Java 8 TESTS 3 217 0
252388576 joycelalalayaa A March 20, 2024, 3:59 a.m. OK Java 8 TESTS 6 218 0
252388716 WhiteHunter A March 20, 2024, 4:01 a.m. OK Kotlin 1.7 TESTS 6 592 52326400
252327592 tejkus A March 19, 2024, 3:57 p.m. OK Node.js TESTS 3 186 8294400
252332608 iparm A March 19, 2024, 4:27 p.m. OK Node.js TESTS 3 218 6553600
252312140 Alexanderter10 A March 19, 2024, 2:28 p.m. OK PascalABC.NET TESTS 3 202 0
252328708 neha1009 A March 19, 2024, 4:04 p.m. OK PyPy 3 TESTS 3 280 7372800
252328992 venkata_narendra A March 19, 2024, 4:05 p.m. OK PyPy 3 TESTS 3 327 8089600
252339656 gardengnome A March 19, 2024, 5:16 p.m. OK PyPy 3-64 TESTS 3 46 3481600
252344787 strashila A March 19, 2024, 5:53 p.m. OK PyPy 3-64 TESTS 3 77 6963200
252331963 mars4 A March 19, 2024, 4:23 p.m. OK PyPy 3-64 TESTS 3 93 5324800
252383076 Drunkula A March 20, 2024, 2:29 a.m. OK PyPy 3-64 TESTS 6 93 5632000
252340530 MassimoG A March 19, 2024, 5:22 p.m. OK PyPy 3-64 TESTS 3 93 5734400
252393987 aneesh2002 A March 20, 2024, 5:14 a.m. OK PyPy 3-64 TESTS 6 93 6860800
252321612 InHng A March 19, 2024, 3:23 p.m. OK PyPy 3-64 TESTS 3 93 7884800
252363164 daszybak A March 19, 2024, 8:45 p.m. OK PyPy 3-64 TESTS 6 93 9318400
252375475 alexwice A March 20, 2024, 12:02 a.m. OK PyPy 3-64 TESTS 6 108 7270400
252363492 DRDIV A March 19, 2024, 8:49 p.m. OK PyPy 3-64 TESTS 6 108 7987200
252357862 eugalt A March 19, 2024, 7:47 p.m. OK Python 3 TESTS 6 31 1024000
252347932 naodmulu A March 19, 2024, 6:17 p.m. OK Python 3 TESTS 3 46 204800
252357637 eugalt A March 19, 2024, 7:45 p.m. OK Python 3 TESTS 6 46 819200
252333720 22H51A6762-Manikanta A March 19, 2024, 4:35 p.m. OK Python 3 TESTS 3 46 819200
252301792 100987654321 A March 19, 2024, 1:29 p.m. OK Python 3 TESTS 3 46 819200
252387260 Annett A March 20, 2024, 3:38 a.m. OK Python 3 TESTS 6 61 1740800
252358376 anuj_m A March 19, 2024, 7:53 p.m. OK Python 3 TESTS 6 62 3174400
252321581 KevenDuan A March 19, 2024, 3:23 p.m. OK Python 3 TESTS 3 77 102400
252379239 funseeker A March 20, 2024, 1:20 a.m. OK Python 3 TESTS 6 78 614400
252388625 manim A March 20, 2024, 3:59 a.m. OK Python 3 TESTS 6 92 102400
252353552 0x81 A March 19, 2024, 7:05 p.m. OK Ruby 3 TESTS 3 436 819200
252308170 AJinGoo A March 19, 2024, 2:05 p.m. OK Rust 2021 TESTS 3 0 512000
252307331 rob.xu.meng A March 19, 2024, 2 p.m. OK Rust 2021 TESTS 3 61 0
252377193 AZERTY_00 A March 20, 2024, 12:39 a.m. OK Rust 2021 TESTS 6 124 0

remove filters

Back to search problems