結果

問題 No.1219 Mancala Combo
ユーザー nagissnagiss
提出日時 2020-09-04 21:42:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 30,868 KB
最終ジャッジ日時 2023-08-17 15:17:20
合計ジャッジ時間 2,686 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,796 KB
testcase_01 AC 14 ms
8,104 KB
testcase_02 AC 14 ms
7,996 KB
testcase_03 AC 14 ms
7,768 KB
testcase_04 AC 14 ms
7,820 KB
testcase_05 AC 14 ms
8,112 KB
testcase_06 AC 14 ms
7,896 KB
testcase_07 AC 14 ms
8,060 KB
testcase_08 AC 15 ms
7,972 KB
testcase_09 AC 15 ms
8,040 KB
testcase_10 AC 14 ms
7,800 KB
testcase_11 AC 14 ms
8,112 KB
testcase_12 AC 14 ms
8,008 KB
testcase_13 AC 15 ms
8,168 KB
testcase_14 AC 14 ms
8,152 KB
testcase_15 AC 14 ms
7,868 KB
testcase_16 AC 14 ms
7,856 KB
testcase_17 AC 54 ms
20,024 KB
testcase_18 AC 120 ms
24,336 KB
testcase_19 AC 50 ms
18,736 KB
testcase_20 AC 120 ms
24,712 KB
testcase_21 AC 44 ms
17,700 KB
testcase_22 AC 111 ms
22,712 KB
testcase_23 AC 63 ms
22,400 KB
testcase_24 AC 96 ms
20,376 KB
testcase_25 AC 47 ms
18,168 KB
testcase_26 AC 122 ms
23,824 KB
testcase_27 AC 70 ms
24,860 KB
testcase_28 AC 170 ms
30,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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