結果
| 問題 |
No.3220 Forest Creation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-01 22:00:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 205 bytes |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 20,920 KB |
| 最終ジャッジ日時 | 2025-08-01 22:00:24 |
| 合計ジャッジ時間 | 4,034 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 45 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
V = sum(A)
E = 2 * V - 2
B = sum([i * A[i] for i in range(N + 1)])
print(E, B)
if E >= B and (E - B) & 1 == 0:
print("Yes")
else:
print("No")