Submission #692228
Source Code Expand
N = int(input()) times = [] for i in range(N): start, end = map(int, input().split('-')) start = start - start % 5 if(start%100 == 60): start = start + 100 - start%100 if(end % 5 != 0): end = end + (5 - end % 5) if(end%100 == 60): end = end + 100 - end%100 time = [start, end] times.append(time) times.sort(key=lambda x: x[0]) times.append([9999, 9999]) i = 0 print("") while(i < len(times) - 1): print('#',times) if(times[i][1] >= times[i + 1][0]): times[i:i + 2] = [ [times[i][0], max(times[i][1], times[i + 1][1])] ] i = 0 continue i += 1 for time in times[:-1]: print("{0:04d}-{1:04d}".format(time[0],time[1]))
Submission Info
Submission Time | |
---|---|
Task | D - 感雨時刻の整理 |
User | Ka8 |
Language | Python (3.2.3) |
Score | 0 |
Code Size | 749 Byte |
Status | TLE |
Exec Time | 2042 ms |
Memory | 20800 KB |
Judge Result
Set Name | all | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, cho_cho_chokudai.txt, chokudai_ga_cho.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt, test_31.txt, test_32.txt, test_33.txt, test_34.txt, test_35.txt, test_36.txt, test_37.txt, test_38.txt, test_39.txt, test_40.txt, test_41.txt, test_42.txt, test_43.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | WA | 156 ms | 8360 KB |
00_sample_02.txt | WA | 117 ms | 8364 KB |
00_sample_03.txt | WA | 118 ms | 8348 KB |
cho_cho_chokudai.txt | TLE | 2040 ms | 18988 KB |
chokudai_ga_cho.txt | TLE | 2040 ms | 20292 KB |
test_01.txt | WA | 151 ms | 8268 KB |
test_02.txt | WA | 150 ms | 8368 KB |
test_03.txt | WA | 148 ms | 8360 KB |
test_04.txt | WA | 146 ms | 8360 KB |
test_05.txt | WA | 149 ms | 8360 KB |
test_06.txt | WA | 160 ms | 8368 KB |
test_07.txt | WA | 139 ms | 8348 KB |
test_08.txt | WA | 130 ms | 8360 KB |
test_09.txt | WA | 379 ms | 8360 KB |
test_10.txt | WA | 409 ms | 8360 KB |
test_11.txt | WA | 598 ms | 8364 KB |
test_12.txt | WA | 241 ms | 8364 KB |
test_13.txt | WA | 158 ms | 8340 KB |
test_14.txt | WA | 344 ms | 8404 KB |
test_15.txt | WA | 429 ms | 8360 KB |
test_16.txt | WA | 169 ms | 8364 KB |
test_17.txt | WA | 339 ms | 8360 KB |
test_18.txt | WA | 167 ms | 8352 KB |
test_19.txt | WA | 254 ms | 8360 KB |
test_20.txt | WA | 300 ms | 8360 KB |
test_21.txt | TLE | 2042 ms | 20800 KB |
test_22.txt | TLE | 2040 ms | 20768 KB |
test_23.txt | TLE | 2040 ms | 20488 KB |
test_24.txt | TLE | 2039 ms | 20756 KB |
test_25.txt | TLE | 2040 ms | 20668 KB |
test_26.txt | TLE | 2037 ms | 20256 KB |
test_27.txt | TLE | 2040 ms | 20392 KB |
test_28.txt | TLE | 2040 ms | 20484 KB |
test_29.txt | WA | 121 ms | 8364 KB |
test_30.txt | WA | 133 ms | 8360 KB |
test_31.txt | TLE | 2039 ms | 10088 KB |
test_32.txt | WA | 128 ms | 8364 KB |
test_33.txt | TLE | 2039 ms | 16368 KB |
test_34.txt | WA | 126 ms | 8292 KB |
test_35.txt | WA | 331 ms | 8292 KB |
test_36.txt | TLE | 2038 ms | 20644 KB |
test_37.txt | TLE | 2038 ms | 20236 KB |
test_38.txt | TLE | 2040 ms | 20288 KB |
test_39.txt | TLE | 2040 ms | 20612 KB |
test_40.txt | TLE | 2040 ms | 20160 KB |
test_41.txt | TLE | 2039 ms | 20204 KB |
test_42.txt | TLE | 2039 ms | 20348 KB |
test_43.txt | TLE | 2041 ms | 20368 KB |