結果

問題 No.647 明太子
ユーザー panapanagdf
提出日時 2019-10-03 21:01:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 325,804 KB
最終ジャッジ日時 2024-10-03 06:38:21
合計ジャッジ時間 10,693 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 3 WA * 16 MLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

a=int(input())
b=[]
for i in range(a):
    b.append([int(i) for i in input().split()])
    
c=int(input())
d=[]
for i in range(c):
    d.append([int(i) for i in input().split()])
e=[]
for i in b:
    for m,j in enumerate(d):
        if (i[0]>=j[0]) and (i[1]<=j[1]):
            e.append(m+1)

z=collections.Counter(e)

if len(z)==0:
    print(0)
else:
    for i in z:
        if max(z)==z[i]:
            print(i)
0