結果

問題 No.1219 Mancala Combo
ユーザー irumo8202irumo8202
提出日時 2022-01-26 18:09:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 506 ms
コンパイル使用メモリ 86,808 KB
実行使用メモリ 107,100 KB
最終ジャッジ日時 2023-08-24 23:53:53
合計ジャッジ時間 4,383 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,260 KB
testcase_01 AC 68 ms
71,100 KB
testcase_02 AC 69 ms
71,116 KB
testcase_03 AC 70 ms
71,116 KB
testcase_04 WA -
testcase_05 AC 70 ms
71,332 KB
testcase_06 WA -
testcase_07 AC 71 ms
71,280 KB
testcase_08 WA -
testcase_09 AC 71 ms
71,096 KB
testcase_10 WA -
testcase_11 AC 69 ms
71,096 KB
testcase_12 WA -
testcase_13 AC 70 ms
70,996 KB
testcase_14 AC 69 ms
71,276 KB
testcase_15 AC 70 ms
70,992 KB
testcase_16 WA -
testcase_17 AC 96 ms
95,824 KB
testcase_18 WA -
testcase_19 AC 91 ms
93,340 KB
testcase_20 WA -
testcase_21 AC 90 ms
90,984 KB
testcase_22 WA -
testcase_23 AC 100 ms
101,744 KB
testcase_24 WA -
testcase_25 AC 91 ms
93,236 KB
testcase_26 WA -
testcase_27 AC 104 ms
105,724 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = "Yes"
cnt = 0
for i in range(1, N + 1)[::-1]:
    if (A[i - 1] + cnt) % i:
        ans = "No"
        break
    if A[i - 1] >= 1:
        cnt += 1

print(ans)
0