結果

問題 No.647 明太子
ユーザー convexineqconvexineq
提出日時 2021-03-08 01:39:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 183 ms / 4,500 ms
コード長 335 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 77,312 KB
最終ジャッジ日時 2024-04-17 17:36:10
合計ジャッジ時間 2,481 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
51,712 KB
testcase_01 AC 30 ms
51,840 KB
testcase_02 AC 29 ms
52,224 KB
testcase_03 AC 32 ms
52,096 KB
testcase_04 AC 33 ms
52,480 KB
testcase_05 AC 31 ms
52,096 KB
testcase_06 AC 30 ms
51,712 KB
testcase_07 AC 36 ms
58,880 KB
testcase_08 AC 35 ms
59,648 KB
testcase_09 AC 46 ms
63,360 KB
testcase_10 AC 54 ms
67,456 KB
testcase_11 AC 46 ms
64,768 KB
testcase_12 AC 60 ms
67,976 KB
testcase_13 AC 66 ms
70,656 KB
testcase_14 AC 160 ms
77,220 KB
testcase_15 AC 80 ms
76,416 KB
testcase_16 AC 49 ms
66,048 KB
testcase_17 AC 183 ms
77,224 KB
testcase_18 AC 181 ms
77,184 KB
testcase_19 AC 89 ms
77,184 KB
testcase_20 AC 84 ms
77,056 KB
testcase_21 AC 76 ms
77,312 KB
testcase_22 AC 151 ms
77,056 KB
testcase_23 AC 44 ms
64,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ab = [list(map(int,input().split())) for _ in range(n)]
m = int(input())
cnt = [0]*m
for _ in range(m):
    x,y = map(int,input().split())
    c = 0
    for a,b in ab:
        if x <= a and y >= b: c += 1
    cnt[_] = c
v = max(cnt)
if v == 0:
    print(0)
else:
    for i in range(m):
        if cnt[i]==v: print(i+1)
0