結果

問題 No.1219 Mancala Combo
ユーザー irumo8202irumo8202
提出日時 2022-01-26 18:16:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 466 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 106,976 KB
最終ジャッジ日時 2023-08-25 00:03:27
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,328 KB
testcase_01 AC 72 ms
71,156 KB
testcase_02 AC 71 ms
71,164 KB
testcase_03 AC 72 ms
71,248 KB
testcase_04 AC 71 ms
71,348 KB
testcase_05 AC 72 ms
71,280 KB
testcase_06 AC 71 ms
71,188 KB
testcase_07 AC 71 ms
71,328 KB
testcase_08 AC 72 ms
71,280 KB
testcase_09 AC 70 ms
71,412 KB
testcase_10 AC 72 ms
71,188 KB
testcase_11 AC 71 ms
71,340 KB
testcase_12 AC 72 ms
71,276 KB
testcase_13 AC 70 ms
71,272 KB
testcase_14 AC 71 ms
71,284 KB
testcase_15 AC 71 ms
71,228 KB
testcase_16 AC 71 ms
71,324 KB
testcase_17 AC 97 ms
95,820 KB
testcase_18 AC 103 ms
96,948 KB
testcase_19 AC 95 ms
93,336 KB
testcase_20 AC 105 ms
99,652 KB
testcase_21 AC 92 ms
91,088 KB
testcase_22 AC 99 ms
94,324 KB
testcase_23 AC 104 ms
101,796 KB
testcase_24 AC 97 ms
91,960 KB
testcase_25 AC 95 ms
93,172 KB
testcase_26 AC 103 ms
96,776 KB
testcase_27 AC 109 ms
105,468 KB
testcase_28 AC 117 ms
106,976 KB
権限があれば一括ダウンロードができます

ソースコード

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
    cnt += (A[i - 1] + cnt) // i

print(ans)
0