結果

問題 No.1219 Mancala Combo
ユーザー roarisroaris
提出日時 2020-09-05 04:02:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 105,712 KB
最終ジャッジ日時 2023-08-18 03:38:02
合計ジャッジ時間 4,821 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,492 KB
testcase_01 AC 74 ms
71,300 KB
testcase_02 AC 75 ms
71,120 KB
testcase_03 AC 74 ms
71,296 KB
testcase_04 AC 74 ms
71,488 KB
testcase_05 AC 74 ms
71,424 KB
testcase_06 AC 74 ms
71,296 KB
testcase_07 AC 74 ms
71,252 KB
testcase_08 AC 75 ms
71,304 KB
testcase_09 AC 74 ms
71,488 KB
testcase_10 AC 75 ms
71,180 KB
testcase_11 AC 75 ms
71,280 KB
testcase_12 AC 75 ms
71,420 KB
testcase_13 AC 73 ms
71,252 KB
testcase_14 AC 74 ms
71,120 KB
testcase_15 AC 74 ms
71,544 KB
testcase_16 AC 74 ms
71,360 KB
testcase_17 AC 100 ms
95,144 KB
testcase_18 AC 104 ms
96,120 KB
testcase_19 AC 98 ms
92,724 KB
testcase_20 AC 108 ms
98,892 KB
testcase_21 AC 96 ms
90,372 KB
testcase_22 AC 101 ms
93,660 KB
testcase_23 AC 105 ms
101,068 KB
testcase_24 AC 100 ms
91,412 KB
testcase_25 AC 95 ms
92,508 KB
testcase_26 AC 106 ms
96,076 KB
testcase_27 AC 110 ms
104,440 KB
testcase_28 AC 117 ms
105,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

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

print('Yes')
0