結果

問題 No.647 明太子
ユーザー _matumo__matumo_
提出日時 2018-12-24 14:51:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 3,498 ms / 4,500 ms
コード長 426 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 11,852 KB
実行使用メモリ 12,272 KB
最終ジャッジ日時 2023-10-26 03:01:55
合計ジャッジ時間 10,896 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,004 KB
testcase_01 AC 28 ms
10,004 KB
testcase_02 AC 27 ms
10,004 KB
testcase_03 AC 27 ms
10,004 KB
testcase_04 AC 27 ms
10,004 KB
testcase_05 AC 27 ms
10,004 KB
testcase_06 AC 27 ms
10,004 KB
testcase_07 AC 28 ms
10,016 KB
testcase_08 AC 28 ms
10,020 KB
testcase_09 AC 56 ms
10,156 KB
testcase_10 AC 84 ms
10,196 KB
testcase_11 AC 39 ms
10,100 KB
testcase_12 AC 70 ms
10,200 KB
testcase_13 AC 134 ms
10,316 KB
testcase_14 AC 1,151 ms
11,804 KB
testcase_15 AC 185 ms
10,408 KB
testcase_16 AC 67 ms
10,172 KB
testcase_17 AC 1,447 ms
11,952 KB
testcase_18 AC 1,638 ms
11,916 KB
testcase_19 AC 439 ms
11,744 KB
testcase_20 AC 473 ms
11,432 KB
testcase_21 AC 190 ms
10,688 KB
testcase_22 AC 3,498 ms
12,272 KB
testcase_23 AC 30 ms
10,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
pab = [list(map(int, input().split())) for i in range(n)]
m = int(input())
pxy = [list(map(int, input().split())) for i in range(m)]
pc = [0 for i in range(m)]
for i in range(n):
    for j in range(m):
        if pab[i][0] >= pxy[j][0] and pab[i][1] <= pxy[j][1]:
            pc[j] += 1
cMax = max(pc)
if cMax == 0:
    print(0)
else:
    for i in range(m):
        if pc[i] == cMax:
            print(i + 1)
0