結果

問題 No.647 明太子
ユーザー kyo1kyo1
提出日時 2020-09-27 12:52:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 10,812 KB
実行使用メモリ 10,340 KB
最終ジャッジ日時 2023-09-13 01:10:56
合計ジャッジ時間 11,499 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,776 KB
testcase_01 WA -
testcase_02 AC 14 ms
7,704 KB
testcase_03 WA -
testcase_04 AC 14 ms
7,780 KB
testcase_05 AC 15 ms
7,888 KB
testcase_06 AC 14 ms
7,776 KB
testcase_07 AC 15 ms
7,772 KB
testcase_08 AC 15 ms
7,924 KB
testcase_09 AC 39 ms
8,260 KB
testcase_10 AC 69 ms
8,188 KB
testcase_11 AC 26 ms
7,816 KB
testcase_12 AC 57 ms
8,188 KB
testcase_13 AC 116 ms
8,152 KB
testcase_14 AC 1,141 ms
9,808 KB
testcase_15 AC 160 ms
8,500 KB
testcase_16 AC 59 ms
8,388 KB
testcase_17 AC 1,394 ms
10,220 KB
testcase_18 AC 1,542 ms
10,008 KB
testcase_19 AC 403 ms
9,956 KB
testcase_20 AC 448 ms
9,524 KB
testcase_21 AC 166 ms
8,632 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

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

print(counts.index(max(counts)) + 1 if counts.index(max(counts)) != 0 else 0)
0