結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
10,880 KB
testcase_01 AC 32 ms
10,752 KB
testcase_02 AC 31 ms
10,752 KB
testcase_03 AC 31 ms
10,752 KB
testcase_04 AC 33 ms
10,752 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 AC 32 ms
10,880 KB
testcase_07 AC 32 ms
10,752 KB
testcase_08 AC 33 ms
10,752 KB
testcase_09 AC 61 ms
10,880 KB
testcase_10 AC 92 ms
10,880 KB
testcase_11 AC 45 ms
10,752 KB
testcase_12 AC 78 ms
10,880 KB
testcase_13 AC 144 ms
10,880 KB
testcase_14 AC 1,302 ms
11,904 KB
testcase_15 AC 203 ms
11,136 KB
testcase_16 AC 73 ms
10,752 KB
testcase_17 AC 1,647 ms
12,032 KB
testcase_18 AC 1,739 ms
12,032 KB
testcase_19 AC 591 ms
11,904 KB
testcase_20 AC 615 ms
11,648 KB
testcase_21 AC 241 ms
11,136 KB
testcase_22 AC 3,568 ms
12,288 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)]

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

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