結果
問題 |
No.1219 Mancala Combo
|
ユーザー |
![]() |
提出日時 | 2020-09-09 21:32:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 215 ms / 2,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 229 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 30,432 KB |
最終ジャッジ日時 | 2024-12-16 08:39:04 |
合計ジャッジ時間 | 3,794 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) A=[0]+[int(i) for i in input().split()] ct=0 chk=True for i in range(1,n+1)[::-1]: if (A[i]+ct)%i!=0: chk=False else: ct+=(A[i]+ct)//i print("Yes" if chk else "No")