結果

問題 No.647 明太子
ユーザー mlihua09mlihua09
提出日時 2020-09-01 01:14:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 215 ms / 4,500 ms
コード長 386 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 77,568 KB
最終ジャッジ日時 2024-04-28 11:44:59
合計ジャッジ時間 3,355 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,096 KB
testcase_01 AC 35 ms
52,096 KB
testcase_02 AC 36 ms
51,968 KB
testcase_03 AC 39 ms
51,968 KB
testcase_04 AC 38 ms
51,840 KB
testcase_05 AC 38 ms
51,968 KB
testcase_06 AC 38 ms
51,968 KB
testcase_07 AC 45 ms
59,136 KB
testcase_08 AC 46 ms
59,648 KB
testcase_09 AC 61 ms
63,616 KB
testcase_10 AC 73 ms
67,072 KB
testcase_11 AC 56 ms
64,128 KB
testcase_12 AC 70 ms
67,968 KB
testcase_13 AC 83 ms
70,784 KB
testcase_14 AC 178 ms
77,056 KB
testcase_15 AC 103 ms
76,672 KB
testcase_16 AC 64 ms
65,536 KB
testcase_17 AC 215 ms
77,056 KB
testcase_18 AC 214 ms
77,056 KB
testcase_19 AC 116 ms
76,928 KB
testcase_20 AC 104 ms
77,056 KB
testcase_21 AC 103 ms
76,800 KB
testcase_22 AC 184 ms
77,568 KB
testcase_23 AC 54 ms
63,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

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

M = int(input())

m = 1
ans = []
for i in range(M):
    x, y = map(int, input().split())
    z = 0
    for a, b in AB:
        if x <= a and y >= b:
            z += 1
    if m < z:
        m = z
        ans = [i + 1]
    elif m == z:
        ans += [i + 1]
if ans:
    print(*ans, sep='\n')
else:
    print(0)
0