結果
| 問題 | No.2710 How many more? | 
| コンテスト | |
| ユーザー |  𖧱𖦸𖥩𖥣𖥩𖥣 | 
| 提出日時 | 2024-04-30 12:47:13 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 239 bytes | 
| コンパイル時間 | 86 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 39,504 KB | 
| 最終ジャッジ日時 | 2024-11-20 07:52:05 | 
| 合計ジャッジ時間 | 49,329 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 1 TLE * 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)
