結果
問題 | No.1219 Mancala Combo |
ユーザー |
![]() |
提出日時 | 2020-12-01 11:12:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 92 ms / 2,000 ms |
コード長 | 198 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 82,648 KB |
実行使用メモリ | 107,436 KB |
最終ジャッジ日時 | 2024-09-13 02:52:23 |
合計ジャッジ時間 | 2,762 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
N = int(input())A = [0]+list(map(int,input().split()))temp = 0for i in reversed(range(1,N+1)):if (A[i]+temp)%i!=0:print('No')exit()temp += (A[i]+temp)//iprint('Yes')