結果
| 問題 | No.1219 Mancala Combo |
| コンテスト | |
| ユーザー |
anagohirame
|
| 提出日時 | 2020-08-24 19:39:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 2,000 ms |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 319 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 101,376 KB |
| 最終ジャッジ日時 | 2024-11-24 11:15:46 |
| 合計ジャッジ時間 | 2,954 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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