Codeforces Round 950 (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
1980 Codeforces Round 950 (Div. 3) FINISHED False 8100 19754663 June 3, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3866 ) F1 Field Division (easy version) PROGRAMMING data structures geometry math sortings

B"This is an easy version of the problem; it differs from the hard version only by the question. The easy version only needs you to print whether some values are non-zero or not. The hard version needs you to print the exact values. Alice and Bob are dividing the field. The field is a rectangle of size n x m ( 2 <= n, m <= 10^9 ), the rows are numbered from 1 to n from top to bottom, and the columns are numbered from 1 to m from left to right. The cell at the intersection of row r and column c is denoted as ( r, c ). Bob has k ( 2 <= k <= 2 cdot 10^5 ) fountains, all of them are located in different cells of the field. Alice is responsible for dividing the field, but she must meet several conditions: Alice wants to divide the field in such a way as to get as many cells as possible. Bob wants to keep ownership of all the fountains, but he can give one of them to Alice. First, output the integer alpha -- the maximum possible size of Alice's plot, if Bob does not give her any fountain (i.e., all fountains will remain on Bob's plot). Then output k non-negative integers a_1, a_2, ... , a_k , where: The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains three integers n , m , and k ( 2 <= n, m <= 10^9 , 2 <= k <= 2 cdot 10^5 ) -- the field sizes and the number of fountains, respectively. Then follow k lines, each containing two numbers r_i and c_i ( 1 <= r_i <= n , 1 <= c_i <= m ) -- the coordinates of the cell with the i -th fountain. It is guaranteed that all cells are distinct and none of them is ( n, 1 ). It is guaranteed that the sum of k over all test cases does not exceed 2 cdot 10^5 . For each test case, first output alpha -- the maximum size of the plot that can belong to Alice if Bo"...

Tutorials

130135

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
264081106 ImmortaLimit F1 June 4, 2024, 4:55 a.m. OK C++14 (GCC 6-32) TESTS 13 140 29798400
264077067 Aderose_yr F1 June 4, 2024, 3:57 a.m. OK C++14 (GCC 6-32) TESTS 13 156 3993600
264082433 ggmxwg F1 June 4, 2024, 5:10 a.m. OK C++14 (GCC 6-32) TESTS 13 171 2764800
264036956 Shen_Fan F1 June 3, 2024, 5:18 p.m. OK C++14 (GCC 6-32) TESTS 13 186 3174400
264042402 optimus1010t F1 June 3, 2024, 6:03 p.m. OK C++14 (GCC 6-32) TESTS 13 186 5836800
264033615 Cutieee F1 June 3, 2024, 5 p.m. OK C++14 (GCC 6-32) TESTS 13 186 13414400
264067095 lzh999 F1 June 4, 2024, 12:55 a.m. OK C++14 (GCC 6-32) TESTS 13 187 5017600
264067510 lzh999 F1 June 4, 2024, 1:07 a.m. OK C++14 (GCC 6-32) TESTS 13 202 5017600
264036292 michael1234 F1 June 3, 2024, 5:14 p.m. OK C++14 (GCC 6-32) TESTS 13 202 6451200
264079388 Rating_10101010 F1 June 4, 2024, 4:33 a.m. OK C++14 (GCC 6-32) TESTS 13 203 4812800
264048420 Kritik12 F1 June 3, 2024, 6:59 p.m. OK C++17 (GCC 7-32) TESTS 13 155 0
264068720 Texiwus F1 June 4, 2024, 1:39 a.m. OK C++17 (GCC 7-32) TESTS 13 155 2457600
264077567 happyzzj F1 June 4, 2024, 4:05 a.m. OK C++17 (GCC 7-32) TESTS 13 155 11264000
264060155 coolplum F1 June 3, 2024, 9:40 p.m. OK C++17 (GCC 7-32) TESTS 13 156 1638400
264055276 Zeeman01 F1 June 3, 2024, 8:19 p.m. OK C++17 (GCC 7-32) TESTS 13 156 2662400
264055925 amcbn F1 June 3, 2024, 8:28 p.m. OK C++17 (GCC 7-32) TESTS 13 156 3584000
264043784 somanaik F1 June 3, 2024, 6:15 p.m. OK C++17 (GCC 7-32) TESTS 13 156 3788800
264068359 MintCat F1 June 4, 2024, 1:29 a.m. OK C++17 (GCC 7-32) TESTS 13 156 9113600
264072710 Yxc F1 June 4, 2024, 2:45 a.m. OK C++17 (GCC 7-32) TESTS 13 171 1126400
264045892 PhenomSG F1 June 3, 2024, 6:33 p.m. OK C++17 (GCC 7-32) TESTS 13 171 1126400
264047643 NotFound F1 June 3, 2024, 6:51 p.m. OK C++20 (GCC 13-64) TESTS 13 124 0
264076179 efishel F1 June 4, 2024, 3:43 a.m. OK C++20 (GCC 13-64) TESTS 13 124 1331200
264055260 de_sousa F1 June 3, 2024, 8:18 p.m. OK C++20 (GCC 13-64) TESTS 13 124 5017600
264035627 Huangyf F1 June 3, 2024, 5:10 p.m. OK C++20 (GCC 13-64) TESTS 13 125 0
264072600 LNian F1 June 4, 2024, 2:43 a.m. OK C++20 (GCC 13-64) TESTS 13 125 1126400
264079607 hesham F1 June 4, 2024, 4:36 a.m. OK C++20 (GCC 13-64) TESTS 13 125 4403200
264061755 viveksingh912 F1 June 3, 2024, 10:18 p.m. OK C++20 (GCC 13-64) TESTS 13 125 9113600
264042076 PsychoPinkQ F1 June 3, 2024, 5:59 p.m. OK C++20 (GCC 13-64) TESTS 13 125 10649600
264054947 OmarAli. F1 June 3, 2024, 8:14 p.m. OK C++20 (GCC 13-64) TESTS 13 125 12288000
264043487 PsychoPinkQ F1 June 3, 2024, 6:12 p.m. OK C++20 (GCC 13-64) TESTS 13 125 15564800
264035071 Gassa F1 June 3, 2024, 5:07 p.m. OK D TESTS 13 437 10752000
264075893 Xing_ke F1 June 4, 2024, 3:39 a.m. OK Java 21 TESTS 13 561 1126400
264048623 Althaf_Hussain F1 June 3, 2024, 7:01 p.m. OK Java 21 TESTS 13 812 33996800
264037874 amireripmav786 F1 June 3, 2024, 5:24 p.m. OK Java 21 TESTS 13 828 42700800
264037209 kritikmodi F1 June 3, 2024, 5:20 p.m. OK Java 21 TESTS 13 828 42700800
264059145 Batman102 F1 June 3, 2024, 9:20 p.m. OK Java 21 TESTS 13 874 55808000
264059121 SD125 F1 June 3, 2024, 9:19 p.m. OK Java 21 TESTS 13 874 55808000
264034154 Switch9 F1 June 3, 2024, 5:03 p.m. OK Java 21 TESTS 13 983 110284800
264051170 HiddenBliz F1 June 3, 2024, 7:28 p.m. OK Java 21 TESTS 13 999 39833600
264041216 vinay_panwar F1 June 3, 2024, 5:51 p.m. OK Java 21 TESTS 13 1124 38502400
264035910 venom246800 F1 June 3, 2024, 5:12 p.m. OK Java 21 TESTS 13 1171 67891200
264067947 Yousef_Badr F1 June 4, 2024, 1:20 a.m. OK Java 8 TESTS 13 874 37990400
264072018 Yousef_Badr F1 June 4, 2024, 2:33 a.m. OK Java 8 TESTS 13 890 38400000
264039758 Yousef_Badr F1 June 3, 2024, 5:38 p.m. OK Java 8 TESTS 13 1202 37580800
264067237 Yousef_Badr F1 June 4, 2024, 12:59 a.m. OK Java 8 TESTS 13 1359 57344000
264079898 dauletomarov1130 F1 June 4, 2024, 4:40 a.m. OK Java 8 TESTS 13 1577 27238400
264053489 PlayDate F1 June 3, 2024, 7:56 p.m. OK Java 8 TESTS 13 1593 54579200
264085871 om172 F1 June 4, 2024, 5:47 a.m. OK Java 8 TESTS 13 1874 31539200
264051095 CepGamer F1 June 3, 2024, 7:28 p.m. OK Kotlin 1.9 TESTS 13 1499 33382400
264072853 zhangwenniu F1 June 4, 2024, 2:48 a.m. OK PyPy 3-64 TESTS 13 218 31129600
264059929 gardengnome F1 June 3, 2024, 9:35 p.m. OK PyPy 3-64 TESTS 13 390 24064000
264072833 zhangwenniu F1 June 4, 2024, 2:47 a.m. OK PyPy 3-64 TESTS 13 515 26726400
264058524 ntarsis30 F1 June 3, 2024, 9:08 p.m. OK PyPy 3-64 TESTS 13 561 84889600
264080519 Raindrops1117 F1 June 4, 2024, 4:48 a.m. OK PyPy 3-64 TESTS 13 656 64716800
264044918 SoleProprietor F1 June 3, 2024, 6:25 p.m. OK PyPy 3-64 TESTS 13 796 56012800
264059323 gardengnome F1 June 3, 2024, 9:23 p.m. OK PyPy 3-64 TESTS 13 842 44953600
264035253 iN_siDious F1 June 3, 2024, 5:08 p.m. OK PyPy 3-64 TESTS 13 874 88371200
264071752 TJacobus F1 June 4, 2024, 2:28 a.m. OK PyPy 3-64 TESTS 13 890 63283200
264058352 kibr F1 June 3, 2024, 9:05 p.m. OK PyPy 3-64 TESTS 13 921 48435200
264084211 dhruvdd8888 F1 June 4, 2024, 5:29 a.m. OK Python 3 TESTS 13 812 78745600
264082944 OLOGY F1 June 4, 2024, 5:16 a.m. OK Python 3 TESTS 13 921 71884800
264034053 Black__Mask F1 June 3, 2024, 5:02 p.m. OK Python 3 TESTS 13 1030 45158400

remove filters

Back to search problems