結果
問題 |
No.216 FAC
|
ユーザー |
![]() |
提出日時 | 2017-08-25 19:55:50 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 63 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 15:42:47 |
合計ジャッジ時間 | 1,209 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 8 |
ソースコード
n = input() a = map(int, raw_input().split()) b = map(int, raw_input().split()) score = 0 for i in range(len(a)): if b[i] == 0: score += a[i] a[i] = 0 if score >= sum(a): print "YES" else: print "NO"