結果

問題 No.647 明太子
ユーザー kyo1kyo1
提出日時 2020-09-27 12:53:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 3,241 ms / 4,500 ms
コード長 425 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 10,888 KB
実行使用メモリ 10,272 KB
最終ジャッジ日時 2023-09-13 01:11:07
合計ジャッジ時間 10,713 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,788 KB
testcase_01 AC 16 ms
7,840 KB
testcase_02 AC 16 ms
8,060 KB
testcase_03 AC 17 ms
7,720 KB
testcase_04 AC 16 ms
7,680 KB
testcase_05 AC 16 ms
7,840 KB
testcase_06 AC 16 ms
7,776 KB
testcase_07 AC 16 ms
7,828 KB
testcase_08 AC 16 ms
7,816 KB
testcase_09 AC 40 ms
8,120 KB
testcase_10 AC 69 ms
8,248 KB
testcase_11 AC 27 ms
7,696 KB
testcase_12 AC 58 ms
8,132 KB
testcase_13 AC 112 ms
8,116 KB
testcase_14 AC 1,081 ms
10,044 KB
testcase_15 AC 164 ms
8,536 KB
testcase_16 AC 53 ms
8,136 KB
testcase_17 AC 1,393 ms
9,984 KB
testcase_18 AC 1,584 ms
10,104 KB
testcase_19 AC 400 ms
9,924 KB
testcase_20 AC 442 ms
9,444 KB
testcase_21 AC 168 ms
8,744 KB
testcase_22 AC 3,241 ms
10,272 KB
testcase_23 AC 17 ms
7,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

counts = [0 for _ in range(M)]

for i in range(N):
    for j in range(M):
        if AB[i][0] >= XY[j][0] and AB[i][1] <= XY[j][1]:
            counts[j] += 1

x = max(counts)

if x == 0:
    print(0)
    exit()

for i in range(M):
    if x == counts[i]:
        print(i + 1)
0