結果

問題 No.216 FAC
コンテスト
ユーザー roiti46
提出日時 2015-05-26 22:22:51
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 81 ms / 1,000 ms
コード長 205 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 244 ms
コンパイル使用メモリ 77,588 KB
最終ジャッジ日時 2025-12-03 15:16:21
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = input()
a = map(int, raw_input().split())
b = map(int, raw_input().split())
score = [0] * 101
for i in xrange(N):
    score[b[i]] += a[i]
if max(score) == score[0]:
    print "YES"
else:
    print "NO"
0