結果
| 問題 | No.1219 Mancala Combo |
| コンテスト | |
| ユーザー |
anagohirame
|
| 提出日時 | 2020-08-24 19:39:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 241 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 101,632 KB |
| 最終ジャッジ日時 | 2026-05-18 10:44:33 |
| 合計ジャッジ時間 | 2,360 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
total = 0
ok = True
for i in range(n-1, -1, -1):
if (a[i] + total) % (i+1) == 0:
total += (a[i] + total + 1) // (i+1)
else:
ok = False
break
print("Yes" if ok else "No")
anagohirame