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 |
|---|---|---|---|---|---|---|
| 100 | Unknown Language Round 3 | FINISHED | False | 10800 | 464400023 | July 30, 2011, 6 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 76 ) | J | Interval Coloring | PROGRAMMING | *special greedy math | 2400 |
Aryo has got a lot of intervals for his 2418 th birthday. He is really excited and decided to color all these intervals with some colors. He has a simple rule for himself. He calls a coloring nice if there exists no three intervals a , b and c such that the following conditions are satisfied simultaneously: a , b and c are colored with the same color, , , . Moreover he found out that for every intervals i and j , there is at least one point in i which isn't in j . Given some set of intervals. You have to find the minimum number k , such that Aryo can find a nice coloring with k colors. The first line contains a single integer n ( 1 ≤ n ≤ 10 3 ), number of intervals. The following n lines contain a interval description each. Each interval is described by two numbers s i , e i which are the start and end points of it ( - 10 5 < s i , e i < 10 5 , s i ≤ e i ). See samples for clarity. A square bracket stands for including of the corresponding endpoint, while a round bracket stands for excluding. Write a single integer k — the minimum number of colors needed for a nice coloring. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 45751227 | yongwhan | J | Nov. 15, 2018, 1:20 a.m. | OK | Pike | TESTS | 12 | 62 | 102400 | 2400 | |
| 14192839 | 130705009 | J | Nov. 11, 2015, 6:10 a.m. | OK | Pike | TESTS | 12 | 77 | 102400 | 2400 | |
| 35836329 | _____i_____ | J | March 2, 2018, 12:53 p.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 | |
| 35836326 | ______u______ | J | March 2, 2018, 12:53 p.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 | |
| 35836325 | _____k_____ | J | March 2, 2018, 12:53 p.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 | |
| 35836324 | ______n______ | J | March 2, 2018, 12:53 p.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 | |
| 35830582 | ______h______ | J | March 2, 2018, 9:21 a.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 | |
| 35830547 | ______k______ | J | March 2, 2018, 9:21 a.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 | |
| 35830521 | ______i______ | J | March 2, 2018, 9:20 a.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 | |
| 35829152 | ______M______ | J | March 2, 2018, 8:22 a.m. | OK | Pike | TESTS | 12 | 77 | 6860800 | 2400 |
Back to search problems