結果
問題 |
No.1219 Mancala Combo
|
ユーザー |
![]() |
提出日時 | 2025-03-31 17:19:18 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 88 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,512 KB |
実行使用メモリ | 103,252 KB |
最終ジャッジ日時 | 2025-03-31 17:20:02 |
合計ジャッジ時間 | 2,750 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
n = int(input()) a = list(map(int, input().split())) sum_b = 0 possible = True for i in range(n, 0, -1): current_a = a[i-1] total = current_a + sum_b if total % i != 0: possible = False break b = total // i sum_b += b print("Yes" if possible else "No")