結果
| 問題 |
No.1219 Mancala Combo
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-05 04:02:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 2,000 ms |
| コード長 | 240 bytes |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 81,968 KB |
| 実行使用メモリ | 102,280 KB |
| 最終ジャッジ日時 | 2024-11-27 06:06:36 |
| 合計ジャッジ時間 | 3,321 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
import sys
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
cnt = 0
for i in range(N-1, -1, -1):
if (A[i]+cnt)%(i+1)!=0:
print('No')
exit()
cnt += (A[i]+cnt)//(i+1)
print('Yes')