結果

問題 No.647 明太子
ユーザー ssmkzkssmkzk
提出日時 2018-07-26 17:18:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 441 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,952 KB
実行使用メモリ 13,464 KB
最終ジャッジ日時 2023-09-13 18:42:35
合計ジャッジ時間 13,759 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 16 ms
7,776 KB
testcase_02 AC 16 ms
7,832 KB
testcase_03 AC 15 ms
7,772 KB
testcase_04 AC 16 ms
7,816 KB
testcase_05 AC 16 ms
7,844 KB
testcase_06 AC 16 ms
7,828 KB
testcase_07 AC 18 ms
7,852 KB
testcase_08 AC 18 ms
7,916 KB
testcase_09 AC 124 ms
7,792 KB
testcase_10 AC 245 ms
7,832 KB
testcase_11 AC 62 ms
7,824 KB
testcase_12 AC 188 ms
7,820 KB
testcase_13 AC 431 ms
7,876 KB
testcase_14 TLE -
testcase_15 AC 682 ms
8,180 KB
testcase_16 AC 181 ms
7,856 KB
testcase_17 TLE -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
l = []

for i in range(N):
    l.append(input())

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

for i in range(M):
    l1.append(input())

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