結果

問題 No.1219 Mancala Combo
ユーザー mlihua09mlihua09
提出日時 2020-09-04 22:13:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 82,196 KB
実行使用メモリ 103,352 KB
最終ジャッジ日時 2024-05-04 22:37:08
合計ジャッジ時間 2,601 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,132 KB
testcase_01 AC 33 ms
53,724 KB
testcase_02 AC 35 ms
54,248 KB
testcase_03 AC 33 ms
53,500 KB
testcase_04 AC 33 ms
52,528 KB
testcase_05 AC 32 ms
52,476 KB
testcase_06 AC 33 ms
53,080 KB
testcase_07 AC 33 ms
52,888 KB
testcase_08 AC 34 ms
52,188 KB
testcase_09 AC 34 ms
53,772 KB
testcase_10 AC 34 ms
52,796 KB
testcase_11 AC 34 ms
52,956 KB
testcase_12 AC 34 ms
52,832 KB
testcase_13 AC 34 ms
53,364 KB
testcase_14 AC 37 ms
51,952 KB
testcase_15 AC 35 ms
52,556 KB
testcase_16 AC 35 ms
53,356 KB
testcase_17 AC 63 ms
88,304 KB
testcase_18 AC 76 ms
89,728 KB
testcase_19 AC 61 ms
84,496 KB
testcase_20 AC 77 ms
92,780 KB
testcase_21 AC 57 ms
81,508 KB
testcase_22 AC 71 ms
86,144 KB
testcase_23 AC 72 ms
95,836 KB
testcase_24 AC 62 ms
82,924 KB
testcase_25 AC 65 ms
84,608 KB
testcase_26 AC 69 ms
90,072 KB
testcase_27 AC 82 ms
100,864 KB
testcase_28 AC 85 ms
103,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

A = [0] + list(map(int, input().split()))

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