結果

問題 No.216 FAC
ユーザー lllllll88938494lllllll88938494
提出日時 2023-05-30 20:57:24
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 200 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 79,240 KB
最終ジャッジ日時 2023-08-28 01:06:10
合計ジャッジ時間 4,024 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,136 KB
testcase_01 AC 71 ms
71,612 KB
testcase_02 AC 72 ms
71,292 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 73 ms
71,608 KB
testcase_07 AC 73 ms
71,308 KB
testcase_08 AC 72 ms
71,448 KB
testcase_09 AC 71 ms
71,692 KB
testcase_10 AC 73 ms
71,400 KB
testcase_11 AC 72 ms
71,500 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 71 ms
71,344 KB
testcase_15 RE -
testcase_16 AC 70 ms
71,264 KB
testcase_17 AC 73 ms
71,364 KB
testcase_18 AC 74 ms
71,376 KB
testcase_19 AC 70 ms
71,616 KB
testcase_20 AC 72 ms
71,376 KB
testcase_21 AC 69 ms
71,404 KB
testcase_22 AC 71 ms
71,648 KB
testcase_23 AC 70 ms
71,236 KB
testcase_24 AC 71 ms
71,516 KB
testcase_25 AC 71 ms
71,436 KB
testcase_26 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans =[0]*(n+1)
for i in range(n):
    ans[b[i]] += a[i]

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