結果

問題 No.647 明太子
ユーザー LaikaLaika
提出日時 2018-02-15 16:45:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 547 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 10,856 KB
実行使用メモリ 322,064 KB
最終ジャッジ日時 2023-08-27 02:22:18
合計ジャッジ時間 11,338 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,540 KB
testcase_01 AC 16 ms
8,648 KB
testcase_02 AC 16 ms
8,472 KB
testcase_03 AC 16 ms
8,536 KB
testcase_04 AC 16 ms
8,656 KB
testcase_05 AC 17 ms
8,532 KB
testcase_06 AC 16 ms
8,436 KB
testcase_07 AC 18 ms
8,504 KB
testcase_08 AC 18 ms
8,644 KB
testcase_09 AC 40 ms
9,108 KB
testcase_10 AC 79 ms
9,936 KB
testcase_11 AC 27 ms
8,972 KB
testcase_12 AC 58 ms
9,196 KB
testcase_13 AC 113 ms
10,740 KB
testcase_14 AC 1,090 ms
41,128 KB
testcase_15 AC 185 ms
12,460 KB
testcase_16 AC 55 ms
9,476 KB
testcase_17 AC 1,350 ms
52,280 KB
testcase_18 AC 1,442 ms
55,980 KB
testcase_19 AC 415 ms
10,304 KB
testcase_20 AC 411 ms
10,004 KB
testcase_21 AC 172 ms
9,160 KB
testcase_22 MLE -
testcase_23 AC 38 ms
8,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

n = int(input())
mem = []
mcl = []
for i in range(n):
    array = list(map(int, input().split()))
    mem.append(array)

m = int(input())
men = []

for i in range(m):
    array = list(map(int, input().split()))
    men.append(array)


for i in range(n):
    for j in range(m):
        if mem[i][0] >= men[j][0] and mem[i][1] <= men[j][1]:
            mcl.append(j)

c = Counter(mcl)
g = c.most_common()

if len(g) == 0:
    print(0)

for i in range(len(g)):
    if g[i][1] == g[0][1]:
        print(g[i][0] + 1)


0