結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,820 KB
testcase_01 AC 15 ms
8,252 KB
testcase_02 AC 14 ms
7,996 KB
testcase_03 AC 15 ms
7,784 KB
testcase_04 AC 15 ms
7,964 KB
testcase_05 AC 15 ms
8,076 KB
testcase_06 AC 15 ms
7,796 KB
testcase_07 AC 15 ms
8,068 KB
testcase_08 AC 15 ms
7,820 KB
testcase_09 AC 15 ms
8,164 KB
testcase_10 AC 15 ms
7,964 KB
testcase_11 AC 15 ms
8,104 KB
testcase_12 AC 15 ms
7,856 KB
testcase_13 AC 15 ms
8,224 KB
testcase_14 AC 15 ms
8,064 KB
testcase_15 AC 15 ms
7,784 KB
testcase_16 AC 15 ms
7,972 KB
testcase_17 AC 54 ms
20,200 KB
testcase_18 AC 124 ms
24,276 KB
testcase_19 AC 51 ms
18,732 KB
testcase_20 AC 128 ms
24,812 KB
testcase_21 AC 45 ms
17,684 KB
testcase_22 AC 112 ms
22,792 KB
testcase_23 AC 63 ms
22,384 KB
testcase_24 AC 101 ms
20,428 KB
testcase_25 AC 50 ms
18,324 KB
testcase_26 AC 127 ms
23,840 KB
testcase_27 AC 71 ms
24,804 KB
testcase_28 AC 166 ms
30,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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