結果

問題 No.1219 Mancala Combo
ユーザー c-yan
提出日時 2020-09-04 21:36:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 29,140 KB
最終ジャッジ日時 2024-11-26 12:08:48
合計ジャッジ時間 2,456 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 12 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

N, *A = map(int, open(0).read().split())

c = 0
for i in range(N - 1, -1, -1):
    if c + A[i] == 0:
        continue
    if c + A[i] == i - 1:
        c += 1
    else:
        print('No')
        exit()
print('Yes')
0