結果

問題 No.647 明太子
ユーザー panapanagdfpanapanagdf
提出日時 2019-10-03 21:01:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 434 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 335,000 KB
最終ジャッジ日時 2024-04-14 09:39:09
合計ジャッジ時間 12,505 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 AC 32 ms
10,880 KB
testcase_02 AC 32 ms
10,752 KB
testcase_03 AC 36 ms
10,752 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 478 ms
12,160 KB
testcase_20 AC 521 ms
11,904 KB
testcase_21 AC 196 ms
11,264 KB
testcase_22 TLE -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

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