結果

問題 No.2154 あさかつの参加人数
ユーザー ch1channnch1channn
提出日時 2022-12-12 10:43:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 388 ms / 2,000 ms
コード長 386 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 84,864 KB
最終ジャッジ日時 2024-04-24 02:38:16
合計ジャッジ時間 11,361 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 370 ms
84,608 KB
testcase_01 AC 350 ms
84,864 KB
testcase_02 AC 360 ms
84,480 KB
testcase_03 AC 388 ms
84,480 KB
testcase_04 AC 372 ms
84,480 KB
testcase_05 AC 213 ms
76,416 KB
testcase_06 AC 295 ms
79,744 KB
testcase_07 AC 210 ms
81,408 KB
testcase_08 AC 202 ms
82,560 KB
testcase_09 AC 104 ms
80,384 KB
testcase_10 AC 191 ms
80,896 KB
testcase_11 AC 332 ms
83,840 KB
testcase_12 AC 263 ms
81,408 KB
testcase_13 AC 190 ms
78,208 KB
testcase_14 AC 298 ms
80,640 KB
testcase_15 AC 196 ms
82,176 KB
testcase_16 AC 264 ms
81,536 KB
testcase_17 AC 314 ms
80,640 KB
testcase_18 AC 314 ms
82,048 KB
testcase_19 AC 88 ms
76,928 KB
testcase_20 AC 266 ms
82,176 KB
testcase_21 AC 98 ms
80,128 KB
testcase_22 AC 125 ms
83,712 KB
testcase_23 AC 299 ms
82,432 KB
testcase_24 AC 351 ms
83,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
	
n,m = map(int,input().split())
L = [0]*(n+1)

for i in range(m):
	a,b = map(int,input().split())
	a = n-a
	b = n-b
	L[a] += 1
	L[b+1] -= 1
	
c = 0
for i in L[:n]:
	c += i
	print(c)
0