結果

問題 No.1219 Mancala Combo
ユーザー chineristACchineristAC
提出日時 2020-10-08 20:52:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 981 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 106,964 KB
最終ジャッジ日時 2023-09-27 11:59:35
合計ジャッジ時間 4,695 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,484 KB
testcase_01 AC 65 ms
71,468 KB
testcase_02 AC 67 ms
71,468 KB
testcase_03 AC 68 ms
71,220 KB
testcase_04 AC 67 ms
71,216 KB
testcase_05 AC 68 ms
71,212 KB
testcase_06 AC 67 ms
71,332 KB
testcase_07 AC 66 ms
71,336 KB
testcase_08 AC 65 ms
71,376 KB
testcase_09 AC 66 ms
71,184 KB
testcase_10 AC 66 ms
71,336 KB
testcase_11 AC 67 ms
71,052 KB
testcase_12 AC 67 ms
71,220 KB
testcase_13 AC 66 ms
71,244 KB
testcase_14 AC 67 ms
71,180 KB
testcase_15 AC 66 ms
71,456 KB
testcase_16 AC 65 ms
71,456 KB
testcase_17 AC 94 ms
95,948 KB
testcase_18 AC 96 ms
97,088 KB
testcase_19 AC 89 ms
93,376 KB
testcase_20 AC 101 ms
99,532 KB
testcase_21 AC 86 ms
91,048 KB
testcase_22 AC 96 ms
94,344 KB
testcase_23 AC 97 ms
101,828 KB
testcase_24 AC 89 ms
91,972 KB
testcase_25 AC 88 ms
93,396 KB
testcase_26 AC 98 ms
97,072 KB
testcase_27 AC 100 ms
105,436 KB
testcase_28 AC 113 ms
106,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))

S = 0
for i in range(N-1,-1,-1):
    if (A[i] + S)%(i+1):
        exit(print("No"))
    else:
        S += (A[i]+S)//(i+1)

print("Yes")
0