結果
問題 |
No.3220 Forest Creation
|
ユーザー |
![]() |
提出日時 | 2025-08-01 22:06:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 223 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 21,056 KB |
最終ジャッジ日時 | 2025-08-02 00:01:20 |
合計ジャッジ時間 | 4,263 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 45 WA * 1 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) A=list(map(int,input().split())) LMIN=2 for i in range(2,N+1): LMIN+=(i-2)*A[i] LMAX=0 for i in range(2,N+1): LMAX+=i*A[i] if LMIN<=A[1]<=LMAX: if (LMAX-A[1])%2==0: print("Yes") else: print("No") elif A[1]>=LMAX: print("Yes") else: print("No")