結果
問題 |
No.1219 Mancala Combo
|
ユーザー |
![]() |
提出日時 | 2025-03-20 21:08:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 92 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 82,360 KB |
実行使用メモリ | 103,300 KB |
最終ジャッジ日時 | 2025-03-20 21:08:45 |
合計ジャッジ時間 | 3,416 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
n = int(input()) a = list(map(int, input().split())) s = 0 possible = True for j in range(n, 0, -1): current = a[j-1] total = current + s if total % j != 0: possible = False break k = total // j s += k print("Yes" if possible else "No")