結果

問題 No.647 明太子
ユーザー convexineqconvexineq
提出日時 2021-03-08 01:37:37
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 297 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 82,572 KB
実行使用メモリ 78,480 KB
最終ジャッジ日時 2024-04-17 17:35:09
合計ジャッジ時間 3,462 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 31 ms
53,012 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 30 ms
52,660 KB
testcase_07 AC 36 ms
59,560 KB
testcase_08 WA -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 46 ms
65,784 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

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)
for i in range(n):
    if cnt[i]==v: print(i+1)
0