結果
| 問題 | No.3220 Forest Creation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-23 09:03:42 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 81,332 KB |
| 実行使用メモリ | 85,264 KB |
| 最終ジャッジ日時 | 2026-09-23 09:03:47 |
| 合計ジャッジ時間 | 5,112 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 35 WA * 11 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
S = 0
for i in range(2,N+1):
S += i*A[i]
if A[1]==0:
if S==0:
print("Yes")
else:
print("No")
elif abs(S-A[1])%2==0:
print("Yes")
else:
print("No")