結果

問題 No.647 明太子
ユーザー ohanaohana
提出日時 2023-10-27 09:38:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 220 ms / 4,500 ms
コード長 325 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 81,800 KB
実行使用メモリ 77,020 KB
最終ジャッジ日時 2023-10-27 09:38:36
合計ジャッジ時間 3,999 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,540 KB
testcase_01 AC 31 ms
53,540 KB
testcase_02 AC 39 ms
53,540 KB
testcase_03 AC 38 ms
53,540 KB
testcase_04 AC 39 ms
53,540 KB
testcase_05 AC 33 ms
53,540 KB
testcase_06 AC 31 ms
53,540 KB
testcase_07 AC 38 ms
59,588 KB
testcase_08 AC 38 ms
59,524 KB
testcase_09 AC 64 ms
66,180 KB
testcase_10 AC 63 ms
70,304 KB
testcase_11 AC 50 ms
65,892 KB
testcase_12 AC 59 ms
68,244 KB
testcase_13 AC 79 ms
76,092 KB
testcase_14 AC 185 ms
76,916 KB
testcase_15 AC 85 ms
76,112 KB
testcase_16 AC 57 ms
68,232 KB
testcase_17 AC 220 ms
77,020 KB
testcase_18 AC 220 ms
77,020 KB
testcase_19 AC 85 ms
76,576 KB
testcase_20 AC 98 ms
76,556 KB
testcase_21 AC 69 ms
74,060 KB
testcase_22 AC 156 ms
76,732 KB
testcase_23 AC 45 ms
63,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

A = [tuple(map(int, input().split())) for i in range(n)]
m = int(input())

B = []
for i in range(m):
    a, b = map(int, input().split())
    B.append((sum(map(lambda x: a <= x[0] and x[1] <= b, A)), i + 1))
mx = max(B)[0]
C = [b[1] for b in B if b[0] == mx and b[0] != 0]
print(*C if C else [0], sep="\n")
0