結果

問題 No.1219 Mancala Combo
ユーザー c-yanc-yan
提出日時 2020-09-04 22:46:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 29,520 KB
最終ジャッジ日時 2024-05-05 03:20:27
合計ジャッジ時間 2,594 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,624 KB
testcase_01 AC 26 ms
10,624 KB
testcase_02 AC 25 ms
10,624 KB
testcase_03 AC 26 ms
10,624 KB
testcase_04 AC 26 ms
10,752 KB
testcase_05 AC 26 ms
10,752 KB
testcase_06 AC 25 ms
10,624 KB
testcase_07 AC 25 ms
10,624 KB
testcase_08 AC 25 ms
10,752 KB
testcase_09 AC 24 ms
10,752 KB
testcase_10 AC 24 ms
10,752 KB
testcase_11 AC 25 ms
10,752 KB
testcase_12 AC 25 ms
10,624 KB
testcase_13 AC 27 ms
10,752 KB
testcase_14 AC 25 ms
10,624 KB
testcase_15 AC 27 ms
10,752 KB
testcase_16 AC 26 ms
10,624 KB
testcase_17 AC 64 ms
21,096 KB
testcase_18 AC 124 ms
23,900 KB
testcase_19 AC 58 ms
20,036 KB
testcase_20 AC 134 ms
25,068 KB
testcase_21 AC 62 ms
19,020 KB
testcase_22 AC 117 ms
23,160 KB
testcase_23 AC 73 ms
23,624 KB
testcase_24 AC 107 ms
21,512 KB
testcase_25 AC 63 ms
19,684 KB
testcase_26 AC 130 ms
23,884 KB
testcase_27 AC 82 ms
25,376 KB
testcase_28 AC 169 ms
29,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, *A = map(int, open(0).read().split())

c = 0
for i in range(N - 1, -1, -1):
    if (A[i] + c) % (i + 1) != 0:
        print('No')
        break
    c += (A[i] + c) // (i + 1)
else:
    print('Yes')
0