結果
問題 |
No.216 FAC
|
ユーザー |
![]() |
提出日時 | 2017-07-12 13:27:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 243 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-07 16:41:27 |
合計ジャッジ時間 | 1,944 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 8 |
ソースコード
N = int(input()) a = [int(i) for i in input().split()] b = [int(i) for i in input().split()] at = 0 bt = 0 for i in range(N): if b[i] >= 1: at += a[i] else: bt += a[i] if at > bt: print("NO") else: print("YES")