結果

問題 No.647 明太子
ユーザー toyuzukotoyuzuko
提出日時 2020-08-04 17:59:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 430 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 10,864 KB
実行使用メモリ 9,788 KB
最終ジャッジ日時 2023-10-12 21:20:47
合計ジャッジ時間 11,037 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 15 ms
7,872 KB
testcase_03 AC 15 ms
7,824 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 15 ms
7,884 KB
testcase_07 AC 16 ms
7,796 KB
testcase_08 WA -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 27 ms
7,792 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 504 ms
9,332 KB
testcase_20 AC 548 ms
9,224 KB
testcase_21 AC 207 ms
8,568 KB
testcase_22 RE -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
member = [tuple(map(int, input().split())) for _ in range(N)]

M = int(input())
cnt = [0 for _ in range(M)]
mentaiko = [tuple(map(int, input().split())) for _ in range(M)]

for a, b in member:
    for i in range(M):
        x, y = mentaiko[i]
        if x <= a and y >= b:
            cnt[i] += 1

m = max(cnt)

if m == 0:
    print(0)
else:
    for i in range(N):
        if cnt[i] == m:
            print(i + 1)
0