Codeforces Round 1056 (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
2155 Codeforces Round 1056 (Div. 2) FINISHED False 7200 16723523 Oct. 5, 2025, 4:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 25048 ) A El fucho PROGRAMMING implementation math

Juan and his friends are going to split themselves into (n) teams and play a modified double-elimination football tournament, consisting of a winners' group and a losers' group. Initially, all teams belong to the winners' group. In each round of the tournament, the following happens as long as one of the groups has at least two teams: All teams in the winners' group pair up. If there is an odd number of teams in the winners' group, there would be a team that didn't get paired up (and wouldn't play a match). That team stays in the winners' group. For teams in the winners' that got paired up, each pair plays a football match in which there are no ties . If a team wins, it stays in the winners' group. If a team loses, it drops down to the losers' group in the next round . If there is an odd number of teams in the winners' group, there would be a team that didn't get paired up (and wouldn't play a match). That team stays in the winners' group. For teams in the winners' that got paired up, each pair plays a football match in which there are no ties . If a team wins, it stays in the winners' group. If a team loses, it drops down to the losers' group in the next round . If a team wins, it stays in the winners' group. If a team loses, it drops down to the losers' group in the next round . All teams in the losers' group pair up. If there is an odd number of teams in the losers' group, there would be a team that didn't get paired up (and wouldn't play a match). That team stays in the losers' group. For teams in the losers' that got paired up, each pair plays a football match in which there are no ties . If a team wins, it stays in the losers' group. If a team loses, it gets eliminated from the tournament. If there is an odd number of teams in the losers' group, there would be a team that didn't get paired up (and wouldn't play a match). That team stays in the losers' group. For teams in the losers' that got paired up, each pair plays a football match in which th

Tutorials

Codeforces Round 1056 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
342158386 pavani_gubba05 A Oct. 6, 2025, 5:11 a.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342154856 RoarX2 A Oct. 6, 2025, 4:29 a.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342144918 kktz A Oct. 6, 2025, 2:14 a.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342143625 AdSaw05_ A Oct. 6, 2025, 1:56 a.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342133765 realrahin90 A Oct. 5, 2025, 10 p.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342133586 ha203811 A Oct. 5, 2025, 9:57 p.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342130148 c11224412 A Oct. 5, 2025, 9 p.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342124075 Pos_E1 A Oct. 5, 2025, 8:04 p.m. OK C++17 (GCC 7-32) TESTS 4 30 0
342149048 kinshuk7 A Oct. 6, 2025, 3:13 a.m. OK C++17 (GCC 7-32) TESTS 4 30 102400
342161105 Sanctimonious A Oct. 6, 2025, 5:40 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
342156666 Lenisel A Oct. 6, 2025, 4:53 a.m. OK C++20 (GCC 13-64) TESTS 4 30 0
342149550 alibabababababa A Oct. 6, 2025, 3:20 a.m. OK C++20 (GCC 13-64) TESTS 4 30 0
342137789 IlikeCbetter A Oct. 5, 2025, 11:52 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
342135118 matheusdqueiroz A Oct. 5, 2025, 10:30 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
342133243 yourNeel A Oct. 5, 2025, 9:50 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
342131805 ta_rahmaan A Oct. 5, 2025, 9:24 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
342124566 CYPHOS101 A Oct. 5, 2025, 8:08 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
342161489 EvolutionzXD A Oct. 6, 2025, 5:44 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
342157289 sonu.kumar.ece24 A Oct. 6, 2025, 5 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
342157233 eatyumi A Oct. 6, 2025, 4:59 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
342163055 DarkNinjaEZ A Oct. 6, 2025, 5:58 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342157657 node_overflow A Oct. 6, 2025, 5:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342155393 Ctrcctrv A Oct. 6, 2025, 4:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342147810 minhblabla A Oct. 6, 2025, 2:57 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342145771 Wafarm A Oct. 6, 2025, 2:28 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342143655 VSS102292_MBinTariq A Oct. 6, 2025, 1:57 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342142610 fansunrainbow A Oct. 6, 2025, 1:39 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342138051 ankeet A Oct. 6, 2025, 12:01 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342136139 harshitgrover A Oct. 5, 2025, 10:56 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342134899 sadmansafinneloy678 A Oct. 5, 2025, 10:25 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
342128477 REHITE A Oct. 5, 2025, 8:42 p.m. OK GNU C11 TESTS 4 15 0
342128953 REHITE A Oct. 5, 2025, 8:47 p.m. OK GNU C11 TESTS 4 30 102400
342128068 REHITE A Oct. 5, 2025, 8:38 p.m. OK GNU C11 TESTS 4 30 102400
342123676 REHITE A Oct. 5, 2025, 8:02 p.m. OK GNU C11 TESTS 4 31 0
342128592 REHITE A Oct. 5, 2025, 8:43 p.m. OK GNU C11 TESTS 4 31 102400
342128231 REHITE A Oct. 5, 2025, 8:39 p.m. OK GNU C11 TESTS 4 31 102400
342161913 officialofpraveen A Oct. 6, 2025, 5:48 a.m. OK GNU C11 TESTS 4 46 0
342158064 XTR2k A Oct. 6, 2025, 5:08 a.m. OK GNU C11 TESTS 4 46 0
342157264 Zeitlos-KG A Oct. 6, 2025, 5 a.m. OK GNU C11 TESTS 4 46 0
342124988 REHITE A Oct. 5, 2025, 8:11 p.m. OK GNU C11 TESTS 4 46 0
342148445 tahsin_ferdous A Oct. 6, 2025, 3:06 a.m. OK Go TESTS 4 46 0
342140931 densefeature A Oct. 6, 2025, 1:08 a.m. OK Go TESTS 4 77 0
342131632 samanddeanuscf A Oct. 5, 2025, 9:21 p.m. OK Haskell TESTS 4 77 0
342163691 fatal-98 A Oct. 6, 2025, 6:04 a.m. OK Java 21 TESTS 4 202 0
342160773 __Aviral__ A Oct. 6, 2025, 5:36 a.m. OK Java 21 TESTS 4 202 1024000
342126859 akshat.codes A Oct. 5, 2025, 8:26 p.m. OK Java 21 TESTS 4 203 614400
342158752 SomCode A Oct. 6, 2025, 5:15 a.m. OK Java 21 TESTS 4 217 102400
342147683 Tharun_Reddy_ A Oct. 6, 2025, 2:55 a.m. OK Java 21 TESTS 4 217 204800
342127690 Rishabh_02 A Oct. 5, 2025, 8:34 p.m. OK Java 21 TESTS 4 217 1228800
342125185 UdayRajVadeghar A Oct. 5, 2025, 8:12 p.m. OK Java 21 TESTS 4 218 819200
342145669 mr_dynamite A Oct. 6, 2025, 2:27 a.m. OK Java 21 TESTS 4 218 921600
342148555 apexstark0718 A Oct. 6, 2025, 3:07 a.m. OK Java 21 TESTS 4 233 409600
342133151 dharahas A Oct. 5, 2025, 9:48 p.m. OK Java 21 TESTS 4 233 614400
342161159 jroy.karnati A Oct. 6, 2025, 5:40 a.m. OK Java 8 TESTS 4 140 0
342161004 lupunish A Oct. 6, 2025, 5:39 a.m. OK Java 8 TESTS 4 140 0
342155592 sadgirpooja20 A Oct. 6, 2025, 4:40 a.m. OK Java 8 TESTS 4 140 0
342152078 subha_ray A Oct. 6, 2025, 3:53 a.m. OK Java 8 TESTS 4 140 0
342112296 sojoodsaed63 A Oct. 5, 2025, 6:26 p.m. OK Java 8 TESTS 4 140 0
342151312 likhita_grandhi A Oct. 6, 2025, 3:43 a.m. OK Java 8 TESTS 4 155 0
342144151 srikanthk A Oct. 6, 2025, 2:03 a.m. OK Java 8 TESTS 4 155 0
342142421 11415 A Oct. 6, 2025, 1:36 a.m. OK Java 8 TESTS 4 156 0
342114004 2004gaganpandey A Oct. 5, 2025, 6:29 p.m. OK Java 8 TESTS 4 156 0
342105090 pattedamanthan A Oct. 5, 2025, 6:13 p.m. OK Java 8 TESTS 4 156 0
342150956 tuffknuckles A Oct. 6, 2025, 3:39 a.m. OK Node.js TESTS 4 93 0
342139981 DoryperPevin A Oct. 6, 2025, 12:48 a.m. OK PyPy 3 TESTS 4 77 0
342138176 cly312 A Oct. 6, 2025, 12:04 a.m. OK PyPy 3 TESTS 4 77 0
342152419 mit_001 A Oct. 6, 2025, 3:58 a.m. OK PyPy 3 TESTS 4 92 0
342134474 radoslav11 A Oct. 5, 2025, 10:16 p.m. OK PyPy 3 TESTS 4 92 1126400
342115494 krishnaa2512 A Oct. 5, 2025, 6:32 p.m. OK PyPy 3 TESTS 4 93 102400
342106653 WuLinLin A Oct. 5, 2025, 6:16 p.m. OK PyPy 3 TESTS 4 93 102400
342144039 bpdolson A Oct. 6, 2025, 2:02 a.m. OK PyPy 3 TESTS 4 93 409600
342113970 Stellar_Syntax A Oct. 5, 2025, 6:29 p.m. OK PyPy 3 TESTS 4 139 3276800
342158359 challavishweshwar A Oct. 6, 2025, 5:11 a.m. OK PyPy 3 TESTS 4 202 4198400
342125115 RobinFromTheHood A Oct. 5, 2025, 8:12 p.m. OK PyPy 3-64 TESTS 4 61 0
342159612 ScarrettStar A Oct. 6, 2025, 5:24 a.m. OK PyPy 3-64 TESTS 4 62 0
342151837 VSS102484_farazUsman A Oct. 6, 2025, 3:50 a.m. OK PyPy 3-64 TESTS 4 62 0
342148978 robertch9890 A Oct. 6, 2025, 3:12 a.m. OK PyPy 3-64 TESTS 4 62 0
342147673 Daksh_2008 A Oct. 6, 2025, 2:55 a.m. OK PyPy 3-64 TESTS 4 62 0
342147200 robertch9890 A Oct. 6, 2025, 2:49 a.m. OK PyPy 3-64 TESTS 4 62 0
342142425 VSS240304946_Aaqib A Oct. 6, 2025, 1:36 a.m. OK PyPy 3-64 TESTS 4 62 0
342137805 difficult_saurabh A Oct. 5, 2025, 11:52 p.m. OK PyPy 3-64 TESTS 4 62 0
342162826 pratikmhaisane09 A Oct. 6, 2025, 5:56 a.m. OK PyPy 3-64 TESTS 4 77 0
342156829 Pathik_Kundu A Oct. 6, 2025, 4:55 a.m. OK PyPy 3-64 TESTS 4 77 0
342135478 WaterMonkey30 A Oct. 5, 2025, 10:39 p.m. OK Python 3 TESTS 4 61 0
342163650 kaluginpeter A Oct. 6, 2025, 6:04 a.m. OK Python 3 TESTS 4 62 0
342159801 MrOladushek1983 A Oct. 6, 2025, 5:26 a.m. OK Python 3 TESTS 4 62 0
342159731 Jaijnuak A Oct. 6, 2025, 5:25 a.m. OK Python 3 TESTS 4 62 0
342148878 rabbit301103 A Oct. 6, 2025, 3:11 a.m. OK Python 3 TESTS 4 62 0
342146357 Log_Nhat_26 A Oct. 6, 2025, 2:36 a.m. OK Python 3 TESTS 4 62 0
342142543 VSS111523_AsadHussain A Oct. 6, 2025, 1:38 a.m. OK Python 3 TESTS 4 62 0
342137517 xxskibidirizzlergyattxx A Oct. 5, 2025, 11:39 p.m. OK Python 3 TESTS 4 62 0
342159901 ag3734359 A Oct. 6, 2025, 5:27 a.m. OK Python 3 TESTS 4 77 0
342159834 MrOladushek1983 A Oct. 6, 2025, 5:27 a.m. OK Python 3 TESTS 4 77 0
342158826 silicalet A Oct. 6, 2025, 5:16 a.m. OK Rust 2024 TESTS 4 46 0

remove filters

Back to search problems