結果

問題 No.216 FAC
ユーザー ABKZABKZ
提出日時 2021-07-14 07:40:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 766 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 71,612 KB
最終ジャッジ日時 2023-09-16 04:48:44
合計ジャッジ時間 3,836 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,052 KB
testcase_01 AC 74 ms
71,184 KB
testcase_02 AC 75 ms
71,248 KB
testcase_03 AC 74 ms
71,272 KB
testcase_04 AC 74 ms
71,428 KB
testcase_05 AC 72 ms
71,108 KB
testcase_06 AC 76 ms
71,044 KB
testcase_07 AC 74 ms
71,176 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 76 ms
71,292 KB
testcase_12 WA -
testcase_13 AC 76 ms
71,376 KB
testcase_14 WA -
testcase_15 AC 74 ms
71,480 KB
testcase_16 AC 78 ms
71,348 KB
testcase_17 AC 75 ms
71,344 KB
testcase_18 WA -
testcase_19 AC 79 ms
71,484 KB
testcase_20 WA -
testcase_21 AC 77 ms
71,484 KB
testcase_22 AC 73 ms
71,232 KB
testcase_23 AC 82 ms
71,312 KB
testcase_24 WA -
testcase_25 AC 77 ms
71,456 KB
testcase_26 AC 77 ms
71,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
score = list(map(int, input().split()))
winner = input().split()

solved = sum([a for a, b in zip(score, winner) if b != "0"])
k_score = sum([a for a, b in zip(score, winner) if b == "0"])

if k_score >= solved:
    print("YES")
else:
    print("NO")
0