結果

問題 No.1219 Mancala Combo
ユーザー chielochielo
提出日時 2020-09-04 21:34:29
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 106,872 KB
最終ジャッジ日時 2023-08-17 15:06:29
合計ジャッジ時間 4,209 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,464 KB
testcase_01 AC 69 ms
71,272 KB
testcase_02 AC 71 ms
71,132 KB
testcase_03 AC 69 ms
71,396 KB
testcase_04 AC 70 ms
71,268 KB
testcase_05 AC 69 ms
71,564 KB
testcase_06 AC 70 ms
71,404 KB
testcase_07 AC 70 ms
71,412 KB
testcase_08 AC 69 ms
71,480 KB
testcase_09 AC 68 ms
71,264 KB
testcase_10 AC 69 ms
71,596 KB
testcase_11 AC 68 ms
71,060 KB
testcase_12 AC 68 ms
71,296 KB
testcase_13 AC 69 ms
71,300 KB
testcase_14 AC 69 ms
71,464 KB
testcase_15 AC 69 ms
71,332 KB
testcase_16 AC 69 ms
71,492 KB
testcase_17 AC 102 ms
95,940 KB
testcase_18 AC 107 ms
97,036 KB
testcase_19 AC 94 ms
93,472 KB
testcase_20 AC 105 ms
99,568 KB
testcase_21 AC 92 ms
91,400 KB
testcase_22 AC 99 ms
94,244 KB
testcase_23 AC 104 ms
101,896 KB
testcase_24 AC 95 ms
92,072 KB
testcase_25 AC 92 ms
93,220 KB
testcase_26 AC 104 ms
96,948 KB
testcase_27 AC 107 ms
105,572 KB
testcase_28 AC 115 ms
106,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
c = 0
for i in range(n - 1, -1, -1):
    if (a[i] + c) % (i + 1) != 0:
        print('No')
        exit()
    c += (a[i] + c) // (i + 1)
print('Yes')
0