結果
| 問題 |
No.647 明太子
|
| ユーザー |
kawacchu
|
| 提出日時 | 2019-10-10 00:59:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 406 bytes |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-18 11:10:42 |
| 合計ジャッジ時間 | 12,927 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 20 |
ソースコード
N = int(input())
AB = [tuple(map(int,input().split())) for i in range(N)]
M = int(input())
XY = [tuple(map(int,input().split())) for i in range(M)]
C = [0]*M
for a,b in AB :
for i, xy in enumerate(XY) :
x,y = xy
if a >= x and b <= y :
C[i] += 1
MAX = max(max(C))
if MAX == 0 :
print(0)
else :
for i,c in enumerate(C) :
if c == MAX :
print(i+1)
kawacchu