結果
問題 | No.216 FAC |
ユーザー |
|
提出日時 | 2022-03-09 21:04:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 1,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 389 ms |
コンパイル使用メモリ | 82,108 KB |
実行使用メモリ | 55,544 KB |
最終ジャッジ日時 | 2024-09-13 21:11:24 |
合計ジャッジ時間 | 2,628 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
from collections import defaultdictn = int(input())an = list(map(int,input().split()))bn = list(map(int,input().split()))d = defaultdict(int)for i,j in zip(an,bn):d[j]+=id = sorted(d.items())max_v = max(d,key=lambda x:(x[1]))#print(max_v[0])print("YES") if max_v[0]==0 else print("NO")#print(list(filter(lambda x:x[1]==max_v,d.items())))