結果

問題 No.1219 Mancala Combo
ユーザー mlihua09mlihua09
提出日時 2020-09-04 22:13:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 108,356 KB
最終ジャッジ日時 2023-08-17 15:57:11
合計ジャッジ時間 4,443 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,228 KB
testcase_01 AC 78 ms
71,188 KB
testcase_02 AC 79 ms
71,228 KB
testcase_03 AC 78 ms
71,024 KB
testcase_04 AC 78 ms
71,256 KB
testcase_05 AC 77 ms
71,256 KB
testcase_06 AC 79 ms
71,164 KB
testcase_07 AC 77 ms
71,104 KB
testcase_08 AC 76 ms
71,220 KB
testcase_09 AC 78 ms
71,436 KB
testcase_10 AC 76 ms
71,108 KB
testcase_11 AC 77 ms
71,136 KB
testcase_12 AC 77 ms
70,928 KB
testcase_13 AC 76 ms
71,164 KB
testcase_14 AC 77 ms
71,352 KB
testcase_15 AC 76 ms
71,128 KB
testcase_16 AC 77 ms
70,984 KB
testcase_17 AC 105 ms
97,056 KB
testcase_18 AC 111 ms
97,904 KB
testcase_19 AC 102 ms
94,448 KB
testcase_20 AC 113 ms
100,492 KB
testcase_21 AC 99 ms
91,824 KB
testcase_22 AC 107 ms
95,532 KB
testcase_23 AC 113 ms
102,992 KB
testcase_24 AC 106 ms
92,744 KB
testcase_25 AC 103 ms
94,272 KB
testcase_26 AC 111 ms
98,056 KB
testcase_27 AC 118 ms
107,032 KB
testcase_28 AC 125 ms
108,356 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