結果
| 問題 | No.2710 How many more? |
| コンテスト | |
| ユーザー |
𖧱𖦸𖥩𖥣𖥩𖥣
|
| 提出日時 | 2024-04-30 12:47:13 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 239 bytes |
| 記録 | |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 27,076 KB |
| 最終ジャッジ日時 | 2026-05-14 08:21:58 |
| 合計ジャッジ時間 | 4,556 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 16 |
ソースコード
n,q = map(int,input().split()) als = list(map(int,input().split())) for i in range(q): x,y = map(int,input().split()) if als[x-1] <= als[y-1]: print(0) else: c = 0 for j in als: if als[y-1] < j < als[x-1]: c += 1 print(c)
𖧱𖦸𖥩𖥣𖥩𖥣