結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
testtest
|
| 提出日時 | 2020-09-18 12:46:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-22 07:56:11 |
| 合計ジャッジ時間 | 2,213 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 8 |
ソースコード
N = int(input())
a = input().split()
b = input().split()
K_pt = 0
pt = 0
n = 0
while n < N:
if int(b[n]) == 0:
K_pt = K_pt + int(a[n])
else:
pt = pt + int(a[n])
n = n + 1
if K_pt >= pt:
print("YES")
else:
print("NO")
testtest