結果

問題 No.1219 Mancala Combo
ユーザー AEnAEn
提出日時 2022-05-18 11:43:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 1,505 ms
コンパイル使用メモリ 86,688 KB
実行使用メモリ 105,924 KB
最終ジャッジ日時 2023-10-14 18:34:07
合計ジャッジ時間 7,390 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,344 KB
testcase_01 AC 79 ms
70,928 KB
testcase_02 AC 78 ms
71,244 KB
testcase_03 AC 77 ms
71,008 KB
testcase_04 WA -
testcase_05 AC 77 ms
71,108 KB
testcase_06 WA -
testcase_07 AC 79 ms
71,004 KB
testcase_08 WA -
testcase_09 AC 79 ms
71,000 KB
testcase_10 WA -
testcase_11 AC 77 ms
71,000 KB
testcase_12 WA -
testcase_13 AC 77 ms
70,748 KB
testcase_14 AC 76 ms
71,140 KB
testcase_15 AC 78 ms
71,252 KB
testcase_16 WA -
testcase_17 AC 106 ms
95,796 KB
testcase_18 WA -
testcase_19 AC 100 ms
93,304 KB
testcase_20 WA -
testcase_21 AC 98 ms
90,984 KB
testcase_22 WA -
testcase_23 AC 111 ms
101,432 KB
testcase_24 WA -
testcase_25 AC 101 ms
93,104 KB
testcase_26 WA -
testcase_27 AC 113 ms
105,120 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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