結果

問題 No.647 明太子
ユーザー ApoiApoi
提出日時 2019-02-02 08:20:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 3,378 ms / 4,500 ms
コード長 613 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 10,792 KB
実行使用メモリ 10,512 KB
最終ジャッジ日時 2023-08-17 03:07:09
合計ジャッジ時間 11,201 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,856 KB
testcase_01 AC 16 ms
7,836 KB
testcase_02 AC 16 ms
7,852 KB
testcase_03 AC 15 ms
7,820 KB
testcase_04 AC 15 ms
7,860 KB
testcase_05 AC 15 ms
7,796 KB
testcase_06 AC 16 ms
7,820 KB
testcase_07 AC 17 ms
7,836 KB
testcase_08 AC 17 ms
7,872 KB
testcase_09 AC 42 ms
8,332 KB
testcase_10 AC 77 ms
8,212 KB
testcase_11 AC 30 ms
8,292 KB
testcase_12 AC 60 ms
8,208 KB
testcase_13 AC 122 ms
8,236 KB
testcase_14 AC 1,134 ms
10,064 KB
testcase_15 AC 190 ms
8,628 KB
testcase_16 AC 57 ms
8,336 KB
testcase_17 AC 1,456 ms
10,100 KB
testcase_18 AC 1,521 ms
10,220 KB
testcase_19 AC 407 ms
10,012 KB
testcase_20 AC 449 ms
9,640 KB
testcase_21 AC 174 ms
8,872 KB
testcase_22 AC 3,378 ms
10,512 KB
testcase_23 AC 22 ms
7,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
member = int(input())
member_like = []
for i in range(member):
    member_like.append(list(map(int, input().split())))
mentai = int(input())
kind = []
for i in range(mentai):
    kind.append(list(map(int, input().split())))
bought_mentai = [0 for i in range(mentai)]
for j in range(member):
    for k in range(mentai):
        if (member_like[j][0] >= kind[k][0]) and (member_like[j][1] <= kind[k][1]):
            bought_mentai[k] += 1
if max(bought_mentai) == 0:
    print(0)
else:
    a = [m for m, x in enumerate(bought_mentai) if x == max(bought_mentai)]
    for n in a:
        print(n + 1)
0