結果

問題 No.1219 Mancala Combo
ユーザー Keroru
提出日時 2020-09-04 22:25:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 109,820 KB
最終ジャッジ日時 2024-11-26 14:29:07
合計ジャッジ時間 2,852 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

n,*a=map(int,open(0).read().split())
t=n
k=1
while a:
 c=a.pop()
 if c==0:
  0
 elif c+t==n:
  t+=c
 else:
  k=0
 n-=1
print('YNeos'[k::2])
0