結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,780 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 AC 15 ms
7,780 KB
testcase_03 AC 14 ms
7,784 KB
testcase_04 AC 15 ms
7,920 KB
testcase_05 AC 15 ms
7,784 KB
testcase_06 AC 15 ms
7,796 KB
testcase_07 AC 16 ms
7,868 KB
testcase_08 AC 16 ms
7,804 KB
testcase_09 AC 36 ms
8,224 KB
testcase_10 AC 60 ms
8,332 KB
testcase_11 AC 26 ms
7,804 KB
testcase_12 AC 51 ms
8,268 KB
testcase_13 AC 99 ms
8,244 KB
testcase_14 AC 980 ms
9,936 KB
testcase_15 AC 135 ms
8,600 KB
testcase_16 AC 47 ms
8,220 KB
testcase_17 AC 1,139 ms
10,124 KB
testcase_18 AC 1,268 ms
10,088 KB
testcase_19 AC 390 ms
10,012 KB
testcase_20 AC 434 ms
9,532 KB
testcase_21 AC 165 ms
8,812 KB
testcase_22 WA -
testcase_23 AC 17 ms
7,800 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:
    if L.count(X) == 1:
        print(L.index(X))
    else:
        for i in range(M):
            if X == L[i]:
                print(i)
0