結果

問題 No.647 明太子
ユーザー HimatsubushinHimatsubushin
提出日時 2022-02-01 15:09:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 515 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 10,820 KB
実行使用メモリ 14,492 KB
最終ジャッジ日時 2023-09-02 02:30:35
合計ジャッジ時間 14,753 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,916 KB
testcase_01 AC 16 ms
7,912 KB
testcase_02 WA -
testcase_03 AC 15 ms
7,776 KB
testcase_04 AC 15 ms
7,820 KB
testcase_05 AC 14 ms
7,812 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 15 ms
7,848 KB
testcase_08 AC 16 ms
7,912 KB
testcase_09 AC 52 ms
8,260 KB
testcase_10 AC 94 ms
8,300 KB
testcase_11 AC 32 ms
7,912 KB
testcase_12 AC 76 ms
8,388 KB
testcase_13 AC 158 ms
8,392 KB
testcase_14 AC 1,602 ms
9,564 KB
testcase_15 AC 235 ms
8,304 KB
testcase_16 AC 69 ms
8,360 KB
testcase_17 AC 1,982 ms
9,720 KB
testcase_18 AC 2,140 ms
9,732 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 TLE -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

member = []
for _ in range(int(input())):
    a, b = map(int, input().split())
    member.append([a, b])
item = []
for _ in range(int(input())):
    a, b = map(int, input().split())
    item.append([a, b, 0])
max = 0
for [a, b] in member:
    for i in range(len(item)):
        x, y, z = item[i]
        if a >= x and b <= y:
            item[i] = [x, y, z + 1]
            if max < z + 1:
                max = z + 1
count = 0
for i in range(len(item)):
    x, y, z = item[i]
    if z == max:
        print(i + 1)
0