結果

問題 No.216 FAC
ユーザー pypypymipypypymi
提出日時 2022-02-24 14:49:55
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 204 bytes
コンパイル時間 741 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 79,380 KB
最終ジャッジ日時 2023-09-15 08:26:20
合計ジャッジ時間 5,295 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,928 KB
testcase_01 AC 72 ms
71,424 KB
testcase_02 AC 71 ms
71,344 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 72 ms
71,216 KB
testcase_08 AC 72 ms
71,300 KB
testcase_09 AC 72 ms
71,284 KB
testcase_10 AC 72 ms
71,344 KB
testcase_11 AC 72 ms
71,216 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 72 ms
71,444 KB
testcase_17 RE -
testcase_18 AC 72 ms
71,172 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 72 ms
71,424 KB
testcase_22 RE -
testcase_23 AC 73 ms
71,316 KB
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
count = [0]*n
for i,j in enumerate(b):
    count[j]+=a[i]
print("YES") if count.index(max(count))==0 else print("NO")
0