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 |
---|---|---|---|---|---|---|
1877 | Codeforces Round 902 (Div. 2, based on COMPFEST 15 - Final Round) | FINISHED | False | 9000 | 35067299 | Oct. 8, 2023, 9:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 24405 ) | A | Goals of Victory | PROGRAMMING | math |
B'There are n teams in a football tournament. Each pair of teams match up once. After every match, Pak Chanek receives two integers as the result of the match, the number of goals the two teams score during the match. The efficiency of a team is equal to the total number of goals the team scores in each of its matches minus the total number of goals scored by the opponent in each of its matches. After the tournament ends, Pak Dengklek counts the efficiency of every team. Turns out that he forgot about the efficiency of one of the teams. Given the efficiency of n-1 teams a_1,a_2,a_3, ldots,a_{n-1} . What is the efficiency of the missing team? It can be shown that the efficiency of the missing team can be uniquely determined. Each test contains multiple test cases. The first line contains an integer t ( 1 <= q t <= q 500 ) -- the number of test cases. The following lines contain the description of each test case. The first line contains a single integer n ( 2 <= q n <= q 100 ) -- the number of teams. The second line contains n-1 integers a_1,a_2,a_3, ldots,a_{n-1} ( -100 <= q a_i <= q100 ) -- the efficiency of n-1 teams. For each test case, output a line containing an integer representing the efficiency of the missing team. In the first test case, below is a possible tournament result: The efficiency of each team is: Therefore, the efficiency of the missing team (team 4 ) is -4 . It can be shown that any possible tournament of 4 teams that has the efficiency of 3 teams be 3 , -4 , and 5 will always have the efficiency of the 4 -th team be -4 . '... |
Codeforces Round #902 (Div. 1, Div. 2, based on COMPFEST 15 — Final Round) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
227255596 | bluemegane | A | Oct. 8, 2023, 9:47 p.m. | OK | C# 8 | TESTS | 6 | 124 | 3072000 | ||
227253397 | believer_71 | A | Oct. 8, 2023, 9:04 p.m. | OK | Clang++17 Diagnostics | TESTS | 6 | 187 | 8396800 | ||
227221867 | tuanhung2008 | A | Oct. 8, 2023, 3:58 p.m. | OK | FPC | TESTS | 6 | 15 | 7987200 | ||
227243492 | NenadDapic | A | Oct. 8, 2023, 7:01 p.m. | OK | FPC | TESTS | 6 | 30 | 0 | ||
227272656 | Nandan108 | A | Oct. 9, 2023, 4:41 a.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
227185420 | blaziken2805 | A | Oct. 8, 2023, 11:31 a.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
227236058 | thowfiqul_58 | A | Oct. 8, 2023, 5:54 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
227220341 | Nishant_2728 | A | Oct. 8, 2023, 3:46 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
227217326 | mrshanshuvo | A | Oct. 8, 2023, 3:24 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
227197275 | Hadis_006_SUST | A | Oct. 8, 2023, 1:06 p.m. | OK | GNU C11 | TESTS | 6 | 15 | 0 | ||
227276406 | rykin | A | Oct. 9, 2023, 5:37 a.m. | OK | GNU C11 | TESTS | 6 | 31 | 0 | ||
227264203 | siam-35862 | A | Oct. 9, 2023, 1:53 a.m. | OK | GNU C11 | TESTS | 6 | 31 | 0 | ||
227255460 | Usser0 | A | Oct. 8, 2023, 9:44 p.m. | OK | GNU C11 | TESTS | 6 | 31 | 0 | ||
227222916 | avijeet_231020416 | A | Oct. 8, 2023, 4:06 p.m. | OK | GNU C11 | TESTS | 6 | 31 | 0 | ||
227267688 | zzzjw | A | Oct. 9, 2023, 3:11 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227266526 | ryanright | A | Oct. 9, 2023, 2:46 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227264854 | jiayu0828 | A | Oct. 9, 2023, 2:09 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227264482 | microperson | A | Oct. 9, 2023, 2 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227263574 | abcDDdddd | A | Oct. 9, 2023, 1:38 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227276056 | jiang_feng | A | Oct. 9, 2023, 5:32 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227272823 | gn1 | A | Oct. 9, 2023, 4:43 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227272132 | dorayxy | A | Oct. 9, 2023, 4:33 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227271787 | nomonick | A | Oct. 9, 2023, 4:29 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227269049 | aCssen | A | Oct. 9, 2023, 3:38 a.m. | OK | GNU C++14 | TESTS | 6 | 15 | 0 | ||
227272563 | Ziad50 | A | Oct. 9, 2023, 4:39 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227276377 | shubham_kpl_27 | A | Oct. 9, 2023, 5:37 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227276387 | Amirreza-Fakhri | A | Oct. 9, 2023, 5:37 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227276424 | JJFzz | A | Oct. 9, 2023, 5:37 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227278211 | terminator_123 | A | Oct. 9, 2023, 6 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227277878 | chjcoder | A | Oct. 9, 2023, 5:56 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227276157 | a_l_i_r_e_z_a | A | Oct. 9, 2023, 5:33 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227273800 | yashk_1511 | A | Oct. 9, 2023, 4:58 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227273776 | dipanshu_17 | A | Oct. 9, 2023, 4:57 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227273310 | abhinav4279 | A | Oct. 9, 2023, 4:50 a.m. | OK | GNU C++17 | TESTS | 6 | 15 | 0 | ||
227276304 | moursalinme | A | Oct. 9, 2023, 5:35 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227275254 | shanglaikk | A | Oct. 9, 2023, 5:21 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227271742 | FantasyNumber | A | Oct. 9, 2023, 4:28 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227271451 | _Shumisha_ | A | Oct. 9, 2023, 4:23 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227270532 | 4Ace | A | Oct. 9, 2023, 4:06 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227269569 | uxinglaohu | A | Oct. 9, 2023, 3:48 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227267834 | Teranj | A | Oct. 9, 2023, 3:13 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227265733 | FeathBow | A | Oct. 9, 2023, 2:29 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227265713 | FloatingOcean | A | Oct. 9, 2023, 2:29 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227265419 | zhi_fan | A | Oct. 9, 2023, 2:22 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 15 | 0 | ||
227199619 | Sarthak3204 | A | Oct. 8, 2023, 1:22 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227270542 | Ahmad_Mostafa | A | Oct. 9, 2023, 4:07 a.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227258038 | AhmadObaidat | A | Oct. 8, 2023, 10:56 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227254919 | BuddhaBarFans | A | Oct. 8, 2023, 9:34 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227228440 | second_fan | A | Oct. 8, 2023, 4:51 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227227665 | brainsoft | A | Oct. 8, 2023, 4:45 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227216601 | tranxuantruong | A | Oct. 8, 2023, 3:19 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227215365 | logic_overfl0w | A | Oct. 8, 2023, 3:10 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227208175 | abu_sayeed_2.0 | A | Oct. 8, 2023, 2:20 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227198484 | Omar_Hamdon | A | Oct. 8, 2023, 1:14 p.m. | OK | GNU C++20 (64) | TESTS | 6 | 0 | 0 | ||
227195209 | themadknight45 | A | Oct. 8, 2023, 12:53 p.m. | OK | Java 11 | TESTS | 6 | 156 | 0 | ||
227275731 | Panther369 | A | Oct. 9, 2023, 5:27 a.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | ||
227224371 | shibaiotk | A | Oct. 8, 2023, 4:18 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | ||
227214920 | dvkcool | A | Oct. 8, 2023, 3:07 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | ||
227176208 | Mahakal_17 | A | Oct. 8, 2023, 11:05 a.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | ||
227237774 | ujjwal_a0001 | A | Oct. 8, 2023, 6:09 p.m. | OK | Java 11 | TESTS | 6 | 218 | 0 | ||
227271154 | DeathL0rd | A | Oct. 9, 2023, 4:18 a.m. | OK | Java 11 | TESTS | 6 | 233 | 0 | ||
227207415 | satabdigoswami87 | A | Oct. 8, 2023, 2:15 p.m. | OK | Java 11 | TESTS | 6 | 233 | 0 | ||
227202212 | satabdigoswami87 | A | Oct. 8, 2023, 1:38 p.m. | OK | Java 11 | TESTS | 6 | 233 | 0 | ||
227199508 | jz4253 | A | Oct. 8, 2023, 1:21 p.m. | OK | Java 11 | TESTS | 6 | 233 | 0 | ||
227243515 | anacharsis | A | Oct. 8, 2023, 7:01 p.m. | OK | Java 17 | TESTS | 6 | 155 | 0 | ||
227231526 | anand_mishra_ | A | Oct. 8, 2023, 5:16 p.m. | OK | Java 17 | TESTS | 6 | 171 | 512000 | ||
227234466 | yogesg_25 | A | Oct. 8, 2023, 5:41 p.m. | OK | Java 17 | TESTS | 6 | 186 | 102400 | ||
227277712 | mithulbharathi.s2021cseb | A | Oct. 9, 2023, 5:54 a.m. | OK | Java 17 | TESTS | 6 | 186 | 409600 | ||
227212803 | ac686 | A | Oct. 8, 2023, 2:53 p.m. | OK | Java 17 | TESTS | 6 | 186 | 512000 | ||
227225204 | dilshar23 | A | Oct. 8, 2023, 4:25 p.m. | OK | Java 17 | TESTS | 6 | 202 | 307200 | ||
227195310 | CrinklyGolem | A | Oct. 8, 2023, 12:54 p.m. | OK | Java 17 | TESTS | 6 | 218 | 204800 | ||
227223305 | Alam04 | A | Oct. 8, 2023, 4:10 p.m. | OK | Java 17 | TESTS | 6 | 249 | 307200 | ||
227258311 | sarcaxmic69 | A | Oct. 8, 2023, 11:05 p.m. | OK | Java 17 | TESTS | 6 | 249 | 614400 | ||
227217770 | codeanand17 | A | Oct. 8, 2023, 3:27 p.m. | OK | Java 17 | TESTS | 6 | 249 | 716800 | ||
227261779 | Ligh0x74 | A | Oct. 9, 2023, 12:55 a.m. | OK | Java 21 | TESTS | 6 | 202 | 0 | ||
227258507 | AyazMost | A | Oct. 8, 2023, 11:11 p.m. | OK | Java 21 | TESTS | 6 | 202 | 0 | ||
227235869 | v3n1v1c11v1c1 | A | Oct. 8, 2023, 5:52 p.m. | OK | Java 21 | TESTS | 6 | 202 | 0 | ||
227204541 | DoTes | A | Oct. 8, 2023, 1:55 p.m. | OK | Java 21 | TESTS | 6 | 202 | 0 | ||
227194345 | Nagendravarma | A | Oct. 8, 2023, 12:49 p.m. | OK | Java 21 | TESTS | 6 | 202 | 0 | ||
227203576 | yashvardhansingh112233 | A | Oct. 8, 2023, 1:48 p.m. | OK | Java 21 | TESTS | 6 | 217 | 0 | ||
227178765 | Riwadain | A | Oct. 8, 2023, 11:13 a.m. | OK | Java 21 | TESTS | 6 | 217 | 0 | ||
227201329 | DoTes | A | Oct. 8, 2023, 1:32 p.m. | OK | Java 21 | TESTS | 6 | 311 | 0 | ||
227186469 | vansh_1011 | A | Oct. 8, 2023, 11:34 a.m. | OK | Java 21 | TESTS | 6 | 311 | 0 | ||
227263807 | TARIKUL_ISLAM. | A | Oct. 9, 2023, 1:44 a.m. | OK | Java 21 | TESTS | 6 | 327 | 0 | ||
227212017 | var_hash | A | Oct. 8, 2023, 2:47 p.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | ||
227202159 | Autunomy | A | Oct. 8, 2023, 1:38 p.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | ||
227252538 | Mohamed_Ahmed | A | Oct. 8, 2023, 8:52 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | ||
227199507 | Nanthakumar06 | A | Oct. 8, 2023, 1:21 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | ||
227192892 | Udayf | A | Oct. 8, 2023, 12:40 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | ||
227193204 | safarisoul | A | Oct. 8, 2023, 12:42 p.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | ||
227193687 | formidablechief_27 | A | Oct. 8, 2023, 12:45 p.m. | OK | Java 8 | TESTS | 6 | 139 | 0 | ||
227193709 | ravi_prakash29 | A | Oct. 8, 2023, 12:45 p.m. | OK | Java 8 | TESTS | 6 | 171 | 0 | ||
227178662 | UnderCharan | A | Oct. 8, 2023, 11:13 a.m. | OK | Java 8 | TESTS | 6 | 186 | 0 | ||
227276821 | krishank08eng | A | Oct. 9, 2023, 5:43 a.m. | OK | Java 8 | TESTS | 6 | 187 | 0 | ||
227266997 | Awaken8642 | A | Oct. 9, 2023, 2:57 a.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | ||
227235833 | Alexit | A | Oct. 8, 2023, 5:52 p.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | ||
227222904 | CMRIT25_21R01A05P8 | A | Oct. 8, 2023, 4:06 p.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | ||
227178028 | Pankaj8433 | A | Oct. 8, 2023, 11:11 a.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 0 | ||
227227726 | Joke_. | A | Oct. 8, 2023, 4:45 p.m. | OK | MS C++ 2017 | TESTS | 6 | 46 | 0 | ||
227220372 | nishan_odd | A | Oct. 8, 2023, 3:46 p.m. | OK | MS C++ 2017 | TESTS | 6 | 46 | 0 | ||
227211498 | goldenhour | A | Oct. 8, 2023, 2:44 p.m. | OK | MS C++ 2017 | TESTS | 6 | 46 | 0 | ||
227179377 | Rafiul2001 | A | Oct. 8, 2023, 11:15 a.m. | OK | MS C++ 2017 | TESTS | 6 | 46 | 0 | ||
227229625 | dhruvagrawal2205 | A | Oct. 8, 2023, 5:01 p.m. | OK | MS C++ 2017 | TESTS | 6 | 46 | 204800 | ||
227180996 | Imessuellie | A | Oct. 8, 2023, 11:19 a.m. | OK | MS C++ 2017 | TESTS | 6 | 46 | 204800 | ||
227202664 | yoralbayev | A | Oct. 8, 2023, 1:41 p.m. | OK | PHP | TESTS | 6 | 31 | 0 | ||
227225498 | DRDIV | A | Oct. 8, 2023, 4:27 p.m. | OK | PyPy 3 | TESTS | 6 | 93 | 2150400 | ||
227223648 | 0xROoT | A | Oct. 8, 2023, 4:12 p.m. | OK | PyPy 3 | TESTS | 6 | 108 | 2662400 | ||
227269469 | jvatsal0709 | A | Oct. 9, 2023, 3:46 a.m. | OK | PyPy 3 | TESTS | 6 | 109 | 2355200 | ||
227223523 | momenelmesady4803 | A | Oct. 8, 2023, 4:11 p.m. | OK | PyPy 3 | TESTS | 6 | 140 | 2867200 | ||
227260376 | qdljerry | A | Oct. 9, 2023, 12:14 a.m. | OK | PyPy 3 | TESTS | 6 | 140 | 3072000 | ||
227271684 | abhipandey9315 | A | Oct. 9, 2023, 4:27 a.m. | OK | PyPy 3 | TESTS | 6 | 155 | 3072000 | ||
227199480 | Yeaish_Turj | A | Oct. 8, 2023, 1:21 p.m. | OK | PyPy 3 | TESTS | 6 | 155 | 3174400 | ||
227193585 | Anupam_1925 | A | Oct. 8, 2023, 12:44 p.m. | OK | PyPy 3 | TESTS | 6 | 171 | 5324800 | ||
227255957 | grente | A | Oct. 8, 2023, 9:55 p.m. | OK | PyPy 3-64 | TESTS | 6 | 46 | 1843200 | ||
227194733 | l0stempl3 | A | Oct. 8, 2023, 12:51 p.m. | OK | PyPy 3-64 | TESTS | 6 | 46 | 1945600 | ||
227239619 | rmr | A | Oct. 8, 2023, 6:24 p.m. | OK | PyPy 3-64 | TESTS | 6 | 62 | 1843200 | ||
227216198 | marathedhiraj486 | A | Oct. 8, 2023, 3:16 p.m. | OK | PyPy 3-64 | TESTS | 6 | 62 | 1945600 | ||
227206027 | MdAbedin | A | Oct. 8, 2023, 2:06 p.m. | OK | PyPy 3-64 | TESTS | 6 | 77 | 1843200 | ||
227195467 | gardengnome | A | Oct. 8, 2023, 12:55 p.m. | OK | PyPy 3-64 | TESTS | 6 | 77 | 1945600 | ||
227214101 | 6paths | A | Oct. 8, 2023, 3:02 p.m. | OK | PyPy 3-64 | TESTS | 6 | 77 | 2150400 | ||
227209811 | drgrd | A | Oct. 8, 2023, 2:33 p.m. | OK | PyPy 3-64 | TESTS | 6 | 77 | 2457600 | ||
227259631 | RobinFromTheHood | A | Oct. 8, 2023, 11:50 p.m. | OK | PyPy 3-64 | TESTS | 6 | 77 | 2662400 | ||
227238984 | relixer | A | Oct. 8, 2023, 6:19 p.m. | OK | PyPy 3-64 | TESTS | 6 | 92 | 2560000 | ||
227256348 | tantrik16 | A | Oct. 8, 2023, 10:05 p.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
227214081 | tripathinaveen18 | A | Oct. 8, 2023, 3:01 p.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
227223234 | Uruguay | A | Oct. 8, 2023, 4:09 p.m. | OK | Python 3 | TESTS | 6 | 31 | 102400 | ||
227216797 | Riyajulhasan | A | Oct. 8, 2023, 3:20 p.m. | OK | Python 3 | TESTS | 6 | 31 | 102400 | ||
227196452 | ___a_s_1_2___ | A | Oct. 8, 2023, 1:01 p.m. | OK | Python 3 | TESTS | 6 | 31 | 102400 | ||
227177018 | CMRIT25_21R01A67B6 | A | Oct. 8, 2023, 11:08 a.m. | OK | Python 3 | TESTS | 6 | 31 | 102400 | ||
227266189 | 2200031811 | A | Oct. 9, 2023, 2:39 a.m. | OK | Python 3 | TESTS | 6 | 31 | 409600 | ||
227277362 | BurnerAce | A | Oct. 9, 2023, 5:50 a.m. | OK | Python 3 | TESTS | 6 | 46 | 0 | ||
227265943 | shennc | A | Oct. 9, 2023, 2:34 a.m. | OK | Python 3 | TESTS | 6 | 46 | 0 | ||
227265009 | LGM | A | Oct. 9, 2023, 2:13 a.m. | OK | Python 3 | TESTS | 6 | 46 | 0 | ||
227208129 | varahamihira_ | A | Oct. 8, 2023, 2:20 p.m. | OK | Ruby 3 | TESTS | 6 | 358 | 512000 | ||
227201354 | sky | A | Oct. 8, 2023, 1:33 p.m. | OK | Rust 2021 | TESTS | 6 | 15 | 0 | ||
227199266 | SumiBisht | A | Oct. 8, 2023, 1:19 p.m. | OK | Rust 2021 | TESTS | 6 | 15 | 0 | ||
227205018 | SymphonySimper | A | Oct. 8, 2023, 1:58 p.m. | OK | Rust 2021 | TESTS | 6 | 31 | 0 |
Back to search problems