結果
| 問題 |
No.1219 Mancala Combo
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-04 21:53:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 228 ms / 2,000 ms |
| コード長 | 278 bytes |
| コンパイル時間 | 820 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 30,768 KB |
| 最終ジャッジ日時 | 2024-11-26 12:39:06 |
| 合計ジャッジ時間 | 3,231 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
n, *a = map(int, open(0).read().split())
cum = 0
for i in range(n - 1, 0, -1):
if a[i] + cum == 0:
continue
if a[i] + cum >= i + 1 and (a[i] + cum) % (i + 1) == 0:
cum += (a[i] + cum) // (i + 1)
else:
print('No')
exit()
print('Yes')