AtCoder Beginner Contest 014

Submission #1591114

Source codeソースコード

n = int(input())
A = [0]*1000001
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(A.index(max(A))+1)

Submission

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

Test case

Set

Set name Score得点 / Max score Cases
Sample - subtask0_sample01.txt,subtask0_sample02.txt
Subtask1 0 / 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 0 / 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 214 ms 10868 KB
subtask0_sample02.txt RE
subtask1_01.txt WA
subtask1_02.txt WA
subtask1_03.txt RE
subtask1_04.txt RE
subtask1_05.txt RE
subtask1_06.txt RE
subtask1_07.txt AC 237 ms 10868 KB
subtask1_08.txt WA
subtask1_09.txt WA
subtask1_10.txt WA
subtask1_11.txt WA
subtask1_12.txt WA
subtask1_13.txt WA
subtask1_14.txt WA
subtask1_15.txt WA
subtask2_01.txt RE
subtask2_02.txt RE
subtask2_03.txt RE
subtask2_04.txt RE
subtask2_05.txt AC 527 ms 10868 KB
subtask2_06.txt RE
subtask2_07.txt WA
subtask2_08.txt WA
subtask2_09.txt WA
subtask2_10.txt RE
subtask2_11.txt WA
subtask2_12.txt WA
subtask2_13.txt WA
subtask2_14.txt RE
subtask2_15.txt WA
subtask2_16.txt WA
subtask2_17.txt WA
subtask2_18.txt WA
subtask2_19.txt WA
subtask2_20.txt WA
subtask2_21.txt WA
subtask2_22.txt WA
subtask2_23.txt WA
subtask2_24.txt WA
subtask2_25.txt WA