結果

問題 No.647 明太子
ユーザー dnishdnish
提出日時 2018-07-27 17:24:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 415 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 11,028 KB
実行使用メモリ 12,988 KB
最終ジャッジ日時 2023-09-13 18:54:52
合計ジャッジ時間 1,787 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,812 KB
testcase_02 RE -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 16 ms
7,800 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 40 ms
11,992 KB
testcase_20 AC 35 ms
11,312 KB
testcase_21 AC 24 ms
9,528 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
l = [map(int, input().split()) for i in range(N)]


M = int(input())
l1 = [map(int, input().split()) for i in range(M)]
ans = [0 for i in range(M)]

for A, B in zip(l[0], l[1]):
    for j, (X, Y) in enumerate(zip(l1[0],l1[1])):
        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