結果

問題 No.647 明太子
ユーザー akitsugu777akitsugu777
提出日時 2019-12-05 17:11:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 371 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 10,908 KB
実行使用メモリ 10,364 KB
最終ジャッジ日時 2023-08-23 08:20:47
合計ジャッジ時間 9,189 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,780 KB
testcase_02 AC 17 ms
7,864 KB
testcase_03 AC 16 ms
7,716 KB
testcase_04 AC 16 ms
7,704 KB
testcase_05 AC 16 ms
7,708 KB
testcase_06 AC 16 ms
7,716 KB
testcase_07 AC 17 ms
7,760 KB
testcase_08 AC 17 ms
7,752 KB
testcase_09 AC 38 ms
8,176 KB
testcase_10 AC 63 ms
8,228 KB
testcase_11 AC 28 ms
7,836 KB
testcase_12 AC 51 ms
8,228 KB
testcase_13 AC 96 ms
8,284 KB
testcase_14 AC 952 ms
9,884 KB
testcase_15 AC 138 ms
8,492 KB
testcase_16 AC 48 ms
8,276 KB
testcase_17 AC 1,128 ms
10,036 KB
testcase_18 AC 1,231 ms
10,016 KB
testcase_19 AC 388 ms
9,824 KB
testcase_20 AC 432 ms
9,460 KB
testcase_21 AC 175 ms
8,676 KB
testcase_22 WA -
testcase_23 AC 18 ms
7,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
Lh = [list(map(int, input().split())) for _ in range(N)]
M = int(input())
Lm = [list(map(int, input().split())) + [i+1] for i in range(M)]
L = [0] * (M+1)

for a, b in Lh:
    for c, d, i in Lm:
        if a >= c and b <= d:
            L[i] += 1

X = max(L)
if X == 0:
    print(0)
else:
    for i in range(M):
        if X == L[i]:
            print(i)
0