結果

問題 No.1219 Mancala Combo
ユーザー c-yanc-yan
提出日時 2020-09-04 21:36:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 29,524 KB
最終ジャッジ日時 2024-05-04 21:47:38
合計ジャッジ時間 2,946 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 27 ms
10,624 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 25 ms
10,624 KB
testcase_06 WA -
testcase_07 AC 26 ms
10,752 KB
testcase_08 WA -
testcase_09 AC 25 ms
10,624 KB
testcase_10 WA -
testcase_11 AC 25 ms
10,624 KB
testcase_12 WA -
testcase_13 AC 24 ms
10,624 KB
testcase_14 AC 25 ms
10,624 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 65 ms
21,288 KB
testcase_18 WA -
testcase_19 AC 60 ms
20,036 KB
testcase_20 WA -
testcase_21 AC 57 ms
19,028 KB
testcase_22 WA -
testcase_23 AC 75 ms
23,620 KB
testcase_24 WA -
testcase_25 AC 60 ms
19,684 KB
testcase_26 WA -
testcase_27 AC 79 ms
25,380 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

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