結果

問題 No.216 FAC
ユーザー YU HiroseYU Hirose
提出日時 2024-05-30 22:51:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 82,576 KB
実行使用メモリ 54,300 KB
最終ジャッジ日時 2024-05-30 22:51:31
合計ジャッジ時間 2,906 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,756 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 39 ms
51,872 KB
testcase_04 AC 38 ms
51,996 KB
testcase_05 AC 39 ms
52,680 KB
testcase_06 AC 40 ms
52,568 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 39 ms
53,948 KB
testcase_12 WA -
testcase_13 AC 38 ms
52,456 KB
testcase_14 WA -
testcase_15 AC 39 ms
52,516 KB
testcase_16 AC 40 ms
52,212 KB
testcase_17 AC 39 ms
53,252 KB
testcase_18 WA -
testcase_19 AC 39 ms
52,616 KB
testcase_20 WA -
testcase_21 AC 39 ms
51,700 KB
testcase_22 AC 39 ms
52,060 KB
testcase_23 AC 39 ms
53,208 KB
testcase_24 WA -
testcase_25 AC 39 ms
52,820 KB
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = [0] * 101

for i in range(n):
    c[b[i]] += a[i]

print("Yes" if c[0] >= max(c) else "NO")
0