結果

問題 No.1219 Mancala Combo
ユーザー SSlimeSSlime
提出日時 2020-09-04 21:40:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 30,684 KB
最終ジャッジ日時 2024-05-04 21:52:47
合計ジャッジ時間 2,264 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 25 ms
10,624 KB
testcase_04 WA -
testcase_05 AC 25 ms
10,624 KB
testcase_06 WA -
testcase_07 AC 24 ms
10,624 KB
testcase_08 WA -
testcase_09 AC 25 ms
10,624 KB
testcase_10 WA -
testcase_11 AC 24 ms
10,752 KB
testcase_12 WA -
testcase_13 AC 25 ms
10,624 KB
testcase_14 AC 25 ms
10,752 KB
testcase_15 AC 24 ms
10,624 KB
testcase_16 WA -
testcase_17 AC 63 ms
21,256 KB
testcase_18 WA -
testcase_19 AC 61 ms
20,132 KB
testcase_20 WA -
testcase_21 AC 54 ms
18,964 KB
testcase_22 WA -
testcase_23 AC 71 ms
23,436 KB
testcase_24 WA -
testcase_25 AC 58 ms
19,776 KB
testcase_26 WA -
testcase_27 AC 81 ms
25,280 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

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