結果

問題 No.1219 Mancala Combo
ユーザー tonyu0tonyu0
提出日時 2020-09-04 21:47:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 30,852 KB
最終ジャッジ日時 2023-08-17 15:22:35
合計ジャッジ時間 2,276 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,916 KB
testcase_01 AC 14 ms
8,064 KB
testcase_02 AC 14 ms
7,884 KB
testcase_03 AC 14 ms
7,848 KB
testcase_04 WA -
testcase_05 AC 15 ms
8,108 KB
testcase_06 WA -
testcase_07 AC 15 ms
8,144 KB
testcase_08 WA -
testcase_09 AC 14 ms
8,140 KB
testcase_10 WA -
testcase_11 AC 15 ms
8,212 KB
testcase_12 WA -
testcase_13 AC 15 ms
8,096 KB
testcase_14 AC 14 ms
8,084 KB
testcase_15 AC 15 ms
7,820 KB
testcase_16 WA -
testcase_17 AC 52 ms
19,928 KB
testcase_18 WA -
testcase_19 AC 47 ms
18,572 KB
testcase_20 WA -
testcase_21 AC 43 ms
17,600 KB
testcase_22 WA -
testcase_23 AC 59 ms
22,868 KB
testcase_24 WA -
testcase_25 AC 45 ms
18,144 KB
testcase_26 WA -
testcase_27 AC 66 ms
24,816 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, *a = map(int, open(0).read().split())

cum = 0
for i in range(n - 1, 0, -1):
    if a[i] + cum == 0:
        continue
    if (a[i] + cum) % (i + 1) == 0:
        cum += 1
    else:
        print('No')
        exit()
print('Yes')
0