Codeforces Round 750 (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
1582 Codeforces Round 750 (Div. 2) FINISHED False 9000 96753299 Oct. 24, 2021, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18599 ) A Luntik and Concerts PROGRAMMING math

B'Luntik has decided to try singing. He has a one-minute songs, b two-minute songs and c three-minute songs. He wants to distribute all songs into two concerts such that every song should be included to exactly one concert. He wants to make the absolute difference of durations of the concerts as small as possible. The duration of the concert is the sum of durations of all songs in that concert. Please help Luntik and find the minimal possible difference in minutes between the concerts durations. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. Each test case consists of one line containing three integers a, b, c (1 <= a, b, c <= 10^9) -- the number of one-minute, two-minute and three-minute songs. For each test case print the minimal possible difference in minutes between the concerts durations. In the first test case, Luntik can include a one-minute song and a two-minute song into the first concert, and a three-minute song into the second concert. Then the difference will be equal to 0 . In the second test case, Luntik can include two one-minute songs and a two-minute song and a three-minute song into the first concert, and two three-minute songs into the second concert. The duration of the first concert will be 1 + 1 + 2 + 3 = 7 , the duration of the second concert will be 6 . The difference of them is |7-6| = 1 . '...

Tutorials

Codeforces Round #750 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
132937196 Mrgglock A Oct. 24, 2021, 2:33 p.m. OK GNU C11 TESTS 4 0 3686400
132945803 Shamim_Sorkar A Oct. 24, 2021, 4:12 p.m. OK GNU C11 TESTS 4 15 3686400
132947156 akki_2001 A Oct. 24, 2021, 4:31 p.m. OK GNU C11 TESTS 4 15 3686400
132967620 Iizshit A Oct. 24, 2021, 11:35 p.m. OK GNU C11 TESTS 4 15 3686400
132934202 NSSwallow A Oct. 24, 2021, 2:03 p.m. OK GNU C11 TESTS 4 15 3686400
132936521 aaac404 A Oct. 24, 2021, 2:26 p.m. OK GNU C11 TESTS 4 15 3686400
132972450 933yee A Oct. 25, 2021, 2:45 a.m. OK GNU C11 TESTS 4 15 3686400
132974103 Aditi_ag A Oct. 25, 2021, 3:25 a.m. OK GNU C11 TESTS 4 15 3686400
132976074 Bargav A Oct. 25, 2021, 4:10 a.m. OK GNU C11 TESTS 4 15 3686400
132970422 Youarenotgood A Oct. 25, 2021, 1:41 a.m. OK GNU C11 TESTS 4 15 3686400
132972442 Geeklog A Oct. 25, 2021, 2:45 a.m. OK GNU C++14 TESTS 4 0 1024000
132972030 vishal_17 A Oct. 25, 2021, 2:34 a.m. OK GNU C++14 TESTS 4 0 1024000
132981221 djh A Oct. 25, 2021, 5:44 a.m. OK GNU C++14 TESTS 4 0 1024000
132981068 aman_1_769 A Oct. 25, 2021, 5:42 a.m. OK GNU C++14 TESTS 4 0 1024000
132978697 austinCF_04 A Oct. 25, 2021, 5:01 a.m. OK GNU C++14 TESTS 4 0 1024000
132978070 yateng817 A Oct. 25, 2021, 4:49 a.m. OK GNU C++14 TESTS 4 0 1024000
132976929 invincible_warrior A Oct. 25, 2021, 4:27 a.m. OK GNU C++14 TESTS 4 0 1024000
132974183 just_a_Kid_from_Brooklyn A Oct. 25, 2021, 3:26 a.m. OK GNU C++14 TESTS 4 0 1024000
132972933 HeartFireY A Oct. 25, 2021, 2:57 a.m. OK GNU C++14 TESTS 4 0 1024000
132972179 panther_245 A Oct. 25, 2021, 2:38 a.m. OK GNU C++14 TESTS 4 0 1024000
132980105 omsgunjal2003 A Oct. 25, 2021, 5:25 a.m. OK GNU C++17 TESTS 4 0 1024000
132982021 VasuOberoi A Oct. 25, 2021, 5:58 a.m. OK GNU C++17 TESTS 4 0 1024000
132981200 sparser A Oct. 25, 2021, 5:44 a.m. OK GNU C++17 TESTS 4 0 1024000
132980691 mahbubhasanmht A Oct. 25, 2021, 5:35 a.m. OK GNU C++17 TESTS 4 0 1024000
132980104 acwing_meow A Oct. 25, 2021, 5:25 a.m. OK GNU C++17 TESTS 4 0 1024000
132980049 muskanthakur26a A Oct. 25, 2021, 5:24 a.m. OK GNU C++17 TESTS 4 0 1024000
132979634 masruf14255 A Oct. 25, 2021, 5:17 a.m. OK GNU C++17 TESTS 4 0 1024000
132979344 LightningUZ A Oct. 25, 2021, 5:12 a.m. OK GNU C++17 TESTS 4 0 1024000
132978664 surajmisal18 A Oct. 25, 2021, 5 a.m. OK GNU C++17 TESTS 4 0 1024000
132978648 varanshu A Oct. 25, 2021, 5 a.m. OK GNU C++17 TESTS 4 0 1024000
132972262 LeeJiaHua A Oct. 25, 2021, 2:40 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132973930 Puc_Puc A Oct. 25, 2021, 3:20 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132975256 SevenDawns A Oct. 25, 2021, 3:51 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132975509 Harshil_ A Oct. 25, 2021, 3:57 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132975825 Bit_Master_2205 A Oct. 25, 2021, 4:03 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132977264 misra_ji A Oct. 25, 2021, 4:34 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132978054 adityateltia22 A Oct. 25, 2021, 4:49 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132978356 it_aint_me A Oct. 25, 2021, 4:55 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132979520 old_school_Reborn A Oct. 25, 2021, 5:15 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132982194 priyalvadgama4102 A Oct. 25, 2021, 6:01 a.m. OK GNU C++17 (64) TESTS 4 0 1228800
132965425 Badont A Oct. 24, 2021, 9:58 p.m. OK GNU C++20 (64) TESTS 4 0 1228800
132980460 beiqian23 A Oct. 25, 2021, 5:31 a.m. OK GNU C++20 (64) TESTS 4 0 1228800
132979931 abhinav_20 A Oct. 25, 2021, 5:22 a.m. OK GNU C++20 (64) TESTS 4 0 1228800
132979213 vanya_games A Oct. 25, 2021, 5:10 a.m. OK GNU C++20 (64) TESTS 4 0 1228800
132978684 darkhope A Oct. 25, 2021, 5 a.m. OK GNU C++20 (64) TESTS 4 0 1228800
132977478 leonkacowicz A Oct. 25, 2021, 4:39 a.m. OK GNU C++20 (64) TESTS 4 0 1228800
132975702 alif_cse_ju A Oct. 25, 2021, 4:01 a.m. OK GNU C++20 (64) TESTS 4 0 1228800
132967916 zemin-jiang A Oct. 24, 2021, 11:50 p.m. OK GNU C++20 (64) TESTS 4 0 1228800
132965307 Arkady_E A Oct. 24, 2021, 9:54 p.m. OK GNU C++20 (64) TESTS 4 0 1228800
132980725 arnav2004 A Oct. 25, 2021, 5:36 a.m. OK GNU C++20 (64) TESTS 4 0 1228800
132953891 aaffo A Oct. 24, 2021, 6:11 p.m. OK Go TESTS 4 30 8192000
132938848 huangxuepeng A Oct. 24, 2021, 2:50 p.m. OK Go TESTS 4 93 8192000
132972005 bongster88 A Oct. 25, 2021, 2:34 a.m. OK Go TESTS 4 108 8192000
132944081 dinosparton_013 A Oct. 24, 2021, 3:51 p.m. OK Java 11 TESTS 4 170 24576000
132974234 RegalBeast A Oct. 25, 2021, 3:27 a.m. OK Java 11 TESTS 4 170 24678400
132979608 TenseGor1lla A Oct. 25, 2021, 5:16 a.m. OK Java 11 TESTS 4 171 24576000
132950925 aayushdhakad A Oct. 24, 2021, 5:25 p.m. OK Java 11 TESTS 4 171 24576000
132953084 NoName00 A Oct. 24, 2021, 5:59 p.m. OK Java 11 TESTS 4 171 24576000
132933113 reverenc A Oct. 24, 2021, 1:53 p.m. OK Java 11 TESTS 4 171 24678400
132932669 future_me A Oct. 24, 2021, 1:49 p.m. OK Java 11 TESTS 4 171 24678400
132973637 insane_banda A Oct. 25, 2021, 3:14 a.m. OK Java 11 TESTS 4 186 24473600
132960522 Satyaa A Oct. 24, 2021, 7:59 p.m. OK Java 11 TESTS 4 186 24576000
132979021 alan__walker A Oct. 25, 2021, 5:06 a.m. OK Java 11 TESTS 4 186 24678400
132954447 smahajan54842 A Oct. 24, 2021, 6:18 p.m. OK Java 8 TESTS 4 77 18841600
132932435 Khaled57 A Oct. 24, 2021, 1:47 p.m. OK Java 8 TESTS 4 92 18841600
132948579 NighTurs A Oct. 24, 2021, 4:50 p.m. OK Java 8 TESTS 4 93 18739200
132946090 rsingh3_be18 A Oct. 24, 2021, 4:16 p.m. OK Java 8 TESTS 4 93 18841600
132977786 Srikanth1777 A Oct. 25, 2021, 4:44 a.m. OK Java 8 TESTS 4 93 18841600
132928578 riusmalt A Oct. 24, 2021, 1:17 p.m. OK Java 8 TESTS 4 93 18841600
132938047 gssakash A Oct. 24, 2021, 2:42 p.m. OK Java 8 TESTS 4 108 18841600
132970873 flip-flop A Oct. 25, 2021, 1:58 a.m. OK Java 8 TESTS 4 108 18841600
132965266 shauryagarg A Oct. 24, 2021, 9:53 p.m. OK Java 8 TESTS 4 108 18841600
132939701 beroul A Oct. 24, 2021, 2:59 p.m. OK Java 8 TESTS 4 108 18841600
132968625 chrislucas A Oct. 25, 2021, 12:33 a.m. OK Kotlin 1.4 TESTS 4 155 20275200
132936606 ERIWUG A Oct. 24, 2021, 2:27 p.m. OK Kotlin 1.5 TESTS 4 202 25497600
132938507 qweqwe12 A Oct. 24, 2021, 2:47 p.m. OK Kotlin 1.5 TESTS 4 249 25600000
132936262 manarelbagoury A Oct. 24, 2021, 2:23 p.m. OK MS C++ 2017 TESTS 4 0 1126400
132947897 timtimmashine A Oct. 24, 2021, 4:41 p.m. OK MS C++ 2017 TESTS 4 0 1126400
132934680 ainiks A Oct. 24, 2021, 2:08 p.m. OK MS C++ 2017 TESTS 4 0 1126400
132929699 Tangerine A Oct. 24, 2021, 1:29 p.m. OK MS C++ 2017 TESTS 4 15 1126400
132979692 swz A Oct. 25, 2021, 5:18 a.m. OK MS C++ 2017 TESTS 4 15 1126400
132970896 bkifhr10 A Oct. 25, 2021, 1:59 a.m. OK MS C++ 2017 TESTS 4 15 1126400
132969835 xiayufengchen A Oct. 25, 2021, 1:19 a.m. OK MS C++ 2017 TESTS 4 15 1126400
132969823 sgly33 A Oct. 25, 2021, 1:18 a.m. OK MS C++ 2017 TESTS 4 15 1126400
132942709 capability_Wu A Oct. 24, 2021, 3:34 p.m. OK MS C++ 2017 TESTS 4 15 1126400
132975091 zwu2020014743 A Oct. 25, 2021, 3:48 a.m. OK MS C++ 2017 TESTS 4 30 1126400
132930150 bloodykey A Oct. 24, 2021, 1:31 p.m. OK .NET Core C# TESTS 4 77 9011200
132977578 bsheep014 A Oct. 25, 2021, 4:40 a.m. OK PyPy 3 TESTS 4 108 19251200
132928115 Captain_196 A Oct. 24, 2021, 1:14 p.m. OK PyPy 3 TESTS 4 109 19763200
132979770 coolstreaming A Oct. 25, 2021, 5:19 a.m. OK PyPy 3 TESTS 4 124 20172800
132935743 mini_thala A Oct. 24, 2021, 2:18 p.m. OK PyPy 3 TESTS 4 124 20275200
132980167 _cyber_punk_007 A Oct. 25, 2021, 5:26 a.m. OK PyPy 3 TESTS 4 124 20480000
132965673 O-Infinity A Oct. 24, 2021, 10:06 p.m. OK PyPy 3 TESTS 4 124 20480000
132953046 rm__rf A Oct. 24, 2021, 5:58 p.m. OK PyPy 3 TESTS 4 124 20480000
132942060 tuan20052006 A Oct. 24, 2021, 3:26 p.m. OK PyPy 3 TESTS 4 124 20480000
132939134 Xx__Sparrow__xX A Oct. 24, 2021, 2:53 p.m. OK PyPy 3 TESTS 4 124 20480000
132933717 cyclades A Oct. 24, 2021, 1:59 p.m. OK PyPy 3 TESTS 4 124 20480000
132931114 FrozenKandy A Oct. 24, 2021, 1:38 p.m. OK PyPy 3-64 TESTS 4 62 30617600
132975609 pedastrian57 A Oct. 25, 2021, 3:59 a.m. OK PyPy 3-64 TESTS 4 62 160972800
132944405 mayank35 A Oct. 24, 2021, 3:54 p.m. OK PyPy 3-64 TESTS 4 77 30720000
132958748 HETRAKESHFADIA A Oct. 24, 2021, 7:26 p.m. OK PyPy 3-64 TESTS 4 77 31539200
132937853 inksamurai A Oct. 24, 2021, 2:41 p.m. OK PyPy 3-64 TESTS 4 93 32768000
132940442 Land_oF_cOdErS A Oct. 24, 2021, 3:07 p.m. OK PyPy 3-64 TESTS 4 93 240844800
132938062 Kregor A Oct. 24, 2021, 2:42 p.m. OK PyPy 3-64 TESTS 4 108 32870400
132930096 hir35 A Oct. 24, 2021, 1:31 p.m. OK PyPy 3-64 TESTS 4 108 32870400
132939366 Melmetal A Oct. 24, 2021, 2:56 p.m. OK PyPy 3-64 TESTS 4 109 31744000
132955977 mrobiul A Oct. 24, 2021, 6:42 p.m. OK PyPy 3-64 TESTS 4 109 32768000
132961750 Ptb A Oct. 24, 2021, 8:22 p.m. OK Python 3 TESTS 4 30 4608000
132978902 Raufur_7770 A Oct. 25, 2021, 5:05 a.m. OK Python 3 TESTS 4 31 4198400
132958272 EvitFan A Oct. 24, 2021, 7:17 p.m. OK Python 3 TESTS 4 31 4505600
132979633 gokufan1769 A Oct. 25, 2021, 5:17 a.m. OK Python 3 TESTS 4 46 4198400
132955903 shashankbarole410 A Oct. 24, 2021, 6:41 p.m. OK Python 3 TESTS 4 46 4198400
132941196 Artik_2005 A Oct. 24, 2021, 3:15 p.m. OK Python 3 TESTS 4 46 4198400
132934247 mishrajeegaurav A Oct. 24, 2021, 2:04 p.m. OK Python 3 TESTS 4 46 4198400
132928085 D_Dima A Oct. 24, 2021, 1:14 p.m. OK Python 3 TESTS 4 46 4198400
132927411 Anshtyagi000 A Oct. 24, 2021, 1:10 p.m. OK Python 3 TESTS 4 46 4198400
132976239 lonewolf141 A Oct. 25, 2021, 4:14 a.m. OK Python 3 TESTS 4 46 4300800
132927767 SorKierkegaard A Oct. 24, 2021, 1:12 p.m. OK Rust TESTS 4 0 1331200
132956891 Hyrulia A Oct. 24, 2021, 6:56 p.m. OK Rust TESTS 4 31 1228800

remove filters

Back to search problems