Educational Codeforces Round 115 (Rated for 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
1598 Educational Codeforces Round 115 (Rated for Div. 2) FINISHED False 7200 97966499 Oct. 10, 2021, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16139 ) B Groups PROGRAMMING brute force implementation

B' n students attended the first meeting of the Berland SU programming course ( n is even). All students will be divided into two groups. Each group will be attending exactly one lesson each week during one of the five working days (Monday, Tuesday, Wednesday, Thursday and Friday), and the days chosen for the groups must be different. Furthermore, both groups should contain the same number of students. Each student has filled a survey in which they told which days of the week are convenient for them to attend a lesson, and which are not. Your task is to determine if it is possible to choose two different week days to schedule the lessons for the group (the first group will attend the lesson on the first chosen day, the second group will attend the lesson on the second chosen day), and divide the students into two groups, so the groups have equal sizes, and for each student, the chosen lesson day for their group is convenient. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. Then the descriptions of t testcases follow. The first line of each testcase contains one integer n ( 2 <= n <= 1 ,000 ) -- the number of students. The i -th of the next n lines contains 5 integers, each of them is 0 or 1 . If the j -th integer is 1 , then the i -th student can attend the lessons on the j -th day of the week. If the j -th integer is 0 , then the i -th student cannot attend the lessons on the j -th day of the week. Additional constraints on the input: for each student, at least one of the days of the week is convenient, the total number of students over all testcases doesn 't exceed 10^5 . For each testcase print an answer. If it 's possible to divide the students into two groups of equal sizes and choose different days for the groups so each student can attend the lesson in the chosen day of their group, print "YES" '...

Tutorials

95890

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
131453957 cyrus_msk B Oct. 10, 2021, 11:09 a.m. OK D TESTS 9 296 10956800
131482958 H_a_c_kcode_gaurav B Oct. 10, 2021, 4:14 p.m. OK GNU C11 TESTS 9 93 0
131478916 zaied_AoS B Oct. 10, 2021, 3:25 p.m. OK GNU C11 TESTS 9 93 3686400
131478242 Lao_Nan_Ren B Oct. 10, 2021, 3:17 p.m. OK GNU C11 TESTS 9 109 4096000
131516119 CQYZWJH B Oct. 11, 2021, 5:17 a.m. OK GNU C++14 TESTS 9 15 3788800
131517772 YangTY B Oct. 11, 2021, 5:42 a.m. OK GNU C++14 TESTS 9 31 20582400
131518166 Abdelshakour B Oct. 11, 2021, 5:47 a.m. OK GNU C++14 TESTS 9 46 204800
131475128 WangYiYu B Oct. 10, 2021, 2:42 p.m. OK GNU C++14 TESTS 9 46 3788800
131504133 ZolaWatle B Oct. 10, 2021, 11:19 p.m. OK GNU C++14 TESTS 9 46 3788800
131464284 ZolaWatle B Oct. 10, 2021, 12:45 p.m. OK GNU C++14 TESTS 9 46 3788800
131468807 do_while_true B Oct. 10, 2021, 1:33 p.m. OK GNU C++14 TESTS 9 46 56115200
131506680 wly561 B Oct. 11, 2021, 1:47 a.m. OK GNU C++14 TESTS 9 61 4096000
131514203 Wuyanru B Oct. 11, 2021, 4:44 a.m. OK GNU C++14 TESTS 9 62 0
131510655 luogu_bot3 B Oct. 11, 2021, 3:37 a.m. OK GNU C++14 TESTS 9 62 0
131496575 orangesTO B Oct. 10, 2021, 7:36 p.m. OK GNU C++17 TESTS 9 31 3891200
131517140 bluesky111 B Oct. 11, 2021, 5:32 a.m. OK GNU C++17 TESTS 9 31 5836800
131487939 AU_742 B Oct. 10, 2021, 5:20 p.m. OK GNU C++17 TESTS 9 46 0
131476103 nanoRex B Oct. 10, 2021, 2:53 p.m. OK GNU C++17 TESTS 9 46 3686400
131463132 Undercover_pi B Oct. 10, 2021, 12:32 p.m. OK GNU C++17 TESTS 9 46 3686400
131472697 1eave B Oct. 10, 2021, 2:16 p.m. OK GNU C++17 TESTS 9 46 3788800
131509571 KrySt4l B Oct. 11, 2021, 3:15 a.m. OK GNU C++17 TESTS 9 46 3788800
131463308 sanskar B Oct. 10, 2021, 12:34 p.m. OK GNU C++17 TESTS 9 46 3891200
131510062 dipti821 B Oct. 11, 2021, 3:25 a.m. OK GNU C++17 TESTS 9 46 11776000
131509945 dipti821 B Oct. 11, 2021, 3:23 a.m. OK GNU C++17 TESTS 9 46 11776000
131468344 _Isaunoya_ B Oct. 10, 2021, 1:28 p.m. OK GNU C++17 (64) TESTS 9 30 5427200
131470046 aimmastertill2022 B Oct. 10, 2021, 1:47 p.m. OK GNU C++17 (64) TESTS 9 31 0
131505168 wsyear B Oct. 11, 2021, 12:09 a.m. OK GNU C++17 (64) TESTS 9 31 0
131480192 jt.cheng26_orz B Oct. 10, 2021, 3:40 p.m. OK GNU C++17 (64) TESTS 9 31 4608000
131511516 87027722007 B Oct. 11, 2021, 3:53 a.m. OK GNU C++17 (64) TESTS 9 46 4300800
131496554 werus23 B Oct. 10, 2021, 7:36 p.m. OK GNU C++17 (64) TESTS 9 46 4300800
131457563 Alan233 B Oct. 10, 2021, 11:35 a.m. OK GNU C++17 (64) TESTS 9 46 4300800
131469136 QuartZ_Z B Oct. 10, 2021, 1:37 p.m. OK GNU C++17 (64) TESTS 9 46 8192000
131467617 EnDeRBeaT B Oct. 10, 2021, 1:21 p.m. OK GNU C++17 (64) TESTS 9 61 0
131489382 teapotd B Oct. 10, 2021, 5:40 p.m. OK GNU C++17 (64) TESTS 9 61 4300800
131516468 SavageClown007 B Oct. 11, 2021, 5:22 a.m. OK Java 11 TESTS 9 171 23859200
131454437 Tyson761 B Oct. 10, 2021, 11:12 a.m. OK Java 11 TESTS 9 186 0
131494922 solo07 B Oct. 10, 2021, 7:07 p.m. OK Java 11 TESTS 9 187 23859200
131510942 jod_07 B Oct. 11, 2021, 3:43 a.m. OK Java 11 TESTS 9 218 23859200
131495796 insane_banda B Oct. 10, 2021, 7:22 p.m. OK Java 11 TESTS 9 233 0
131475038 BiggEr. B Oct. 10, 2021, 2:41 p.m. OK Java 11 TESTS 9 233 0
131468585 Tykonan B Oct. 10, 2021, 1:31 p.m. OK Java 11 TESTS 9 234 23756800
131478132 Florino B Oct. 10, 2021, 3:16 p.m. OK Java 11 TESTS 9 248 23859200
131463668 iamsoumik B Oct. 10, 2021, 12:38 p.m. OK Java 11 TESTS 9 248 23859200
131478176 FLORINNN B Oct. 10, 2021, 3:16 p.m. OK Java 11 TESTS 9 249 0
131470447 aashay_03 B Oct. 10, 2021, 1:51 p.m. OK Java 8 TESTS 9 124 20377600
131465645 rakshith572 B Oct. 10, 2021, 1 p.m. OK Java 8 TESTS 9 139 20480000
131496507 kkkkush B Oct. 10, 2021, 7:35 p.m. OK Java 8 TESTS 9 139 20480000
131475691 themadknight45 B Oct. 10, 2021, 2:48 p.m. OK Java 8 TESTS 9 140 20480000
131480074 gawsfbet B Oct. 10, 2021, 3:39 p.m. OK Java 8 TESTS 9 155 20377600
131488482 BruteForcee B Oct. 10, 2021, 5:27 p.m. OK Java 8 TESTS 9 155 20480000
131475676 dark_rays B Oct. 10, 2021, 2:48 p.m. OK Java 8 TESTS 9 155 20480000
131468995 harsh_it B Oct. 10, 2021, 1:35 p.m. OK Java 8 TESTS 9 155 20480000
131482867 RonWonWon B Oct. 10, 2021, 4:13 p.m. OK Java 8 TESTS 9 202 0
131453640 amit_roy B Oct. 10, 2021, 11:08 a.m. OK Java 8 TESTS 9 202 0
131465023 wbars B Oct. 10, 2021, 12:54 p.m. OK Kotlin 1.4 TESTS 9 842 22220800
131452493 yujinye B Oct. 10, 2021, 11:03 a.m. OK MS C++ 2017 TESTS 9 156 27750400
131465981 Tangerine B Oct. 10, 2021, 1:04 p.m. OK MS C++ 2017 TESTS 9 280 3788800
131479607 Xeniya B Oct. 10, 2021, 3:33 p.m. OK MS C++ 2017 TESTS 9 280 3788800
131453291 shencheng_ B Oct. 10, 2021, 11:04 a.m. OK MS C++ 2017 TESTS 9 280 3788800
131468308 Damirca B Oct. 10, 2021, 1:28 p.m. OK MS C++ 2017 TESTS 9 327 0
131496591 UnHingedFrog B Oct. 10, 2021, 7:37 p.m. OK MS C++ 2017 TESTS 9 342 11776000
131472262 forcy_guy B Oct. 10, 2021, 2:11 p.m. OK MS C++ 2017 TESTS 9 499 307200
131489829 ansergeyg B Oct. 10, 2021, 5:47 p.m. OK .NET Core C# TESTS 9 124 14848000
131518022 fr0st B Oct. 11, 2021, 5:45 a.m. OK .NET Core C# TESTS 9 140 14950400
131490099 Corvin42 B Oct. 10, 2021, 5:51 p.m. OK .NET Core C# TESTS 9 202 38912000
131460426 sPARTY B Oct. 10, 2021, 12:03 p.m. OK PyPy 2 TESTS 9 249 31744000
131455879 lemiao12 B Oct. 10, 2021, 11:22 a.m. OK PyPy 3 TESTS 9 217 29491200
131475226 not_tehlka B Oct. 10, 2021, 2:43 p.m. OK PyPy 3 TESTS 9 218 9728000
131454768 nitish420 B Oct. 10, 2021, 11:14 a.m. OK PyPy 3 TESTS 9 233 29184000
131469837 hxu10 B Oct. 10, 2021, 1:45 p.m. OK PyPy 3 TESTS 9 248 25907200
131466938 Het_Fadia B Oct. 10, 2021, 1:14 p.m. OK PyPy 3 TESTS 9 295 9113600
131456286 VN.Kiet B Oct. 10, 2021, 11:25 a.m. OK PyPy 3 TESTS 9 296 9830400
131467190 Het_Fadia B Oct. 10, 2021, 1:17 p.m. OK PyPy 3 TESTS 9 327 26419200
131467283 Het_Fadia B Oct. 10, 2021, 1:18 p.m. OK PyPy 3 TESTS 9 327 28876800
131513807 SPD_9X2 B Oct. 11, 2021, 4:37 a.m. OK PyPy 3 TESTS 9 327 29696000
131481743 Liberator187 B Oct. 10, 2021, 3:59 p.m. OK PyPy 3 TESTS 9 327 29900800
131500560 PJdan B Oct. 10, 2021, 9:03 p.m. OK Python 3 TESTS 9 249 7270400
131500347 PJdan B Oct. 10, 2021, 8:57 p.m. OK Python 3 TESTS 9 249 7372800
131510158 eugalt B Oct. 11, 2021, 3:27 a.m. OK Python 3 TESTS 9 296 7065600
131500065 PJdan B Oct. 10, 2021, 8:51 p.m. OK Python 3 TESTS 9 421 7168000
131517831 orazbek B Oct. 11, 2021, 5:43 a.m. OK Python 3 TESTS 9 483 7168000
131498015 hitesh_1997 B Oct. 10, 2021, 8:03 p.m. OK Python 3 TESTS 9 545 8192000
131466587 nastya.vecherenko B Oct. 10, 2021, 1:11 p.m. OK Python 3 TESTS 9 561 6963200
131492130 abhinav4202 B Oct. 10, 2021, 6:22 p.m. OK Python 3 TESTS 9 639 6963200
131462500 GAJJALAYESWANTH123 B Oct. 10, 2021, 12:26 p.m. OK Python 3 TESTS 9 654 6963200
131507724 keyfu92 B Oct. 11, 2021, 2:32 a.m. OK Python 3 TESTS 9 685 6963200
131466503 sansen B Oct. 10, 2021, 1:10 p.m. OK Rust TESTS 9 31 4812800
131463654 sansen B Oct. 10, 2021, 12:38 p.m. OK Rust TESTS 9 468 6963200

remove filters

Back to search problems