Codeforces Round 567 (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
1181 Codeforces Round 567 (Div. 2) FINISHED False 7200 176502263 June 16, 2019, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 301 ) E2 A Story of One Country (Hard) PROGRAMMING brute force greedy sortings 3000

B'This problem differs from the previous problem only in constraints. Petya decided to visit Byteland during the summer holidays. It turned out that the history of this country is quite unusual. Initially, there were n different countries on the land that is now Berland. Each country had its own territory that was represented as a rectangle on the map. The sides of the rectangle were parallel to the axes, and the corners were located at points with integer coordinates. Territories of no two countries intersected, but it was possible that some territories touched each other. As time passed, sometimes two countries merged into one. It only happened if the union of their territories was also a rectangle. In the end only one country remained -- Byteland. Initially, each country had a rectangular castle inside its territory. Its sides were parallel to the axes and its corners had integer coordinates. Some castles might touch the border of the corresponding country and sides or other castles. Miraculously, after all the unions the castles are still intact. Unfortunately, their locations are the only information we have to restore the initial territories of the countries. Petya wonders why no information about the initial countries remained. He suspected that the whole story is a fake. You were recommended to him as a smart person. Please check whether or not there exists a possible set of initial territories that could make the story true. The first line contains a single integer n ( 1 <= q n <= q 100 ,000 ) -- the number of countries and castles. Each of the next n lines contains four integers a_i, b_i, c_i, d_i ( 0 <= q a_i < c_i <= q 10^9 , 0 <= q b_i < d_i <= q 10^9 ) -- the coordinates of the i -th castle, where (a_i, b_i) are the coordinates of the lower left corner and (c_i, d_i) are the coordinates of the upper right corner. It is guaranteed that no two castles intersect, however, they may touch. '...

Tutorials

Editorial of Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55952419 wucstdio E2 June 23, 2019, 3:58 a.m. OK GNU C++11 TESTS 86 171 44646400 3000
55830557 Cong1500DanPaiXia0 E2 June 20, 2019, 12:56 p.m. OK GNU C++11 TESTS 86 280 24780800 3000
60255683 chc_1234567890 E2 Sept. 8, 2019, 9:16 a.m. OK GNU C++11 TESTS 86 342 10035200 3000
60068740 _twilight E2 Sept. 5, 2019, 10:17 a.m. OK GNU C++11 TESTS 86 389 129024000 3000
56636507 danya090699 E2 July 6, 2019, 7:58 p.m. OK GNU C++11 TESTS 86 514 45772800 3000
55986550 jyx E2 June 24, 2019, 4:17 a.m. OK GNU C++11 TESTS 86 530 9011200 3000
58886823 WarrenWN E2 Aug. 16, 2019, 2:44 a.m. OK GNU C++11 TESTS 86 545 7475200 3000
55649514 ErkkiErkko E2 June 16, 2019, 1:52 p.m. OK GNU C++11 TESTS 86 1216 41779200 3000
62600051 chasedeath E2 Oct. 15, 2019, 4:58 a.m. OK GNU C++11 TESTS 86 1263 48128000 3000
55966058 AutumnKite E2 June 23, 2019, 12:11 p.m. OK GNU C++11 TESTS 86 1278 48128000 3000
59244964 krijgertje E2 Aug. 21, 2019, 10:36 p.m. OK GNU C++14 TESTS 86 296 16793600 3000
55735465 antguz E2 June 19, 2019, 3:25 a.m. OK GNU C++14 TESTS 86 327 18022400 3000
55664606 tmwilliamlin168 E2 June 17, 2019, 2:12 a.m. OK GNU C++14 TESTS 86 327 18124800 3000
59925931 Marckess E2 Sept. 3, 2019, 4:01 a.m. OK GNU C++14 TESTS 86 358 35942400 3000
55680828 KISH_PATEL E2 June 17, 2019, 12:57 p.m. OK GNU C++14 TESTS 86 374 19763200 3000
55664628 tmwilliamlin168 E2 June 17, 2019, 2:14 a.m. OK GNU C++14 TESTS 86 374 19763200 3000
56190722 sillysilly E2 June 28, 2019, 7:24 a.m. OK GNU C++14 TESTS 86 405 14028800 3000
56189846 sillysilly E2 June 28, 2019, 6:57 a.m. OK GNU C++14 TESTS 86 420 10854400 3000
59687820 cz_xuyixuan E2 Aug. 30, 2019, 3:17 a.m. OK GNU C++14 TESTS 86 514 69939200 3000
57249017 erogame E2 July 17, 2019, 9:12 p.m. OK GNU C++14 TESTS 86 592 24268800 3000
55865081 F.J E2 June 21, 2019, 11:41 a.m. OK GNU C++17 TESTS 86 265 20480000 3000
55864881 F.J E2 June 21, 2019, 11:35 a.m. OK GNU C++17 TESTS 86 265 20480000 3000
56059140 mohamedeltair E2 June 26, 2019, 3:52 a.m. OK GNU C++17 TESTS 86 343 10035200 3000
66518774 jschr E2 Dec. 8, 2019, 8:35 p.m. OK GNU C++17 TESTS 86 436 32460800 3000
59937438 oskarfiuk1 E2 Sept. 3, 2019, 10:02 a.m. OK GNU C++17 TESTS 86 529 19456000 3000
55663584 RCG E2 June 17, 2019, 12:42 a.m. OK GNU C++17 TESTS 86 546 22630400 3000
55964251 blackbori E2 June 23, 2019, 11:11 a.m. OK GNU C++17 TESTS 86 670 8499200 3000
55660917 Siberian E2 June 16, 2019, 8:57 p.m. OK GNU C++17 TESTS 86 732 68812800 3000
55660999 Siberian E2 June 16, 2019, 9:02 p.m. OK GNU C++17 TESTS 86 733 68915200 3000
55704286 interestingLSY E2 June 18, 2019, 6:43 a.m. OK GNU C++17 TESTS 86 873 48230400 3000
58621051 catforce E2 Aug. 11, 2019, 3:59 p.m. OK Java 8 TESTS 86 998 18329600 3000
55977677 Musin E2 June 23, 2019, 6:33 p.m. OK Java 8 TESTS 86 1076 33075200 3000
58359104 catforce E2 Aug. 5, 2019, 9:53 p.m. OK Java 8 TESTS 86 2089 20787200 3000
65456248 Harpae E2 Nov. 20, 2019, 8:46 p.m. OK Java 8 TESTS 86 2916 117760000 3000

remove filters

Back to search problems