Codeforces Round 573 (Div. 1)

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
1190 Codeforces Round 573 (Div. 1) FINISHED False 7200 174497087 July 12, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2329 ) D Tokitsukaze and Strange Rectangle PROGRAMMING data structures divide and conquer sortings two pointers 2200

B'There are n points on the plane, the i -th of which is at (x_i, y_i) . Tokitsukaze wants to draw a strange rectangular area and pick all the points in the area. The strange area is enclosed by three lines, x = l , y = a and x = r , as its left side, its bottom side and its right side respectively, where l , r and a can be any real numbers satisfying that l < r . The upper side of the area is boundless, which you can regard as a line parallel to the x -axis at infinity. The following figure shows a strange rectangular area. A point (x_i, y_i) is in the strange rectangular area if and only if l < x_i < r and y_i > a . For example, in the above figure, p_1 is in the area while p_2 is not. Tokitsukaze wants to know how many different non-empty sets she can obtain by picking all the points in a strange rectangular area, where we think two sets are different if there exists at least one point in one set of them but not in the other. The first line contains a single integer n ( 1 <= q n <= q 2 x 10^5 ) -- the number of points on the plane. The i -th of the next n lines contains two integers x_i , y_i ( 1 <= q x_i, y_i <= q 10^9 ) -- the coordinates of the i -th point. All points are distinct. Print a single integer -- the number of different non-empty sets of points she can obtain. For the first example, there is exactly one set having k points for k = 1, 2, 3 , so the total number is 3 . For the second example, the numbers of sets having k points for k = 1, 2, 3 are 3 , 2 , 1 respectively, and their sum is 6 . For the third example, as the following figure shows, there are Therefore, the number of different non-empty sets in this example is 2 + 3 + 0 + 1 = 6 . '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
62606280 zhenGG D Oct. 15, 2019, 7:52 a.m. OK GNU C++11 TESTS 111 78 3379200 2200
59840734 TimeLimitExceed D Sept. 1, 2019, 7:06 a.m. OK GNU C++11 TESTS 111 93 3072000 2200
59519539 miaokehao D Aug. 26, 2019, 11:21 a.m. OK GNU C++11 TESTS 111 93 3379200 2200
58937555 luogu_bot5 D Aug. 17, 2019, 5:19 a.m. OK GNU C++11 TESTS 111 93 3379200 2200
58937509 ouqingliang D Aug. 17, 2019, 5:17 a.m. OK GNU C++11 TESTS 111 93 3379200 2200
56918061 thx-2 D July 12, 2019, 3:40 p.m. OK GNU C++11 TESTS 111 93 4812800 2200
61404633 llyc D Sept. 28, 2019, 6:36 a.m. OK GNU C++11 TESTS 111 93 8396800 2200
57741805 chenyewei_1234 D July 25, 2019, 11:41 a.m. OK GNU C++11 TESTS 111 108 5324800 2200
64590270 liankewei D Nov. 9, 2019, 2:32 p.m. OK GNU C++11 TESTS 111 109 3379200 2200
56935886 Stardust D July 12, 2019, 4:33 p.m. OK GNU C++11 TESTS 111 109 3379200 2200
56972439 Doppio D July 13, 2019, 10:51 a.m. OK GNU C++14 TESTS 111 140 6451200 2200
58932620 ataekOnOrigin D Aug. 17, 2019, 1:56 a.m. OK GNU C++14 TESTS 111 155 3174400 2200
56949722 xdu_lhz D July 13, 2019, 1:31 a.m. OK GNU C++14 TESTS 111 156 4198400 2200
57281569 wh2001_ZY D July 18, 2019, 12:57 p.m. OK GNU C++14 TESTS 111 156 15052800 2200
59877654 mayaohua2003 D Sept. 2, 2019, 1:37 a.m. OK GNU C++14 TESTS 111 171 3379200 2200
56910545 pikmike D July 12, 2019, 3:20 p.m. OK GNU C++14 TESTS 111 171 4198400 2200
58398640 HouZAJ D Aug. 6, 2019, 4:43 p.m. OK GNU C++14 TESTS 111 171 4812800 2200
57105955 lanyanzhiji D July 15, 2019, 3:18 p.m. OK GNU C++14 TESTS 111 171 4812800 2200
58423386 ctlchild D Aug. 7, 2019, 8:41 a.m. OK GNU C++14 TESTS 111 171 8089600 2200
56955800 2qbingxuan D July 13, 2019, 4:42 a.m. OK GNU C++14 TESTS 111 171 9625600 2200
57157047 TsReaper D July 16, 2019, 5:09 p.m. OK GNU C++17 TESTS 111 124 2560000 2200
56975454 Elegia D July 13, 2019, 12:04 p.m. OK GNU C++17 TESTS 111 140 3379200 2200
56989078 shizu D July 13, 2019, 5:14 p.m. OK GNU C++17 TESTS 111 155 3174400 2200
57344055 krijgertje D July 19, 2019, 9 p.m. OK GNU C++17 TESTS 111 155 3276800 2200
57103707 user02 D July 15, 2019, 2:38 p.m. OK GNU C++17 TESTS 111 155 4812800 2200
56905886 aid D July 12, 2019, 3:09 p.m. OK GNU C++17 TESTS 111 155 4812800 2200
57082716 cwhao D July 15, 2019, 7:45 a.m. OK GNU C++17 TESTS 111 155 8396800 2200
56925784 TrivialMan D July 12, 2019, 4:03 p.m. OK GNU C++17 TESTS 111 156 2457600 2200
62066103 cuiaoxiang D Oct. 7, 2019, 3:15 p.m. OK GNU C++17 TESTS 111 156 4198400 2200
56908756 JOHNKRAM D July 12, 2019, 3:16 p.m. OK GNU C++17 TESTS 111 156 4198400 2200
56933317 dalt D July 12, 2019, 4:27 p.m. OK Java 8 TESTS 111 405 0 2200
61709044 vjudge4 D Oct. 2, 2019, 11 a.m. OK Java 8 TESTS 111 420 11161600 2200
61709897 holeguma D Oct. 2, 2019, 11:12 a.m. OK Java 8 TESTS 111 467 11161600 2200
56924089 Musin D July 12, 2019, 3:58 p.m. OK Java 8 TESTS 111 545 39526400 2200
56924263 fetetriste D July 12, 2019, 3:59 p.m. OK Java 8 TESTS 111 592 5939200 2200
56927365 tanzaku D July 12, 2019, 4:08 p.m. OK Java 8 TESTS 111 654 18432000 2200
59193848 beginner1010 D Aug. 20, 2019, 11:54 p.m. OK Java 8 TESTS 111 748 54784000 2200
56904850 Egor D July 12, 2019, 3:07 p.m. OK Java 8 TESTS 111 794 14745600 2200
57759615 7dan D July 25, 2019, 5:31 p.m. OK Java 8 TESTS 111 873 52633600 2200
56922183 Taran_1407 D July 12, 2019, 3:52 p.m. OK Java 8 TESTS 111 966 36556800 2200
56922770 ymatsux D July 12, 2019, 3:54 p.m. OK Kotlin TESTS 111 1965 68710400 2200
56980589 vjudge5 D July 13, 2019, 1:45 p.m. OK MS C++ TESTS 111 217 8908800 2200
56935885 math957963 D July 12, 2019, 4:33 p.m. OK MS C++ TESTS 111 1123 27648000 2200
59592167 j2v D Aug. 27, 2019, 9:21 p.m. OK MS C++ 2017 TESTS 111 280 9625600 2200
57098277 nik1998 D July 15, 2019, 12:55 p.m. OK MS C++ 2017 TESTS 111 545 30412800 2200
57043976 wRabbits_AlMag D July 14, 2019, 3:50 p.m. OK MS C++ 2017 TESTS 111 888 20275200 2200
56935318 mandinga D July 12, 2019, 4:32 p.m. OK MS C++ 2017 TESTS 111 1372 39116800 2200
56921217 pajenegod D July 12, 2019, 3:49 p.m. OK PyPy 2 TESTS 111 779 39833600 2200
57422905 Helli.code D July 20, 2019, 7:07 p.m. OK PyPy 2 TESTS 111 982 55193600 2200
56941597 drd93 D July 12, 2019, 7:30 p.m. OK PyPy 2 TESTS 111 1622 52326400 2200
56969157 titia D July 13, 2019, 9:29 a.m. OK PyPy 3 TESTS 111 1185 69939200 2200
65552893 sansen D Nov. 22, 2019, 7:47 p.m. OK Rust TESTS 111 155 11468800 2200
56942354 EbTech D July 12, 2019, 7:46 p.m. OK Rust TESTS 111 327 13619200 2200

remove filters

Back to search problems