結果
| 問題 | No.3220 Forest Creation |
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2025-08-01 21:34:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 2,000 ms |
| + 110µs | |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 96,084 KB |
| 実行使用メモリ | 97,920 KB |
| 最終ジャッジ日時 | 2026-07-13 18:20:49 |
| 合計ジャッジ時間 | 5,973 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 46 |
ソースコード
N=int(input())
A=list(map(int,input().split()))
z=0
for x in range(N,1,-1):
if A[x]==0:
continue
w=(x-2)*A[x]
if z==0:
w+=2
z+=w
y=A[1]
if y>=z and (y-z)%2==0:
print('Yes')
else:
print('No')
ゼット