結果
| 問題 | No.1219 Mancala Combo |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-10-24 21:01:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 2,000 ms |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 82,316 KB |
| 実行使用メモリ | 102,448 KB |
| 最終ジャッジ日時 | 2025-10-24 21:01:42 |
| 合計ジャッジ時間 | 3,272 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
plus = 0
for i in range(N-1,-1,-1):
if((A[i] + plus) % (i+1) != 0):
print("No")
exit()
plus += (A[i] + plus)//(i+1)
print("Yes")
回転