結果
| 問題 | No.2710 How many more? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 14:50:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 82,208 KB |
| 実行使用メモリ | 88,412 KB |
| 最終ジャッジ日時 | 2024-09-30 20:00:45 |
| 合計ジャッジ時間 | 2,897 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 17 |
ソースコード
import bisect n, q = map(int,input().split()) A = [int(i)*-1 for i in input().split()] R = sorted(A) for i in range(q): x,y=map(int, input().split()) ans=bisect.bisect_right(R,A[x-1])-bisect.bisect_left(R,A[y-1]) if A[x-1] >= A[y-1]: print(0) else: print(-1*total)