結果
| 問題 | No.1219 Mancala Combo |
| コンテスト | |
| ユーザー |
qumazaki
|
| 提出日時 | 2020-09-05 00:57:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 2,000 ms |
| コード長 | 256 bytes |
| 記録 | |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 103,168 KB |
| 最終ジャッジ日時 | 2024-11-26 21:22:55 |
| 合計ジャッジ時間 | 2,837 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
n = int(input())
a = [0] + list(map(int,input().split()))
cnt = 0
for i in range(n,0,-1):
ai = a[i]
if(ai > i):
print('No')
exit()
ai += cnt
if(ai % i != 0):
print('No')
exit()
cnt += ai//i
print('Yes')
qumazaki