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 |
---|---|---|---|---|---|---|
1000 | Educational Codeforces Round 46 (Rated for Div. 2) | FINISHED | False | 7200 | 201713099 | June 27, 2018, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 6829 ) | C | Covered Points Count | PROGRAMMING | data structures implementation sortings | 1700 |
B'You are given n segments on a coordinate line; each endpoint of every segment has integer coordinates. Some segments can degenerate to points. Segments can intersect with each other, be nested in each other or even coincide. Your task is the following: for every k in [1..n] , calculate the number of points with integer coordinates such that the number of segments that cover these points equals k . A segment with endpoints l_i and r_i covers point x if and only if l_i <= x <= r_i . The first line of the input contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of segments. The next n lines contain segments. The i -th line contains a pair of integers l_i, r_i ( 0 <= l_i <= r_i <= 10^{18} ) -- the endpoints of the i -th segment. Print n space separated integers cnt_1, cnt_2, ... , cnt_n , where cnt_i is equal to the number of points such that the number of segments that cover these points equals to i . The picture describing the first example: Points with coordinates [0, 4, 5, 6, 7, 8] are covered by one segment, points [1, 2] are covered by two segments and point [3] is covered by three segments. The picture describing the second example: Points [1, 4, 5, 6, 7] are covered by one segment, points [2, 3] are covered by two segments and there are no points covered by three segments. '... |
60288 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
39711081 | ruban | C | June 27, 2018, 3:14 p.m. | OK | Delphi | TESTS | 18 | 779 | 78848000 | 1700 | |
39716550 | Minh_love_Hong_Phuc | C | June 27, 2018, 3:55 p.m. | OK | FPC | TESTS | 18 | 592 | 70553600 | 1700 | |
39711879 | l1ll5 | C | June 27, 2018, 3:19 p.m. | OK | GNU C++ | TESTS | 18 | 139 | 39321600 | 1700 | |
39712711 | 65536 | C | June 27, 2018, 3:25 p.m. | OK | GNU C++ | TESTS | 18 | 140 | 23347200 | 1700 | |
39709004 | Dedicatus545 | C | June 27, 2018, 3:01 p.m. | OK | GNU C++ | TESTS | 18 | 187 | 9625600 | 1700 | |
39715978 | stone1page | C | June 27, 2018, 3:50 p.m. | OK | GNU C++ | TESTS | 18 | 187 | 9932800 | 1700 | |
39708854 | VisJiao | C | June 27, 2018, 3 p.m. | OK | GNU C++ | TESTS | 18 | 202 | 7884800 | 1700 | |
39712842 | gyjian | C | June 27, 2018, 3:26 p.m. | OK | GNU C++ | TESTS | 18 | 218 | 14438400 | 1700 | |
39709629 | zhouzhendong | C | June 27, 2018, 3:05 p.m. | OK | GNU C++ | TESTS | 18 | 218 | 36044800 | 1700 | |
39712381 | Position | C | June 27, 2018, 3:23 p.m. | OK | GNU C++ | TESTS | 18 | 234 | 22425600 | 1700 | |
39720428 | cqssssss | C | June 27, 2018, 4:28 p.m. | OK | GNU C++ | TESTS | 18 | 249 | 4812800 | 1700 | |
39718011 | AAYES | C | June 27, 2018, 4:08 p.m. | OK | GNU C++ | TESTS | 18 | 249 | 7987200 | 1700 | |
39715714 | oldjang | C | June 27, 2018, 3:48 p.m. | OK | GNU C++11 | TESTS | 18 | 218 | 43315200 | 1700 | |
39710718 | Medo. | C | June 27, 2018, 3:12 p.m. | OK | GNU C++11 | TESTS | 18 | 234 | 15052800 | 1700 | |
39708773 | Zyyy | C | June 27, 2018, 3 p.m. | OK | GNU C++11 | TESTS | 18 | 234 | 16076800 | 1700 | |
39709653 | cogito_233 | C | June 27, 2018, 3:05 p.m. | OK | GNU C++11 | TESTS | 18 | 234 | 40038400 | 1700 | |
39712915 | zhushaoben | C | June 27, 2018, 3:26 p.m. | OK | GNU C++11 | TESTS | 18 | 248 | 7987200 | 1700 | |
39713756 | honya121 | C | June 27, 2018, 3:33 p.m. | OK | GNU C++11 | TESTS | 18 | 248 | 9420800 | 1700 | |
39708280 | nhho | C | June 27, 2018, 2:57 p.m. | OK | GNU C++11 | TESTS | 18 | 248 | 14233600 | 1700 | |
39713558 | Lius | C | June 27, 2018, 3:31 p.m. | OK | GNU C++11 | TESTS | 18 | 249 | 4812800 | 1700 | |
39720733 | xiao_chou | C | June 27, 2018, 4:30 p.m. | OK | GNU C++11 | TESTS | 18 | 249 | 7782400 | 1700 | |
39716100 | xz153531 | C | June 27, 2018, 3:51 p.m. | OK | GNU C++11 | TESTS | 18 | 249 | 7987200 | 1700 | |
39712280 | natsugiri | C | June 27, 2018, 3:22 p.m. | OK | GNU C++14 | TESTS | 18 | 249 | 7987200 | 1700 | |
39718279 | TheNextJojo | C | June 27, 2018, 4:10 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 4812800 | 1700 | |
39712402 | dasper | C | June 27, 2018, 3:23 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 4812800 | 1700 | |
39717434 | HiamKing | C | June 27, 2018, 4:03 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 7987200 | 1700 | |
39716092 | mikigrubic | C | June 27, 2018, 3:51 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 7987200 | 1700 | |
39712642 | AlphaS | C | June 27, 2018, 3:25 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 7987200 | 1700 | |
39712412 | forelax | C | June 27, 2018, 3:23 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 7987200 | 1700 | |
39711034 | iaNTU | C | June 27, 2018, 3:14 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 9523200 | 1700 | |
39710700 | momoan | C | June 27, 2018, 3:12 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 12697600 | 1700 | |
39710981 | Anachor | C | June 27, 2018, 3:13 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 14233600 | 1700 |
Back to search problems