結果

問題 No.216 FAC
ユーザー R NR N
提出日時 2020-09-25 15:07:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 393 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-28 05:49:03
合計ジャッジ時間 1,813 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding=utf-8:

n = int(input())
score = list(map(int, input().split()))
person_num = list(map(int, input().split()))
persons = [i for i in range(101)]
persons_score = [0 for i in range(101)]
persons_dict = dict(zip(persons, persons_score))

for i, j in zip(score, person_num):
    persons_dict[j] += i

if max(persons_dict.values()) <= persons_dict[0]:
    print("YES")
else:
    print("NO")
0