結果

問題 No.1219 Mancala Combo
ユーザー 👑 tamatotamato
提出日時 2020-09-04 21:37:15
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 355 bytes
コンパイル時間 686 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 105,560 KB
最終ジャッジ日時 2023-08-17 15:09:51
合計ジャッジ時間 3,927 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,748 KB
testcase_01 AC 70 ms
71,424 KB
testcase_02 AC 67 ms
71,548 KB
testcase_03 AC 73 ms
71,568 KB
testcase_04 AC 69 ms
71,588 KB
testcase_05 AC 70 ms
71,744 KB
testcase_06 AC 69 ms
71,496 KB
testcase_07 AC 69 ms
71,352 KB
testcase_08 AC 71 ms
71,508 KB
testcase_09 AC 68 ms
71,756 KB
testcase_10 AC 69 ms
71,624 KB
testcase_11 AC 68 ms
71,832 KB
testcase_12 AC 69 ms
71,508 KB
testcase_13 AC 69 ms
71,800 KB
testcase_14 AC 70 ms
71,788 KB
testcase_15 AC 68 ms
71,672 KB
testcase_16 AC 69 ms
71,420 KB
testcase_17 AC 117 ms
95,500 KB
testcase_18 AC 104 ms
96,620 KB
testcase_19 AC 94 ms
93,144 KB
testcase_20 AC 104 ms
98,664 KB
testcase_21 AC 89 ms
90,728 KB
testcase_22 AC 99 ms
93,900 KB
testcase_23 AC 104 ms
101,276 KB
testcase_24 AC 94 ms
91,240 KB
testcase_25 AC 92 ms
93,084 KB
testcase_26 AC 99 ms
96,348 KB
testcase_27 AC 108 ms
104,672 KB
testcase_28 AC 113 ms
105,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

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

    S = 0
    for i in range(N-1, -1, -1):
        S += A[i]
        if S % (i+1) != 0 or A[i] > i+1:
            print("No")
            exit()
    print("Yes")


if __name__ == '__main__':
    main()
0