結果

問題 No.216 FAC
ユーザー steek79
提出日時 2015-10-16 00:55:02
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 235 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-21 16:43:05
合計ジャッジ時間 1,181 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 3 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
problems = map(int, raw_input().split())
solvers = map(int, raw_input().split())

scorelist = [0] * 105
for s in solvers:
    scorelist[s] += problems[s]

if max(scorelist) == scorelist[0]:
    print 'YES'
else: print 'NO'
0