結果

問題 No.647 明太子
ユーザー ssmkzkssmkzk
提出日時 2018-07-26 19:12:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,826 ms / 4,500 ms
コード長 416 bytes
コンパイル時間 502 ms
コンパイル使用メモリ 10,840 KB
実行使用メモリ 10,364 KB
最終ジャッジ日時 2023-09-13 18:46:46
合計ジャッジ時間 10,002 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,824 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 14 ms
7,752 KB
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 14 ms
7,836 KB
testcase_05 AC 15 ms
7,892 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 16 ms
7,940 KB
testcase_08 AC 15 ms
7,820 KB
testcase_09 AC 37 ms
8,200 KB
testcase_10 AC 66 ms
8,328 KB
testcase_11 AC 25 ms
7,768 KB
testcase_12 AC 52 ms
8,384 KB
testcase_13 AC 108 ms
8,308 KB
testcase_14 AC 1,020 ms
9,932 KB
testcase_15 AC 152 ms
8,620 KB
testcase_16 AC 49 ms
8,212 KB
testcase_17 AC 1,293 ms
10,052 KB
testcase_18 AC 1,438 ms
10,096 KB
testcase_19 AC 432 ms
9,936 KB
testcase_20 AC 466 ms
9,700 KB
testcase_21 AC 178 ms
8,816 KB
testcase_22 AC 2,826 ms
10,364 KB
testcase_23 AC 17 ms
7,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


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

for i,(A, B) in enumerate(l):
    for j, (X, Y) in enumerate(l1):
        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