結果

問題 No.647 明太子
ユーザー 👑 rin204rin204
提出日時 2020-08-20 01:20:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 392 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 77,440 KB
最終ジャッジ日時 2024-04-20 16:41:35
合計ジャッジ時間 3,117 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,968 KB
testcase_01 AC 34 ms
51,712 KB
testcase_02 WA -
testcase_03 AC 35 ms
51,712 KB
testcase_04 AC 34 ms
52,096 KB
testcase_05 AC 34 ms
51,968 KB
testcase_06 AC 34 ms
51,968 KB
testcase_07 AC 40 ms
59,164 KB
testcase_08 AC 41 ms
59,312 KB
testcase_09 AC 57 ms
63,104 KB
testcase_10 AC 62 ms
66,944 KB
testcase_11 AC 53 ms
64,512 KB
testcase_12 AC 64 ms
68,352 KB
testcase_13 AC 72 ms
70,912 KB
testcase_14 AC 164 ms
77,312 KB
testcase_15 AC 85 ms
76,800 KB
testcase_16 AC 57 ms
65,664 KB
testcase_17 AC 193 ms
77,440 KB
testcase_18 AC 196 ms
77,184 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 170 ms
77,344 KB
testcase_23 AC 50 ms
63,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ab = [list(map(int, input().split())) for _ in range(n)]
ans = []
max_cnt = -1
m = int(input())
for i in range(m):
    cnt = 0
    x, y = map(int, input().split())
    for a, b in ab:
        if x <= a and y >= b:
            cnt += 1
    if cnt > max_cnt:
        ans = [i + 1]
        max_cnt = cnt
    elif cnt == max_cnt:
        ans.append(i + 1)
print(*ans, sep = "\n")
0