結果

問題 No.647 明太子
ユーザー convexineq
提出日時 2021-03-08 01:37:37
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 297 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 78,692 KB
最終ジャッジ日時 2024-10-09 11:42:07
合計ジャッジ時間 3,969 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 3
other AC * 3 WA * 2 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ab = [list(map(int,input().split())) for _ in range(n)]
m = int(input())
cnt = [0]*m
for _ in range(m):
    x,y = map(int,input().split())
    c = 0
    for a,b in ab:
        if x <= a and y >= b: c += 1
    cnt[_] = c
v = max(cnt)
for i in range(n):
    if cnt[i]==v: print(i+1)
0