結果
| 問題 |
No.2961 Shiny Monster Master
|
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2024-11-16 15:33:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 166 ms / 1,777 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 392 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 90,240 KB |
| 最終ジャッジ日時 | 2024-11-16 15:33:31 |
| 合計ジャッジ時間 | 11,559 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 77 |
ソースコード
R,N=map(int,input().split()) A=list(map(int,input().split())) A.sort() from bisect import bisect_right def f(x): ans=N*(x//R) pos=x%R ans+=bisect_right(A,pos) return ans Q=int(input()) for _ in range(Q): l,r=map(int,input().split()) p=f(r)-f(l-1) print(p)
ゼット