Submission #315990
Source Code Expand
def floor(n): # 切り捨て return int(n // 5) * 5 def ceil(n): # 切り上げ if n % 5 != 0: return int((n // 5)+1) * 5 return n def trans_time(n): # 60分の場合に変換 s = list(str(n)) if s[2:4] == ['6', '0']: s[2:4] = ['0', '0'] s[0:2] = list(str(int(s[0])*10 + int(s[1]) + 1)) n = int(s[0] + s[1] + s[2] + s[3]) return n def my_round(n): # 丸める return [floor(n[0]), ceil(n[1])] N = int(input()) input_data = [] for i in range(N): tmp = list(map(trans_time, my_round(list(map(int, (input().split('-'))))))) if not (tmp in input_data): input_data.append(tmp) bool_data = [False for i in range(2400)] for i in range(len(input_data)): start, end = input_data[i] for j in range(start, end): bool_data[j] = True start = -1 for i in range(len(bool_data)): if start == -1 and bool_data[i]: start = i if start != -1: if not bool_data[i] or i == len(bool_data)-1: print(str(start).zfill(4) + "-" + str(i).zfill(4)) start = -1
Submission Info
Submission Time | |
---|---|
Task | D - 感雨時刻の整理 |
User | j12013 |
Language | Python (3.2.3) |
Score | 0 |
Code Size | 1146 Byte |
Status | WA |
Exec Time | 2035 ms |
Memory | 10012 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 | AC | 120 ms | 8492 KB |
00_sample_02.txt | WA | 118 ms | 8360 KB |
00_sample_03.txt | AC | 117 ms | 8408 KB |
cho_cho_chokudai.txt | WA | 840 ms | 8528 KB |
chokudai_ga_cho.txt | TLE | 2034 ms | 10012 KB |
test_01.txt | AC | 124 ms | 8488 KB |
test_02.txt | AC | 122 ms | 8368 KB |
test_03.txt | AC | 122 ms | 8412 KB |
test_04.txt | AC | 121 ms | 8420 KB |
test_05.txt | AC | 125 ms | 8368 KB |
test_06.txt | WA | 174 ms | 8360 KB |
test_07.txt | WA | 138 ms | 8368 KB |
test_08.txt | WA | 140 ms | 8492 KB |
test_09.txt | WA | 132 ms | 8484 KB |
test_10.txt | WA | 138 ms | 8484 KB |
test_11.txt | AC | 128 ms | 8488 KB |
test_12.txt | WA | 167 ms | 8412 KB |
test_13.txt | WA | 129 ms | 8496 KB |
test_14.txt | WA | 187 ms | 8488 KB |
test_15.txt | WA | 194 ms | 8368 KB |
test_16.txt | WA | 131 ms | 8368 KB |
test_17.txt | WA | 160 ms | 8408 KB |
test_18.txt | WA | 128 ms | 8368 KB |
test_19.txt | WA | 155 ms | 8368 KB |
test_20.txt | WA | 140 ms | 8364 KB |
test_21.txt | TLE | 2035 ms | 9756 KB |
test_22.txt | TLE | 2035 ms | 9880 KB |
test_23.txt | TLE | 2035 ms | 9784 KB |
test_24.txt | TLE | 2035 ms | 9824 KB |
test_25.txt | TLE | 2035 ms | 9884 KB |
test_26.txt | WA | 937 ms | 8480 KB |
test_27.txt | AC | 669 ms | 8464 KB |
test_28.txt | WA | 1050 ms | 8548 KB |
test_29.txt | AC | 124 ms | 8364 KB |
test_30.txt | WA | 119 ms | 8368 KB |
test_31.txt | WA | 240 ms | 8476 KB |
test_32.txt | AC | 118 ms | 8368 KB |
test_33.txt | WA | 644 ms | 8484 KB |
test_34.txt | AC | 118 ms | 8364 KB |
test_35.txt | AC | 128 ms | 8368 KB |
test_36.txt | TLE | 2034 ms | 10012 KB |
test_37.txt | WA | 899 ms | 8484 KB |
test_38.txt | WA | 936 ms | 8484 KB |
test_39.txt | AC | 1368 ms | 8612 KB |
test_40.txt | WA | 1343 ms | 8740 KB |
test_41.txt | WA | 802 ms | 8484 KB |
test_42.txt | WA | 828 ms | 8480 KB |
test_43.txt | WA | 792 ms | 8484 KB |