結果
| 問題 |
No.3220 Forest Creation
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-08-01 22:49:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 145 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 82,172 KB |
| 実行使用メモリ | 88,720 KB |
| 最終ジャッジ日時 | 2025-08-01 22:49:16 |
| 合計ジャッジ時間 | 4,416 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 22 WA * 23 |
ソースコード
n=int(input()) a=list(map(int,input().split())) p1=sum(a) p2=sum(a[i]*i for i in range(n)) print(["No","Yes"][p1==n and p2%2==0 and p2<=2*(n-1)])
sasa8uyauya