結果

問題 No.647 明太子
ユーザー Laika
提出日時 2018-02-15 16:45:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 547 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 334,976 KB
最終ジャッジ日時 2024-12-26 08:08:27
合計ジャッジ時間 15,094 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 TLE * 1 MLE * 1
権限があれば一括ダウンロードができます

ソースコード

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