結果

問題 No.1219 Mancala Combo
ユーザー 👑 H20H20
提出日時 2020-12-01 11:12:45
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,328 KB
実行使用メモリ 108,792 KB
最終ジャッジ日時 2023-10-11 03:26:37
合計ジャッジ時間 4,375 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,464 KB
testcase_01 AC 71 ms
71,480 KB
testcase_02 AC 71 ms
71,392 KB
testcase_03 AC 72 ms
71,696 KB
testcase_04 AC 72 ms
71,508 KB
testcase_05 AC 73 ms
71,308 KB
testcase_06 AC 73 ms
71,596 KB
testcase_07 AC 71 ms
71,344 KB
testcase_08 AC 72 ms
71,652 KB
testcase_09 AC 74 ms
71,472 KB
testcase_10 AC 73 ms
71,480 KB
testcase_11 AC 72 ms
71,396 KB
testcase_12 AC 73 ms
71,352 KB
testcase_13 AC 72 ms
71,660 KB
testcase_14 AC 73 ms
71,296 KB
testcase_15 AC 73 ms
71,304 KB
testcase_16 AC 71 ms
71,672 KB
testcase_17 AC 99 ms
97,144 KB
testcase_18 AC 105 ms
98,232 KB
testcase_19 AC 96 ms
94,532 KB
testcase_20 AC 108 ms
101,016 KB
testcase_21 AC 93 ms
92,084 KB
testcase_22 AC 101 ms
95,476 KB
testcase_23 AC 106 ms
103,304 KB
testcase_24 AC 99 ms
92,860 KB
testcase_25 AC 96 ms
94,276 KB
testcase_26 AC 105 ms
98,416 KB
testcase_27 AC 110 ms
107,264 KB
testcase_28 AC 120 ms
108,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = [0]+list(map(int,input().split()))
temp = 0
for i in reversed(range(1,N+1)):
    if (A[i]+temp)%i!=0:
        print('No')
        exit()
    temp += (A[i]+temp)//i
print('Yes')
0