Submission #473694
Source Code Expand
#Atcoder 1-D import math #keyboard input N = int(input()) #timeline array, default by False timeline = [False] * 480 start = [None] * (N) end = [None] * (N) print (len(start)) for n in range(0,N): start[n], end[n] = map(int, input().split("-")) start[n] = math.floor(start[n]/5) end[n] = math.ceil(end[n]/5) #print ("start[",n,"]=",start[n]) #print ("end[",n,"]=",end[n]) #turn data to True according to The rain fall data for m in range(0, N): for n in range(start[m], end[m]+1): timeline[n] = True #False,True = start_time; True,False = end_time for n in range(0, 480-1): if timeline[n] == False and timeline[n+1] == True: print((n+1) * 5, end="") print("-", end="") if timeline[n] == True and timeline[n+1] == False: print(n * 5)
Submission Info
Submission Time | |
---|---|
Task | D - 感雨時刻の整理 |
User | khamouy |
Language | Python (3.2.3) |
Score | 0 |
Code Size | 835 Byte |
Status | RE |
Exec Time | 2037 ms |
Memory | 10680 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 | 178 ms | 8244 KB |
00_sample_02.txt | RE | 137 ms | 8360 KB |
00_sample_03.txt | WA | 137 ms | 8372 KB |
cho_cho_chokudai.txt | TLE | 2037 ms | 9756 KB |
chokudai_ga_cho.txt | RE | 482 ms | 10652 KB |
test_01.txt | WA | 142 ms | 8244 KB |
test_02.txt | WA | 148 ms | 8244 KB |
test_03.txt | WA | 150 ms | 8356 KB |
test_04.txt | WA | 142 ms | 8240 KB |
test_05.txt | WA | 141 ms | 8372 KB |
test_06.txt | RE | 143 ms | 8360 KB |
test_07.txt | RE | 140 ms | 8368 KB |
test_08.txt | RE | 140 ms | 8376 KB |
test_09.txt | RE | 144 ms | 8360 KB |
test_10.txt | RE | 147 ms | 8364 KB |
test_11.txt | WA | 148 ms | 8360 KB |
test_12.txt | RE | 144 ms | 8360 KB |
test_13.txt | RE | 140 ms | 8372 KB |
test_14.txt | RE | 146 ms | 8360 KB |
test_15.txt | RE | 147 ms | 8288 KB |
test_16.txt | RE | 141 ms | 8364 KB |
test_17.txt | RE | 146 ms | 8360 KB |
test_18.txt | RE | 144 ms | 8344 KB |
test_19.txt | RE | 145 ms | 8360 KB |
test_20.txt | RE | 148 ms | 8364 KB |
test_21.txt | RE | 448 ms | 10656 KB |
test_22.txt | RE | 447 ms | 10656 KB |
test_23.txt | RE | 444 ms | 10656 KB |
test_24.txt | RE | 443 ms | 10656 KB |
test_25.txt | RE | 442 ms | 10668 KB |
test_26.txt | WA | 472 ms | 10652 KB |
test_27.txt | WA | 489 ms | 10664 KB |
test_28.txt | WA | 493 ms | 10664 KB |
test_29.txt | WA | 142 ms | 8244 KB |
test_30.txt | WA | 141 ms | 8368 KB |
test_31.txt | WA | 194 ms | 8608 KB |
test_32.txt | WA | 140 ms | 8360 KB |
test_33.txt | WA | 365 ms | 9864 KB |
test_34.txt | WA | 142 ms | 8244 KB |
test_35.txt | WA | 146 ms | 8364 KB |
test_36.txt | WA | 964 ms | 10660 KB |
test_37.txt | WA | 491 ms | 10612 KB |
test_38.txt | WA | 497 ms | 10680 KB |
test_39.txt | WA | 522 ms | 10660 KB |
test_40.txt | WA | 506 ms | 10660 KB |
test_41.txt | RE | 451 ms | 10656 KB |
test_42.txt | RE | 466 ms | 10580 KB |
test_43.txt | RE | 1474 ms | 10676 KB |