結果
| 問題 | No.1219 Mancala Combo |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:08:07 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 274 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 96,240 KB |
| 実行使用メモリ | 114,116 KB |
| 最終ジャッジ日時 | 2026-07-07 12:52:42 |
| 合計ジャッジ時間 | 4,105 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
s = 0
possible = True
for j in range(n, 0, -1):
current = a[j-1]
total = current + s
if total % j != 0:
possible = False
break
k = total // j
s += k
print("Yes" if possible else "No")
lam6er