Submission #477528
Source Code Expand
#Atcoder 1-D import math #keyboard input N = int(input()) #timeline array, default by False timeline = [0] * 481 temp = 0 addr_st = 0 addr_en = 0 for n in range(0,N): start, end = map(int, input().split("-")) start = math.floor(start/5) end = math.ceil(end/5) timeline[start] += 1 timeline[end] -= 1 for n in range(0, 481): if timeline[n] > 0 : temp += timeline[n] if addr_st == 0 : addr_st = n if timeline[n] < 0 : temp += timeline[n] if temp == 0: addr_en = n print ("%04d-%04d" % (addr_st*5, addr_en*5 )) addr_st = 0
Submission Info
Submission Time | |
---|---|
Task | D - 感雨時刻の整理 |
User | khamouy |
Language | Python (3.2.3) |
Score | 0 |
Code Size | 677 Byte |
Status | WA |
Exec Time | 463 ms |
Memory | 8536 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 | 183 ms | 8488 KB |
00_sample_02.txt | AC | 143 ms | 8492 KB |
00_sample_03.txt | AC | 141 ms | 8368 KB |
cho_cho_chokudai.txt | WA | 438 ms | 8536 KB |
chokudai_ga_cho.txt | WA | 455 ms | 8492 KB |
test_01.txt | AC | 146 ms | 8488 KB |
test_02.txt | AC | 141 ms | 8496 KB |
test_03.txt | AC | 146 ms | 8368 KB |
test_04.txt | AC | 142 ms | 8372 KB |
test_05.txt | AC | 141 ms | 8488 KB |
test_06.txt | WA | 145 ms | 8484 KB |
test_07.txt | WA | 144 ms | 8492 KB |
test_08.txt | WA | 145 ms | 8492 KB |
test_09.txt | WA | 148 ms | 8496 KB |
test_10.txt | WA | 155 ms | 8480 KB |
test_11.txt | AC | 146 ms | 8484 KB |
test_12.txt | WA | 145 ms | 8484 KB |
test_13.txt | WA | 142 ms | 8368 KB |
test_14.txt | WA | 146 ms | 8484 KB |
test_15.txt | WA | 148 ms | 8496 KB |
test_16.txt | AC | 144 ms | 8488 KB |
test_17.txt | AC | 145 ms | 8496 KB |
test_18.txt | AC | 146 ms | 8448 KB |
test_19.txt | AC | 145 ms | 8484 KB |
test_20.txt | AC | 145 ms | 8412 KB |
test_21.txt | WA | 450 ms | 8480 KB |
test_22.txt | WA | 456 ms | 8496 KB |
test_23.txt | WA | 444 ms | 8400 KB |
test_24.txt | WA | 462 ms | 8488 KB |
test_25.txt | WA | 441 ms | 8368 KB |
test_26.txt | WA | 442 ms | 8484 KB |
test_27.txt | AC | 458 ms | 8484 KB |
test_28.txt | WA | 442 ms | 8476 KB |
test_29.txt | AC | 141 ms | 8496 KB |
test_30.txt | WA | 144 ms | 8368 KB |
test_31.txt | WA | 187 ms | 8428 KB |
test_32.txt | AC | 151 ms | 8484 KB |
test_33.txt | WA | 353 ms | 8524 KB |
test_34.txt | AC | 143 ms | 8492 KB |
test_35.txt | WA | 148 ms | 8492 KB |
test_36.txt | AC | 446 ms | 8368 KB |
test_37.txt | WA | 463 ms | 8436 KB |
test_38.txt | WA | 441 ms | 8368 KB |
test_39.txt | AC | 458 ms | 8480 KB |
test_40.txt | WA | 451 ms | 8484 KB |
test_41.txt | WA | 447 ms | 8492 KB |
test_42.txt | WA | 453 ms | 8364 KB |
test_43.txt | WA | 452 ms | 8432 KB |