結果

問題 No.1219 Mancala Combo
ユーザー NoneNone
提出日時 2021-02-24 02:43:59
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 1,360 ms
コンパイル使用メモリ 81,496 KB
実行使用メモリ 102,608 KB
最終ジャッジ日時 2023-10-24 04:57:52
合計ジャッジ時間 5,057 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,432 KB
testcase_01 AC 37 ms
53,432 KB
testcase_02 AC 37 ms
53,432 KB
testcase_03 AC 38 ms
53,432 KB
testcase_04 AC 37 ms
53,432 KB
testcase_05 AC 37 ms
53,432 KB
testcase_06 AC 36 ms
53,432 KB
testcase_07 AC 36 ms
53,432 KB
testcase_08 AC 37 ms
53,432 KB
testcase_09 AC 36 ms
53,432 KB
testcase_10 AC 37 ms
53,432 KB
testcase_11 AC 37 ms
53,432 KB
testcase_12 AC 37 ms
53,432 KB
testcase_13 AC 37 ms
53,432 KB
testcase_14 AC 38 ms
53,432 KB
testcase_15 AC 37 ms
53,432 KB
testcase_16 AC 37 ms
53,432 KB
testcase_17 AC 65 ms
87,832 KB
testcase_18 AC 70 ms
88,676 KB
testcase_19 AC 62 ms
85,292 KB
testcase_20 AC 72 ms
93,300 KB
testcase_21 AC 58 ms
80,940 KB
testcase_22 AC 67 ms
86,100 KB
testcase_23 AC 70 ms
95,796 KB
testcase_24 AC 63 ms
83,660 KB
testcase_25 AC 60 ms
83,100 KB
testcase_26 AC 70 ms
88,620 KB
testcase_27 AC 74 ms
99,472 KB
testcase_28 AC 83 ms
102,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int, input().split()))
cnt=0
for i in range(1,N+1)[::-1] :
    a=A[i-1]+cnt
    if a%i==0:
        cnt+=a//i
    else:
        print("No")
        exit()
print("Yes")
0