結果
問題 |
No.1219 Mancala Combo
|
ユーザー |
![]() |
提出日時 | 2020-08-24 19:39:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,456 KB |
実行使用メモリ | 102,856 KB |
最終ジャッジ日時 | 2024-11-24 11:15:43 |
合計ジャッジ時間 | 2,597 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 14 WA * 12 |
ソースコード
n = int(input()) a = list(map(int, input().split())) total = 0 ok = True for i in range(n-1, -1, -1): if (a[i] + total) % (i+1) == 0: total += (a[i] + total - 1) // (i+1) else: ok = False break print("Yes" if ok else "No")