結果

問題 No.647 明太子
ユーザー ssmkzkssmkzk
提出日時 2018-07-26 18:15:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 406 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 10,824 KB
実行使用メモリ 9,112 KB
最終ジャッジ日時 2023-09-13 18:44:34
合計ジャッジ時間 9,614 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,816 KB
testcase_01 AC 16 ms
7,848 KB
testcase_02 AC 15 ms
7,764 KB
testcase_03 AC 16 ms
7,880 KB
testcase_04 AC 16 ms
7,784 KB
testcase_05 AC 16 ms
7,852 KB
testcase_06 AC 15 ms
7,788 KB
testcase_07 AC 18 ms
7,764 KB
testcase_08 AC 17 ms
7,788 KB
testcase_09 AC 127 ms
7,864 KB
testcase_10 AC 254 ms
7,956 KB
testcase_11 AC 62 ms
7,764 KB
testcase_12 AC 191 ms
7,984 KB
testcase_13 AC 443 ms
8,332 KB
testcase_14 TLE -
testcase_15 AC 687 ms
8,256 KB
testcase_16 AC 187 ms
7,916 KB
testcase_17 TLE -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
l = [input() for i in range(N)]

M = int(input())
l1 = [input() for i in range(M)]
ans = [0 for i in range(M)]

for i in l:
    A, B = map(int, i.split())
    for j in range(M):
        X, Y = map(int, l1[j].split())
        if X <= A and Y >= B:
            ans[j] += 1

K = max(ans)

if K == 0:
    print(0)
else:
    for i in range(M):
        if K == ans[i]:
            print(i + 1)

0