結果

問題 No.1219 Mancala Combo
ユーザー 👑 rin204rin204
提出日時 2022-07-04 15:33:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 505 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 108,496 KB
最終ジャッジ日時 2023-08-20 23:10:54
合計ジャッジ時間 4,524 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,380 KB
testcase_01 AC 70 ms
71,440 KB
testcase_02 AC 70 ms
71,312 KB
testcase_03 AC 70 ms
71,272 KB
testcase_04 AC 71 ms
71,344 KB
testcase_05 AC 71 ms
71,364 KB
testcase_06 AC 71 ms
71,260 KB
testcase_07 AC 72 ms
71,444 KB
testcase_08 AC 71 ms
71,236 KB
testcase_09 AC 69 ms
71,452 KB
testcase_10 AC 69 ms
71,112 KB
testcase_11 AC 70 ms
71,540 KB
testcase_12 AC 69 ms
71,268 KB
testcase_13 AC 70 ms
71,444 KB
testcase_14 AC 70 ms
71,248 KB
testcase_15 AC 69 ms
71,384 KB
testcase_16 AC 70 ms
71,284 KB
testcase_17 AC 100 ms
97,020 KB
testcase_18 AC 104 ms
98,440 KB
testcase_19 AC 94 ms
94,456 KB
testcase_20 AC 108 ms
101,032 KB
testcase_21 AC 92 ms
92,020 KB
testcase_22 AC 100 ms
95,632 KB
testcase_23 AC 105 ms
103,280 KB
testcase_24 AC 98 ms
92,788 KB
testcase_25 AC 96 ms
94,260 KB
testcase_26 AC 103 ms
98,036 KB
testcase_27 AC 108 ms
107,124 KB
testcase_28 AC 115 ms
108,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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