結果

問題 No.3220 Forest Creation
ユーザー Iroha_3856
提出日時 2025-08-01 22:50:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 82,748 KB
実行使用メモリ 88,016 KB
最終ジャッジ日時 2025-08-01 22:50:31
合計ジャッジ時間 3,607 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 41 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))

E = sum(i * A[i] for i in range(N+1))
V = sum(a for a in A)

#E = 2(V-1) としたい。
#E += i, V += 1の操作が i = N+1, N+2, ... について行える

print("Yes" if E <= 2*(V-1) else "No")
0