結果
問題 |
No.216 FAC
|
ユーザー |
![]() |
提出日時 | 2016-01-24 08:57:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-21 15:09:15 |
合計ジャッジ時間 | 1,750 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 8 |
ソースコード
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) score = 0 for i in range(n): if b[i] == 0: score += a[i] if score >= sum(a) - score: print('YES') else: print('NO')