結果

問題 No.647 明太子
ユーザー ああいい
提出日時 2022-05-19 09:25:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 744 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 76,876 KB
最終ジャッジ日時 2024-09-17 14:55:01
合計ジャッジ時間 3,631 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 15 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
member = []
for _ in range(N):
    a,b = map(int,input().split())
    member.append((a,b))
M = int(input())
dat = [0] * M
m = -1
for _ in range(M):
    x,y = map(int,input().split())
    count = 0
    for a,b in member:
        if x < a and y >= b:
            count += 1
    dat[_] = count
    if count > m:m = count
for i in range(M):
    if dat[i] == m:
        print(i + 1)
0