結果

問題 No.647 明太子
ユーザー akitsugu777akitsugu777
提出日時 2019-12-05 17:12:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,566 ms / 4,500 ms
コード長 385 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,952 KB
実行使用メモリ 10,508 KB
最終ジャッジ日時 2023-08-23 08:22:34
合計ジャッジ時間 8,807 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,948 KB
testcase_01 AC 15 ms
7,828 KB
testcase_02 AC 15 ms
7,780 KB
testcase_03 AC 15 ms
7,796 KB
testcase_04 AC 15 ms
7,840 KB
testcase_05 AC 15 ms
7,764 KB
testcase_06 AC 15 ms
7,764 KB
testcase_07 AC 16 ms
7,860 KB
testcase_08 AC 16 ms
7,956 KB
testcase_09 AC 37 ms
8,272 KB
testcase_10 AC 62 ms
8,296 KB
testcase_11 AC 25 ms
7,760 KB
testcase_12 AC 50 ms
8,192 KB
testcase_13 AC 94 ms
8,236 KB
testcase_14 AC 852 ms
10,000 KB
testcase_15 AC 135 ms
8,588 KB
testcase_16 AC 49 ms
8,268 KB
testcase_17 AC 1,095 ms
10,232 KB
testcase_18 AC 1,227 ms
9,884 KB
testcase_19 AC 453 ms
9,936 KB
testcase_20 AC 416 ms
9,664 KB
testcase_21 AC 163 ms
8,760 KB
testcase_22 AC 2,566 ms
10,508 KB
testcase_23 AC 17 ms
7,844 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+1):
        if X == L[i]:
            print(i)
0