結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,444 KB
testcase_01 AC 74 ms
71,276 KB
testcase_02 AC 74 ms
71,068 KB
testcase_03 AC 71 ms
71,296 KB
testcase_04 WA -
testcase_05 AC 70 ms
71,084 KB
testcase_06 WA -
testcase_07 AC 70 ms
71,224 KB
testcase_08 WA -
testcase_09 AC 71 ms
71,280 KB
testcase_10 WA -
testcase_11 AC 71 ms
71,324 KB
testcase_12 WA -
testcase_13 AC 70 ms
70,984 KB
testcase_14 AC 71 ms
71,348 KB
testcase_15 AC 75 ms
71,072 KB
testcase_16 WA -
testcase_17 AC 99 ms
95,752 KB
testcase_18 WA -
testcase_19 AC 94 ms
93,388 KB
testcase_20 WA -
testcase_21 AC 91 ms
91,036 KB
testcase_22 WA -
testcase_23 AC 106 ms
101,804 KB
testcase_24 WA -
testcase_25 AC 94 ms
93,056 KB
testcase_26 WA -
testcase_27 AC 108 ms
105,452 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