結果
問題 |
No.1219 Mancala Combo
|
ユーザー |
![]() |
提出日時 | 2020-09-09 21:31:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 340 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 30,456 KB |
最終ジャッジ日時 | 2024-12-16 08:38:00 |
合計ジャッジ時間 | 4,025 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 12 |
ソースコード
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) print("Yes" if chk else "No")