Contest 2050 and Codeforces Round 718 (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
1517 Contest 2050 and Codeforces Round 718 (Div. 1 + Div. 2) FINISHED False 9900 118077863 April 23, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 521 ) G Starry Night Camping PROGRAMMING flows graphs

B"At the foot of Liyushan Mountain, n tents will be carefully arranged to provide accommodation for those who are willing to experience the joy of approaching nature, the tranquility of the night, and the bright starry sky. The i -th tent is located at the point of (x_i, y_i) and has a weight of w_i . A tent is important if and only if both x_i and y_i are even. You need to remove some tents such that for each remaining important tent (x, y) , there do not exist 3 other tents (x'_1, y'_1) , (x'_2, y'_2) and (x'_3, y'_3) such that both conditions are true: Please maximize the sum of the weights of the tents that are not removed. Print the maximum value. The first line contains a single integer n ( 1 <= q n <= q 1 ,000 ), representing the number of tents. Each of the next n lines contains three integers x_i , y_i and w_i ( -10^9 <= q x_i,y_i <= q 10^9 , 1 <= q w_i <= q 10^9 ), representing the coordinate of the i -th tent and its weight. No two tents are located at the same point. A single integer -- the maximum sum of the weights of the remaining tents. Here is an illustration of the second example. Black triangles indicate the important tents. This example also indicates all 8 forbidden patterns. "...

Tutorials

Contest 2050 and Codeforces Round #718 (Div.1 + Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
114033289 duality G April 23, 2021, 4:40 p.m. OK GNU C++11 TESTS 43 30 307200
114040728 GoldCrystal G April 23, 2021, 5:12 p.m. OK GNU C++11 TESTS 43 30 716800
114069262 Hongzy G April 24, 2021, 3:25 a.m. OK GNU C++11 TESTS 43 30 1024000
114070473 mts_246 G April 24, 2021, 3:52 a.m. OK GNU C++11 TESTS 43 31 512000
114049029 atoiz G April 23, 2021, 6:45 p.m. OK GNU C++11 TESTS 43 31 512000
114039178 Obsidian G April 23, 2021, 5:05 p.m. OK GNU C++11 TESTS 43 31 3379200
114065156 emptyhope G April 24, 2021, 1:27 a.m. OK GNU C++11 TESTS 43 31 5427200
114064794 emptyhope G April 24, 2021, 1:13 a.m. OK GNU C++11 TESTS 43 31 5427200
114064765 Newbie_Rainbow_sjy G April 24, 2021, 1:12 a.m. OK GNU C++11 TESTS 43 31 5427200
114065851 iqx37f G April 24, 2021, 1:51 a.m. OK GNU C++11 TESTS 43 31 201318400
114058274 Potassium G April 23, 2021, 9:24 p.m. OK GNU C++14 TESTS 43 31 409600
114053838 RobeZH G April 23, 2021, 8:05 p.m. OK GNU C++14 TESTS 43 31 512000
114053792 RobeZH G April 23, 2021, 8:04 p.m. OK GNU C++14 TESTS 43 31 512000
114041033 Radewoosh G April 23, 2021, 5:14 p.m. OK GNU C++14 TESTS 43 31 512000
114039616 y1s1 G April 23, 2021, 5:07 p.m. OK GNU C++14 TESTS 43 31 1843200
114064376 peti1234 G April 24, 2021, 12:57 a.m. OK GNU C++17 TESTS 43 31 409600
114050846 congthanh123 G April 23, 2021, 7:14 p.m. OK GNU C++17 TESTS 43 31 1536000
114049739 congthanh123 G April 23, 2021, 6:56 p.m. OK GNU C++17 TESTS 43 31 1536000
114048522 sd0061 G April 23, 2021, 6:38 p.m. OK GNU C++17 TESTS 43 31 96768000
114076764 CoderAnshu G April 24, 2021, 5:42 a.m. OK GNU C++17 TESTS 43 46 614400
114051112 congthanh123 G April 23, 2021, 7:19 p.m. OK GNU C++17 TESTS 43 46 1536000
114034514 dreamoon_love_AA G April 23, 2021, 4:45 p.m. OK GNU C++17 TESTS 43 46 61132800
114066128 Akemi-Homura- G April 24, 2021, 1:59 a.m. OK GNU C++17 (64) TESTS 43 31 307200
114069326 fivefourthreeone G April 24, 2021, 3:27 a.m. OK GNU C++17 (64) TESTS 43 31 409600
114066936 6aren G April 24, 2021, 2:24 a.m. OK GNU C++17 (64) TESTS 43 31 409600
114061094 Ari G April 23, 2021, 10:43 p.m. OK GNU C++17 (64) TESTS 43 31 409600
114039927 jiangly G April 23, 2021, 5:09 p.m. OK GNU C++17 (64) TESTS 43 31 409600
114032359 ecnerwala G April 23, 2021, 4:36 p.m. OK GNU C++17 (64) TESTS 43 31 409600
114035064 maroonrk G April 23, 2021, 4:47 p.m. OK GNU C++17 (64) TESTS 43 31 819200
114070041 heno239 G April 24, 2021, 3:43 a.m. OK GNU C++17 (64) TESTS 43 31 1331200
114072691 DevourThemAll G April 24, 2021, 4:35 a.m. OK GNU C++17 (64) TESTS 43 31 6656000
114036917 mnbvmar G April 23, 2021, 4:56 p.m. OK GNU C++17 (64) TESTS 43 46 614400
114072437 FlakeLCR G April 24, 2021, 4:30 a.m. OK PyPy 3 TESTS 43 218 9523200

remove filters

Back to search problems