AtCoder Beginner Contest 014

Submission #1591122

Source codeソースコード

n = int(input())
A = [0]*1000002
for _ in range(n):
    s,e = map(int,input().split())
    A[s] += 1
    A[e+1] -= 1

for i in range(1,len(A)):
    A[i] += A[i-1] 

print(max(A))

Submission

Task問題 C - AtColor
User nameユーザ名 john_smith
Created time投稿日時
Language言語 Python3 (3.4.3)
Status状態 AC
Score得点 100
Source lengthソースコード長 188 Byte
File nameファイル名
Exec time実行時間 574 ms
Memory usageメモリ使用量 42612 KB

Test case

Set

Set name Score得点 / Max score Cases
Sample - subtask0_sample01.txt,subtask0_sample02.txt
Subtask1 30 / 30 subtask1_01.txt,subtask1_02.txt,subtask1_03.txt,subtask1_04.txt,subtask1_05.txt,subtask1_06.txt,subtask1_07.txt,subtask1_08.txt,subtask1_09.txt,subtask1_10.txt,subtask1_11.txt,subtask1_12.txt,subtask1_13.txt,subtask1_14.txt,subtask1_15.txt,subtask0_sample01.txt,subtask0_sample02.txt
Subtask2 70 / 70 subtask0_sample01.txt,subtask0_sample02.txt,subtask1_01.txt,subtask1_02.txt,subtask1_03.txt,subtask1_04.txt,subtask1_05.txt,subtask1_06.txt,subtask1_07.txt,subtask1_08.txt,subtask1_09.txt,subtask1_10.txt,subtask1_11.txt,subtask1_12.txt,subtask1_13.txt,subtask1_14.txt,subtask1_15.txt,subtask2_01.txt,subtask2_02.txt,subtask2_03.txt,subtask2_04.txt,subtask2_05.txt,subtask2_06.txt,subtask2_07.txt,subtask2_08.txt,subtask2_09.txt,subtask2_10.txt,subtask2_11.txt,subtask2_12.txt,subtask2_13.txt,subtask2_14.txt,subtask2_15.txt,subtask2_16.txt,subtask2_17.txt,subtask2_18.txt,subtask2_19.txt,subtask2_20.txt,subtask2_21.txt,subtask2_22.txt,subtask2_23.txt,subtask2_24.txt,subtask2_25.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
subtask0_sample01.txt AC 232 ms 10868 KB
subtask0_sample02.txt AC 212 ms 10868 KB
subtask1_01.txt AC 233 ms 10868 KB
subtask1_02.txt AC 215 ms 10868 KB
subtask1_03.txt AC 251 ms 42612 KB
subtask1_04.txt AC 248 ms 42484 KB
subtask1_05.txt AC 264 ms 42612 KB
subtask1_06.txt AC 248 ms 42484 KB
subtask1_07.txt AC 219 ms 10868 KB
subtask1_08.txt AC 244 ms 38260 KB
subtask1_09.txt AC 251 ms 38388 KB
subtask1_10.txt AC 245 ms 38132 KB
subtask1_11.txt AC 245 ms 38388 KB
subtask1_12.txt AC 244 ms 38004 KB
subtask1_13.txt AC 258 ms 38260 KB
subtask1_14.txt AC 259 ms 37748 KB
subtask1_15.txt AC 244 ms 38260 KB
subtask2_01.txt AC 533 ms 42612 KB
subtask2_02.txt AC 541 ms 42612 KB
subtask2_03.txt AC 532 ms 42484 KB
subtask2_04.txt AC 541 ms 42484 KB
subtask2_05.txt AC 524 ms 10868 KB
subtask2_06.txt AC 562 ms 42484 KB
subtask2_07.txt AC 554 ms 42484 KB
subtask2_08.txt AC 566 ms 42484 KB
subtask2_09.txt AC 550 ms 42484 KB
subtask2_10.txt AC 550 ms 42484 KB
subtask2_11.txt AC 566 ms 42484 KB
subtask2_12.txt AC 555 ms 42484 KB
subtask2_13.txt AC 542 ms 42484 KB
subtask2_14.txt AC 538 ms 42484 KB
subtask2_15.txt AC 568 ms 42484 KB
subtask2_16.txt AC 540 ms 42484 KB
subtask2_17.txt AC 574 ms 42484 KB
subtask2_18.txt AC 545 ms 42484 KB
subtask2_19.txt AC 561 ms 42484 KB
subtask2_20.txt AC 562 ms 42484 KB
subtask2_21.txt AC 556 ms 42484 KB
subtask2_22.txt AC 550 ms 42484 KB
subtask2_23.txt AC 543 ms 42484 KB
subtask2_24.txt AC 558 ms 42484 KB
subtask2_25.txt AC 544 ms 42484 KB