結果

問題 No.647 明太子
ユーザー c-yanc-yan
提出日時 2020-08-26 01:59:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 4,399 ms / 4,500 ms
コード長 415 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-24 05:01:28
合計ジャッジ時間 13,364 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,752 KB
testcase_01 AC 30 ms
10,880 KB
testcase_02 AC 30 ms
10,880 KB
testcase_03 AC 29 ms
10,752 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 31 ms
10,752 KB
testcase_08 AC 31 ms
10,752 KB
testcase_09 AC 63 ms
10,880 KB
testcase_10 AC 95 ms
10,880 KB
testcase_11 AC 46 ms
10,752 KB
testcase_12 AC 80 ms
10,880 KB
testcase_13 AC 153 ms
11,008 KB
testcase_14 AC 1,378 ms
12,160 KB
testcase_15 AC 218 ms
11,136 KB
testcase_16 AC 77 ms
10,880 KB
testcase_17 AC 1,811 ms
12,032 KB
testcase_18 AC 1,933 ms
12,160 KB
testcase_19 AC 582 ms
11,904 KB
testcase_20 AC 644 ms
11,648 KB
testcase_21 AC 240 ms
11,136 KB
testcase_22 AC 4,399 ms
12,416 KB
testcase_23 AC 33 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
AB = [tuple(map(int, input().split())) for _ in range(N)]
M = int(input())
XY = [tuple(map(int, input().split())) for _ in range(M)]

d = {}
for i in range(M):
    d[i] = 0

for a, b in AB:
    for i in range(M):
        x, y = XY[i]
        if x <= a and y >= b:
            d[i] += 1

m = max(d.values())
if m == 0:
    print(0)
else:
    print(*(i + 1 for i in range(M) if d[i] == m), sep='\n')
0