結果

問題 No.2961 Shiny Monster Master
ユーザー ねしん
提出日時 2024-06-18 21:49:29
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 214 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 192,916 KB
最終ジャッジ日時 2024-11-16 15:02:05
合計ジャッジ時間 124,274 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36 TLE * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

R,N=list(map(int,input().split()))
A=list(map(int,input().split()))
A=set(A)
Q=int(input())
for i in range(Q):
	l,r=list(map(int,input().split()))
	cnt=0
	for b in range(l,r+1):
		if b%R in A:
			cnt+=1
	print(cnt)
0