AtCoder Beginner Contest 014

Submission #6895545

Source codeソースコード

n=int(input())
color=[0 for i in range(10**6+2)]
for i in range(n):
	x,y=map(int,input().split())
	color[x]+=1
	color[y+1]-=1
for i in range(10**6+1):
	color[i+1]+=color[i]
print(max(color))

Submission

Task問題 C - AtColor
User nameユーザ名 sangonana
Created time投稿日時
Language言語 Python3 (3.4.3)
Status状態 AC
Score得点 100
Source lengthソースコード長 202 Byte
File nameファイル名
Exec time実行時間 619 ms
Memory usageメモリ使用量 42664 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 254 ms 10904 KB
subtask0_sample02.txt AC 248 ms 10904 KB
subtask1_01.txt AC 251 ms 10904 KB
subtask1_02.txt AC 261 ms 10904 KB
subtask1_03.txt AC 286 ms 42664 KB
subtask1_04.txt AC 284 ms 42636 KB
subtask1_05.txt AC 283 ms 42640 KB
subtask1_06.txt AC 310 ms 42636 KB
subtask1_07.txt AC 257 ms 10904 KB
subtask1_08.txt AC 294 ms 38416 KB
subtask1_09.txt AC 292 ms 38544 KB
subtask1_10.txt AC 287 ms 38312 KB
subtask1_11.txt AC 280 ms 38568 KB
subtask1_12.txt AC 285 ms 38184 KB
subtask1_13.txt AC 282 ms 38352 KB
subtask1_14.txt AC 280 ms 37776 KB
subtask1_15.txt AC 281 ms 38288 KB
subtask2_01.txt AC 567 ms 42640 KB
subtask2_02.txt AC 576 ms 42640 KB
subtask2_03.txt AC 569 ms 42640 KB
subtask2_04.txt AC 575 ms 42664 KB
subtask2_05.txt AC 536 ms 10904 KB
subtask2_06.txt AC 595 ms 42536 KB
subtask2_07.txt AC 619 ms 42536 KB
subtask2_08.txt AC 585 ms 42512 KB
subtask2_09.txt AC 585 ms 42536 KB
subtask2_10.txt AC 597 ms 42536 KB
subtask2_11.txt AC 586 ms 42512 KB
subtask2_12.txt AC 595 ms 42576 KB
subtask2_13.txt AC 578 ms 42536 KB
subtask2_14.txt AC 563 ms 42536 KB
subtask2_15.txt AC 583 ms 42528 KB
subtask2_16.txt AC 595 ms 42528 KB
subtask2_17.txt AC 601 ms 42512 KB
subtask2_18.txt AC 599 ms 42528 KB
subtask2_19.txt AC 619 ms 42536 KB
subtask2_20.txt AC 574 ms 42536 KB
subtask2_21.txt AC 587 ms 42512 KB
subtask2_22.txt AC 587 ms 42572 KB
subtask2_23.txt AC 577 ms 42528 KB
subtask2_24.txt AC 581 ms 42536 KB
subtask2_25.txt AC 597 ms 42536 KB