結果

問題 No.1219 Mancala Combo
ユーザー 👑 rin204rin204
提出日時 2022-07-04 15:33:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 103,724 KB
最終ジャッジ日時 2024-05-08 05:00:20
合計ジャッジ時間 2,814 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,668 KB
testcase_01 AC 34 ms
52,836 KB
testcase_02 AC 32 ms
51,892 KB
testcase_03 AC 33 ms
52,832 KB
testcase_04 AC 31 ms
52,732 KB
testcase_05 AC 33 ms
53,372 KB
testcase_06 AC 32 ms
52,872 KB
testcase_07 AC 31 ms
52,832 KB
testcase_08 AC 32 ms
51,876 KB
testcase_09 AC 36 ms
52,556 KB
testcase_10 AC 32 ms
52,216 KB
testcase_11 AC 32 ms
52,208 KB
testcase_12 AC 32 ms
51,864 KB
testcase_13 AC 32 ms
52,488 KB
testcase_14 AC 32 ms
52,360 KB
testcase_15 AC 32 ms
53,552 KB
testcase_16 AC 31 ms
53,156 KB
testcase_17 AC 61 ms
89,792 KB
testcase_18 AC 78 ms
90,696 KB
testcase_19 AC 69 ms
85,340 KB
testcase_20 AC 81 ms
93,120 KB
testcase_21 AC 55 ms
81,916 KB
testcase_22 AC 64 ms
86,924 KB
testcase_23 AC 67 ms
96,632 KB
testcase_24 AC 59 ms
84,184 KB
testcase_25 AC 63 ms
85,288 KB
testcase_26 AC 68 ms
90,788 KB
testcase_27 AC 76 ms
100,884 KB
testcase_28 AC 78 ms
103,724 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