結果
問題 | No.1219 Mancala Combo |
ユーザー |
|
提出日時 | 2022-06-24 17:37:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 192 ms / 2,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 30,436 KB |
最終ジャッジ日時 | 2024-11-08 11:12:30 |
合計ジャッジ時間 | 3,624 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
n=int(input()) a=list(map(int,input().split())) a_sum=0 f=True for i in range(n-1,-1,-1): if (a[i]+a_sum)%(i+1)==0: a_sum+=(a[i]+a_sum)//(i+1) else: f=False break print('Yes' if f else 'No')