結果

問題 No.647 明太子
ユーザー panapanagdfpanapanagdf
提出日時 2019-10-03 20:55:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 332,640 KB
最終ジャッジ日時 2024-04-14 09:37:19
合計ジャッジ時間 12,704 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,752 KB
testcase_01 AC 32 ms
10,752 KB
testcase_02 AC 31 ms
10,880 KB
testcase_03 AC 32 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 453 ms
12,160 KB
testcase_20 AC 550 ms
11,904 KB
testcase_21 AC 193 ms
11,264 KB
testcase_22 MLE -
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