結果

問題 No.647 明太子
ユーザー dnish
提出日時 2018-07-27 17:24:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 415 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 15,232 KB
最終ジャッジ日時 2024-07-01 03:33:01
合計ジャッジ時間 1,945 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2 RE * 1
other AC * 4 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
l = [map(int, input().split()) for i in range(N)]


M = int(input())
l1 = [map(int, input().split()) for i in range(M)]
ans = [0 for i in range(M)]

for A, B in zip(l[0], l[1]):
    for j, (X, Y) in enumerate(zip(l1[0],l1[1])):
        if X <= A and Y >= B:
            ans[j] += 1

K = max(ans)

if K == 0:
    print(0)
else:
    for i in range(M):
        if K == ans[i]:
            print(i + 1)
0