Codeforces Round 758 (Div.1 + 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
1608 Codeforces Round 758 (Div.1 + Div. 2) FINISHED False 7200 98049263 Dec. 11, 2021, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 446 ) E The Cells on the Paper PROGRAMMING binary search data structures implementation sortings

B"On an endless checkered sheet of paper, n cells are chosen and colored in three colors, where n is divisible by 3 . It turns out that there are exactly frac{n}{3} marked cells of each of three colors! Find the largest such k that it's possible to choose frac{k}{3} cells of each color, remove all other marked cells, and then select three rectangles with sides parallel to the grid lines so that the following conditions hold: The first line of the input contains a single integer n -- the number of the marked cells ( 3 <= q n <= 10^5 , n is divisible by 3). The i -th of the following n lines contains three integers x_i , y_i , c_i ( |x_i|,|y_i| <= q 10^9 ; 1 <= q c_i <= q 3 ), where (x_i, y_i) are the coordinates of the i -th marked cell and c_i is its color. It's guaranteed that all cells (x_i, y_i) in the input are distinct, and that there are exactly frac{n}{3} cells of each color. Output a single integer k -- the largest number of cells you can leave. In the first sample, it's possible to leave 6 cells with indexes 1, 5, 6, 7, 8, 9 . In the second sample, it's possible to leave 3 cells with indexes 1, 2, 3 . "...

Tutorials

Editorial of Codeforces Round #758 (Div.1 + Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
138821878 william555 E Dec. 12, 2021, 1:52 a.m. OK GNU C++14 TESTS 61 124 5017600
138825968 xiaoyaowudi E Dec. 12, 2021, 4:12 a.m. OK GNU C++14 TESTS 61 171 4198400
138784167 FluffyT E Dec. 11, 2021, 2:11 p.m. OK GNU C++14 TESTS 61 171 129843200
138823367 keywet06 E Dec. 12, 2021, 2:48 a.m. OK GNU C++14 TESTS 61 264 11161600
138825078 q-w-q-w-q E Dec. 12, 2021, 3:46 a.m. OK GNU C++14 TESTS 61 296 18636800
138796493 meaningIess E Dec. 11, 2021, 4:27 p.m. OK GNU C++14 TESTS 61 390 9625600
138779889 meaningIess E Dec. 11, 2021, 1:33 p.m. OK GNU C++14 TESTS 61 436 9625600
138783181 liuxiang E Dec. 11, 2021, 2:01 p.m. OK GNU C++14 TESTS 61 452 12083200
138773678 Karry5307_AK_NOI2021 E Dec. 11, 2021, 12:36 p.m. OK GNU C++14 TESTS 61 452 90419200
138819724 liuhengxi E Dec. 12, 2021, 12:13 a.m. OK GNU C++14 TESTS 61 483 7168000
138789146 zhangguangxuan99 E Dec. 11, 2021, 3:01 p.m. OK GNU C++17 TESTS 61 171 4505600
138767336 peti1234 E Dec. 11, 2021, 11:58 a.m. OK GNU C++17 TESTS 61 187 4505600
138762972 Sert E Dec. 11, 2021, 11:46 a.m. OK GNU C++17 TESTS 61 218 4505600
138766494 imeimi E Dec. 11, 2021, 11:55 a.m. OK GNU C++17 TESTS 61 265 5222400
138813985 bthero E Dec. 11, 2021, 8:52 p.m. OK GNU C++17 TESTS 61 311 3993600
138811748 SHZhang2 E Dec. 11, 2021, 8:08 p.m. OK GNU C++17 TESTS 61 374 3174400
138760674 fsouza E Dec. 11, 2021, 11:39 a.m. OK GNU C++17 TESTS 61 592 5632000
138780852 chunjiangchaoshui E Dec. 11, 2021, 1:41 p.m. OK GNU C++17 TESTS 61 608 6860800
138769305 jdurie E Dec. 11, 2021, 12:03 p.m. OK GNU C++17 TESTS 61 654 17817600
138784462 cfdiv2E E Dec. 11, 2021, 2:13 p.m. OK GNU C++17 TESTS 61 655 20275200
138778473 MAOoo E Dec. 11, 2021, 1:20 p.m. OK GNU C++17 (64) TESTS 61 139 4710400
138778071 MAOoo E Dec. 11, 2021, 1:16 p.m. OK GNU C++17 (64) TESTS 61 139 4710400
138777639 MAOoo E Dec. 11, 2021, 1:12 p.m. OK GNU C++17 (64) TESTS 61 171 4710400
138775172 MAOoo E Dec. 11, 2021, 12:49 p.m. OK GNU C++17 (64) TESTS 61 171 4710400
138776655 MAOoo E Dec. 11, 2021, 1:02 p.m. OK GNU C++17 (64) TESTS 61 186 4710400
138775869 MAOoo E Dec. 11, 2021, 12:55 p.m. OK GNU C++17 (64) TESTS 61 202 4710400
138769900 MAOoo E Dec. 11, 2021, 12:04 p.m. OK GNU C++17 (64) TESTS 61 217 5734400
138825026 wygzgyw E Dec. 12, 2021, 3:44 a.m. OK GNU C++17 (64) TESTS 61 217 27033600
138777521 353cerega E Dec. 11, 2021, 1:11 p.m. OK GNU C++17 (64) TESTS 61 234 9523200
138771799 MAOoo E Dec. 11, 2021, 12:24 p.m. OK GNU C++17 (64) TESTS 61 248 5734400
138798222 maxplus E Dec. 11, 2021, 4:49 p.m. OK GNU C++20 (64) TESTS 61 62 2457600
138797897 maxplus E Dec. 11, 2021, 4:44 p.m. OK GNU C++20 (64) TESTS 61 62 2457600
138797446 maxplus E Dec. 11, 2021, 4:39 p.m. OK GNU C++20 (64) TESTS 61 78 2457600
138797312 maxplus E Dec. 11, 2021, 4:37 p.m. OK GNU C++20 (64) TESTS 61 93 2457600
138829963 akshaykhandelwal E Dec. 12, 2021, 5:48 a.m. OK GNU C++20 (64) TESTS 61 109 4505600
138796449 maxplus E Dec. 11, 2021, 4:26 p.m. OK GNU C++20 (64) TESTS 61 124 3584000
138793126 NPBot E Dec. 11, 2021, 3:48 p.m. OK GNU C++20 (64) TESTS 61 218 2252800
138820060 _Cade_ E Dec. 12, 2021, 12:30 a.m. OK GNU C++20 (64) TESTS 61 233 2662400
138784403 tute7627 E Dec. 11, 2021, 2:13 p.m. OK GNU C++20 (64) TESTS 61 234 12083200
138820120 _Cade_ E Dec. 12, 2021, 12:33 a.m. OK GNU C++20 (64) TESTS 61 249 2662400
138817865 podtelkin E Dec. 11, 2021, 10:47 p.m. OK Java 11 TESTS 61 997 204800
138791493 fetetriste E Dec. 11, 2021, 3:29 p.m. OK Java 8 TESTS 61 1746 0
138792114 YahiaSherif E Dec. 11, 2021, 3:37 p.m. OK Java 8 TESTS 61 1762 5222400

remove filters

Back to search problems