結果

問題 No.216 FAC
コンテスト
ユーザー otsuneko
提出日時 2021-05-07 10:46:59
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 66 ms / 1,000 ms
+ 610µs
コード長 224 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 240 ms
コンパイル使用メモリ 96,108 KB
実行使用メモリ 78,976 KB
最終ジャッジ日時 2026-08-27 13:15:17
合計ジャッジ時間 3,827 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))

score = [0]*101
for i in range(N):
    score[b[i]] += a[i]

if score[0] == max(score):
    print("YES")
else:
    print("NO")
0