Codeforces Round 748 (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
1593 Codeforces Round 748 (Div. 3) FINISHED False 8100 97687499 Oct. 13, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 37018 ) A Elections PROGRAMMING

B'The elections in which three candidates participated have recently ended. The first candidate received a votes, the second one received b votes, the third one received c votes. For each candidate, solve the following problem: how many votes should be added to this candidate so that he wins the election (i.e. the number of votes for this candidate was strictly greater than the number of votes for any other candidate)? Please note that for each candidate it is necessary to solve this problem independently, i.e. the added votes for any candidate do not affect the calculations when getting the answer for the other two candidates. The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then t test cases follow. Each test case consists of one line containing three integers a , b , and c ( 0 <= a,b,c <= 10^9 ). For each test case, output in a separate line three integers A , B , and C ( A, B, C ge 0 ) separated by spaces -- the answers to the problem for the first, second, and third candidate, respectively. '...

Tutorials

Editorial for Codeforces Round #748 (Div.3)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
131905890 Mx. A Oct. 14, 2021, 7:34 a.m. OK Clang++17 Diagnostics TESTS 3 171 0
131910014 H_a_c_kcode_gaurav A Oct. 14, 2021, 8:14 a.m. OK GNU C11 TESTS 3 31 0
131930228 urvish_pujara A Oct. 14, 2021, 11:44 a.m. OK GNU C11 TESTS 3 31 0
131966155 TiNTen A Oct. 14, 2021, 5:41 p.m. OK GNU C11 TESTS 3 31 0
131921331 dianzikejidaxue A Oct. 14, 2021, 10:20 a.m. OK GNU C11 TESTS 3 31 409600
131966647 Zarif_Mustafa A Oct. 14, 2021, 5:47 p.m. OK GNU C11 TESTS 3 46 0
131920480 danielwijaya2004 A Oct. 14, 2021, 10:11 a.m. OK GNU C11 TESTS 3 46 0
131920942 Shifat... A Oct. 14, 2021, 10:16 a.m. OK GNU C11 TESTS 3 46 0
131940607 JKLOP A Oct. 14, 2021, 1:14 p.m. OK GNU C11 TESTS 3 46 0
131941389 Iftekhar_Ackerman A Oct. 14, 2021, 1:21 p.m. OK GNU C11 TESTS 3 46 0
131949777 Jianwei_Zheng A Oct. 14, 2021, 2:37 p.m. OK GNU C11 TESTS 3 46 204800
131942567 abdelrahman_rezk_14 A Oct. 14, 2021, 1:31 p.m. OK GNU C++14 TESTS 3 0 0
131993303 _AbRn_ A Oct. 15, 2021, 4:55 a.m. OK GNU C++14 TESTS 3 0 0
131991875 Maverick_Spirit A Oct. 15, 2021, 4:24 a.m. OK GNU C++14 TESTS 3 0 0
131987304 lid416 A Oct. 15, 2021, 2:32 a.m. OK GNU C++14 TESTS 3 0 0
131986746 shanem_1401 A Oct. 15, 2021, 2:18 a.m. OK GNU C++14 TESTS 3 0 0
131969574 _peter077_ A Oct. 14, 2021, 6:26 p.m. OK GNU C++14 TESTS 3 0 0
131949328 freakin23 A Oct. 14, 2021, 2:33 p.m. OK GNU C++14 TESTS 3 0 0
131946165 nhanlun A Oct. 14, 2021, 2:04 p.m. OK GNU C++14 TESTS 3 0 0
131946035 wdy_yyds A Oct. 14, 2021, 2:03 p.m. OK GNU C++14 TESTS 3 0 0
131945320 Tom66 A Oct. 14, 2021, 1:56 p.m. OK GNU C++14 TESTS 3 0 0
131951432 riddle279 A Oct. 14, 2021, 2:55 p.m. OK GNU C++17 TESTS 3 0 0
131949812 thomasliu A Oct. 14, 2021, 2:37 p.m. OK GNU C++17 TESTS 3 0 0
131957540 abhishek_1234 A Oct. 14, 2021, 4 p.m. OK GNU C++17 TESTS 3 0 0
131965798 NO__IQ A Oct. 14, 2021, 5:36 p.m. OK GNU C++17 TESTS 3 0 0
131969449 iraklisula A Oct. 14, 2021, 6:24 p.m. OK GNU C++17 TESTS 3 0 0
131969560 nahid.karim.emon180103 A Oct. 14, 2021, 6:26 p.m. OK GNU C++17 TESTS 3 0 0
131983783 Garbage_maker A Oct. 15, 2021, 12:34 a.m. OK GNU C++17 TESTS 3 0 0
131994272 Shakur A Oct. 15, 2021, 5:17 a.m. OK GNU C++17 TESTS 3 0 0
131995471 ashutosh_saini A Oct. 15, 2021, 5:40 a.m. OK GNU C++17 TESTS 3 0 0
131995814 tanvirahmed74 A Oct. 15, 2021, 5:46 a.m. OK GNU C++17 TESTS 3 0 0
131907227 Pety A Oct. 14, 2021, 7:46 a.m. OK GNU C++17 (64) TESTS 3 0 0
131905904 rishit3234 A Oct. 14, 2021, 7:34 a.m. OK GNU C++17 (64) TESTS 3 0 0
131968994 nathan_luiz A Oct. 14, 2021, 6:18 p.m. OK GNU C++17 (64) TESTS 3 0 0
131954459 nil_khadke A Oct. 14, 2021, 3:29 p.m. OK GNU C++17 (64) TESTS 3 0 0
131935390 mohamedrefat123 A Oct. 14, 2021, 12:30 p.m. OK GNU C++17 (64) TESTS 3 0 0
131926674 Fantasy_T A Oct. 14, 2021, 11:11 a.m. OK GNU C++17 (64) TESTS 3 0 0
131926204 UN_predictable A Oct. 14, 2021, 11:07 a.m. OK GNU C++17 (64) TESTS 3 0 0
131924148 arnav2004 A Oct. 14, 2021, 10:48 a.m. OK GNU C++17 (64) TESTS 3 0 0
131919702 TAoz1 A Oct. 14, 2021, 10:02 a.m. OK GNU C++17 (64) TESTS 3 0 0
131975784 WrongAnswerOnTestOne A Oct. 14, 2021, 8:10 p.m. OK GNU C++17 (64) TESTS 3 0 0
131927676 wooljs A Oct. 14, 2021, 11:20 a.m. OK Go TESTS 3 77 0
131912638 Jepbar_Asgarov A Oct. 14, 2021, 8:48 a.m. OK Go TESTS 3 108 0
131917308 kirndy A Oct. 14, 2021, 9:37 a.m. OK Haskell TESTS 3 124 0
131989065 Toinfinity A Oct. 15, 2021, 3:17 a.m. OK Java 11 TESTS 3 155 0
131911466 BestEveryman A Oct. 14, 2021, 8:32 a.m. OK Java 11 TESTS 3 171 0
131904537 Luminous_ A Oct. 14, 2021, 7:21 a.m. OK Java 11 TESTS 3 171 0
131993118 Hresvelg nikilrselvam mphillotry A Oct. 15, 2021, 4:52 a.m. OK Java 11 TESTS 3 171 0
131908807 bkifhr6 A Oct. 14, 2021, 8:02 a.m. OK Java 11 TESTS 3 186 0
131963801 nitin23329 A Oct. 14, 2021, 5:14 p.m. OK Java 11 TESTS 3 186 0
131970873 mr_white07 A Oct. 14, 2021, 6:44 p.m. OK Java 11 TESTS 3 187 0
131996285 syncAsync A Oct. 15, 2021, 5:53 a.m. OK Java 11 TESTS 3 202 0
131923558 ak6494285 A Oct. 14, 2021, 10:43 a.m. OK Java 11 TESTS 3 202 19251200
131989717 Vijender8831 A Oct. 15, 2021, 3:32 a.m. OK Java 11 TESTS 3 217 0
131936982 201502010200 A Oct. 14, 2021, 12:44 p.m. OK Java 8 TESTS 3 77 0
131941004 less_ordinary A Oct. 14, 2021, 1:18 p.m. OK Java 8 TESTS 3 93 0
131917640 PRIYANSH_TOMAR A Oct. 14, 2021, 9:41 a.m. OK Java 8 TESTS 3 93 0
131911143 Srikanth1777 A Oct. 14, 2021, 8:29 a.m. OK Java 8 TESTS 3 108 0
131948861 rerererere A Oct. 14, 2021, 2:28 p.m. OK Java 8 TESTS 3 124 0
131911951 akki_rathore A Oct. 14, 2021, 8:39 a.m. OK Java 8 TESTS 3 140 0
131926751 giulietta A Oct. 14, 2021, 11:12 a.m. OK Java 8 TESTS 3 140 0
131914657 lesjones254 A Oct. 14, 2021, 9:10 a.m. OK Java 8 TESTS 3 155 0
131993594 jaykania A Oct. 15, 2021, 5:02 a.m. OK Java 8 TESTS 3 155 0
131996291 RISHI_RAJ_SINGH A Oct. 15, 2021, 5:53 a.m. OK Java 8 TESTS 3 171 0
131918501 Radwan_ A Oct. 14, 2021, 9:50 a.m. OK Mono C# TESTS 3 170 6860800
131927081 bkifhr6 A Oct. 14, 2021, 11:15 a.m. OK MS C++ 2017 TESTS 3 15 0
131974648 Harsh_HRS A Oct. 14, 2021, 7:48 p.m. OK MS C++ 2017 TESTS 3 15 0
131933714 YoghurtPL A Oct. 14, 2021, 12:16 p.m. OK MS C++ 2017 TESTS 3 15 0
131936659 suing_ A Oct. 14, 2021, 12:41 p.m. OK MS C++ 2017 TESTS 3 30 0
131974894 nilyanshu A Oct. 14, 2021, 7:52 p.m. OK MS C++ 2017 TESTS 3 31 0
131945634 Forever_M A Oct. 14, 2021, 1:59 p.m. OK MS C++ 2017 TESTS 3 31 0
131908797 Ljx_code A Oct. 14, 2021, 8:02 a.m. OK MS C++ 2017 TESTS 3 31 0
131955124 zzcrystal A Oct. 14, 2021, 3:36 p.m. OK MS C++ 2017 TESTS 3 46 0
131973703 Harsh_HRS A Oct. 14, 2021, 7:32 p.m. OK MS C++ 2017 TESTS 3 61 0
131948152 arthur_p A Oct. 14, 2021, 2:21 p.m. OK MS C++ 2017 TESTS 3 61 0
131916029 bloodykey A Oct. 14, 2021, 9:24 a.m. OK .NET Core C# TESTS 3 92 3072000
131976178 Guaho A Oct. 14, 2021, 8:18 p.m. OK .NET Core C# TESTS 3 108 6451200
131918652 1_2_3_4_5_9 A Oct. 14, 2021, 9:52 a.m. OK PyPy 2 TESTS 3 140 5222400
131946135 h8191 A Oct. 14, 2021, 2:03 p.m. OK PyPy 3 TESTS 3 155 9011200
131941507 PhilTheFish A Oct. 14, 2021, 1:22 p.m. OK PyPy 3 TESTS 3 171 6758400
131919239 anee_mangal A Oct. 14, 2021, 9:58 a.m. OK PyPy 3 TESTS 3 187 9830400
131930741 AasimBaig A Oct. 14, 2021, 11:48 a.m. OK PyPy 3 TESTS 3 217 10137600
131914027 raidevashish A Oct. 14, 2021, 9:03 a.m. OK PyPy 3 TESTS 3 233 9113600
131916016 iimmortal A Oct. 14, 2021, 9:24 a.m. OK PyPy 3 TESTS 3 233 10035200
131934675 HelloWorld2002 A Oct. 14, 2021, 12:25 p.m. OK PyPy 3 TESTS 3 248 9830400
131929653 mrng A Oct. 14, 2021, 11:38 a.m. OK PyPy 3 TESTS 3 295 7782400
131969269 sarthaksingh09 A Oct. 14, 2021, 6:22 p.m. OK PyPy 3 TESTS 3 296 5017600
131968939 Kaleab_Asfaw A Oct. 14, 2021, 6:17 p.m. OK PyPy 3 TESTS 3 311 6553600
131977752 Victorasu11 A Oct. 14, 2021, 8:52 p.m. OK PyPy 3-64 TESTS 3 296 9830400
131993308 Alex-Leon A Oct. 15, 2021, 4:56 a.m. OK PyPy 3-64 TESTS 3 358 10342400
131942113 codemakerself A Oct. 14, 2021, 1:27 p.m. OK Python 3 TESTS 3 62 204800
131989956 edusanketdk A Oct. 15, 2021, 3:39 a.m. OK Python 3 TESTS 3 93 204800
131961550 sergeantsnape A Oct. 14, 2021, 4:46 p.m. OK Python 3 TESTS 3 93 204800
131989304 p1geon A Oct. 15, 2021, 3:22 a.m. OK Python 3 TESTS 3 108 204800
131932122 Mhalizadeh lou2013 alijavanmard A Oct. 14, 2021, 12:01 p.m. OK Python 3 TESTS 3 109 819200
131961604 ritwijkp A Oct. 14, 2021, 4:47 p.m. OK Python 3 TESTS 3 109 819200
131994885 endofloop2018 A Oct. 15, 2021, 5:29 a.m. OK Python 3 TESTS 3 124 0
131988949 vegeta46 A Oct. 15, 2021, 3:14 a.m. OK Python 3 TESTS 3 124 0
131955199 Antoxer A Oct. 14, 2021, 3:36 p.m. OK Python 3 TESTS 3 124 1126400
131989149 Chirag_CK A Oct. 15, 2021, 3:18 a.m. OK Python 3 TESTS 3 139 0
131954206 tuanle03 A Oct. 14, 2021, 3:26 p.m. OK Ruby 3 TESTS 3 249 102400
131912757 Swordelf A Oct. 14, 2021, 8:49 a.m. OK Rust TESTS 3 15 0
131924672 Spheniscine A Oct. 14, 2021, 10:53 a.m. OK Rust TESTS 3 15 102400

remove filters

Back to search problems