結果

問題 No.1219 Mancala Combo
ユーザー takakintakakin
提出日時 2020-09-09 21:31:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 237 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 30,984 KB
最終ジャッジ日時 2023-08-22 11:56:13
合計ジャッジ時間 3,923 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,852 KB
testcase_01 AC 15 ms
7,800 KB
testcase_02 AC 15 ms
7,828 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 WA -
testcase_05 AC 16 ms
7,976 KB
testcase_06 WA -
testcase_07 AC 15 ms
7,828 KB
testcase_08 WA -
testcase_09 AC 15 ms
7,872 KB
testcase_10 WA -
testcase_11 AC 15 ms
7,808 KB
testcase_12 WA -
testcase_13 AC 15 ms
7,796 KB
testcase_14 AC 16 ms
7,740 KB
testcase_15 AC 15 ms
7,872 KB
testcase_16 WA -
testcase_17 AC 89 ms
20,076 KB
testcase_18 WA -
testcase_19 AC 83 ms
18,724 KB
testcase_20 WA -
testcase_21 AC 73 ms
17,656 KB
testcase_22 WA -
testcase_23 AC 105 ms
22,428 KB
testcase_24 WA -
testcase_25 AC 79 ms
18,252 KB
testcase_26 WA -
testcase_27 AC 120 ms
24,960 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
A=[0]+[int(i) for i in input().split()]
ct=0
chk=True
for i in range(1,n+1)[::-1]:
	if (A[i]+ct)%i!=0:
		chk=False
	else:
		ct+=(A[i]+ct)
print("Yes" if chk else "No")
0