Submission #1304365
Source Code Expand
def main(): N=int(input()) a=[] for i in range(N): a.append(list(map(int,input().split("-")))) a[i][0]=(a[i][0]//5)*5 a[i][1]=((a[i][1]+4)//5)*5 a.sort() a.append([9999,9999]) merged=[] start = a[0][0] end = a[0][1] for i in range(N+1): if a[i][0] <= end: end = max(end,a[i][1]) else: merged.append((start,end)) start = a[i][0] end = a[i][1] for time in merged: print("%4d-%4d"%(time[0],time[1])) return 0 if __name__=='__main__': main()
Submission Info
Submission Time | |
---|---|
Task | D - 感雨時刻の整理 |
User | kurarrr |
Language | PyPy3 (2.4.0) |
Score | 0 |
Code Size | 616 Byte |
Status | WA |
Exec Time | 442 ms |
Memory | 50520 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 | 169 ms | 38384 KB |
00_sample_02.txt | WA | 169 ms | 38256 KB |
00_sample_03.txt | AC | 170 ms | 38256 KB |
cho_cho_chokudai.txt | WA | 397 ms | 50520 KB |
chokudai_ga_cho.txt | WA | 388 ms | 48088 KB |
test_01.txt | WA | 177 ms | 38256 KB |
test_02.txt | WA | 179 ms | 38256 KB |
test_03.txt | WA | 178 ms | 38256 KB |
test_04.txt | WA | 178 ms | 38256 KB |
test_05.txt | WA | 177 ms | 38256 KB |
test_06.txt | WA | 175 ms | 38256 KB |
test_07.txt | WA | 175 ms | 38256 KB |
test_08.txt | WA | 171 ms | 38256 KB |
test_09.txt | WA | 197 ms | 38768 KB |
test_10.txt | WA | 199 ms | 38768 KB |
test_11.txt | WA | 196 ms | 38768 KB |
test_12.txt | WA | 187 ms | 38512 KB |
test_13.txt | WA | 178 ms | 38256 KB |
test_14.txt | WA | 194 ms | 38768 KB |
test_15.txt | WA | 196 ms | 38896 KB |
test_16.txt | WA | 177 ms | 38256 KB |
test_17.txt | WA | 192 ms | 38640 KB |
test_18.txt | WA | 182 ms | 38256 KB |
test_19.txt | WA | 188 ms | 38512 KB |
test_20.txt | WA | 193 ms | 38640 KB |
test_21.txt | WA | 426 ms | 48088 KB |
test_22.txt | WA | 431 ms | 48088 KB |
test_23.txt | WA | 442 ms | 48088 KB |
test_24.txt | WA | 428 ms | 48088 KB |
test_25.txt | WA | 424 ms | 48088 KB |
test_26.txt | WA | 418 ms | 48216 KB |
test_27.txt | WA | 376 ms | 48088 KB |
test_28.txt | WA | 416 ms | 48088 KB |
test_29.txt | WA | 172 ms | 38256 KB |
test_30.txt | WA | 176 ms | 38256 KB |
test_31.txt | WA | 274 ms | 44248 KB |
test_32.txt | WA | 172 ms | 38256 KB |
test_33.txt | WA | 360 ms | 46424 KB |
test_34.txt | WA | 172 ms | 38256 KB |
test_35.txt | WA | 184 ms | 38256 KB |
test_36.txt | WA | 441 ms | 48088 KB |
test_37.txt | WA | 420 ms | 48088 KB |
test_38.txt | WA | 411 ms | 48216 KB |
test_39.txt | WA | 414 ms | 48088 KB |
test_40.txt | WA | 423 ms | 48088 KB |
test_41.txt | WA | 369 ms | 48088 KB |
test_42.txt | WA | 404 ms | 48088 KB |
test_43.txt | WA | 364 ms | 48088 KB |