結果
問題 |
No.216 FAC
|
ユーザー |
|
提出日時 | 2024-05-11 10:39:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 190 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-20 08:25:17 |
合計ジャッジ時間 | 2,124 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 8 |
ソースコード
n = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) ans = 0 for i in range(n): if B[i] == 0: ans += A[i] A[i] = 0 if ans >= sum(A): print('YES') else: print('NO')