結果

問題 No.1219 Mancala Combo
ユーザー ronpooronpoo
提出日時 2023-08-31 08:38:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 1,362 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 107,092 KB
最終ジャッジ日時 2023-08-31 08:38:58
合計ジャッジ時間 7,451 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,368 KB
testcase_01 AC 72 ms
71,396 KB
testcase_02 AC 73 ms
71,444 KB
testcase_03 AC 73 ms
71,124 KB
testcase_04 WA -
testcase_05 AC 71 ms
71,308 KB
testcase_06 WA -
testcase_07 AC 71 ms
71,268 KB
testcase_08 WA -
testcase_09 AC 71 ms
71,332 KB
testcase_10 WA -
testcase_11 AC 71 ms
71,252 KB
testcase_12 WA -
testcase_13 AC 72 ms
71,128 KB
testcase_14 AC 72 ms
71,328 KB
testcase_15 AC 72 ms
71,420 KB
testcase_16 WA -
testcase_17 AC 100 ms
96,284 KB
testcase_18 WA -
testcase_19 AC 97 ms
93,488 KB
testcase_20 WA -
testcase_21 AC 92 ms
91,220 KB
testcase_22 WA -
testcase_23 AC 104 ms
101,988 KB
testcase_24 WA -
testcase_25 AC 96 ms
93,264 KB
testcase_26 WA -
testcase_27 AC 112 ms
105,508 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))

cnt = 0
for i in range(N-1, -1, -1):
    if A[i] > i+1 or (A[i] + cnt) % (i+1) != 0:
        print('No')
        exit()
    if A[i] > 0:
        cnt += 1
print('Yes')
0