結果

問題 No.1219 Mancala Combo
ユーザー anagohirameanagohirame
提出日時 2020-09-02 23:33:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 82,200 KB
実行使用メモリ 102,676 KB
最終ジャッジ日時 2024-05-03 11:45:27
合計ジャッジ時間 2,687 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,348 KB
testcase_01 AC 35 ms
53,132 KB
testcase_02 AC 36 ms
52,396 KB
testcase_03 AC 36 ms
52,696 KB
testcase_04 AC 36 ms
53,288 KB
testcase_05 AC 36 ms
53,272 KB
testcase_06 AC 36 ms
53,700 KB
testcase_07 AC 36 ms
52,076 KB
testcase_08 AC 37 ms
53,224 KB
testcase_09 AC 35 ms
52,744 KB
testcase_10 AC 36 ms
53,724 KB
testcase_11 AC 35 ms
52,692 KB
testcase_12 AC 36 ms
52,284 KB
testcase_13 AC 37 ms
52,872 KB
testcase_14 AC 37 ms
52,628 KB
testcase_15 AC 35 ms
52,944 KB
testcase_16 AC 36 ms
51,760 KB
testcase_17 AC 64 ms
87,308 KB
testcase_18 AC 70 ms
89,652 KB
testcase_19 AC 61 ms
84,724 KB
testcase_20 AC 70 ms
91,708 KB
testcase_21 AC 58 ms
81,388 KB
testcase_22 AC 65 ms
86,056 KB
testcase_23 AC 69 ms
95,040 KB
testcase_24 AC 62 ms
82,540 KB
testcase_25 AC 60 ms
83,660 KB
testcase_26 AC 69 ms
88,720 KB
testcase_27 AC 77 ms
100,012 KB
testcase_28 AC 83 ms
102,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

t = 0
ok = True
for i in range(n-1, -1, -1):
	t += a[i]
	if t % (i+1) != 0:
		ok = False
		break

print("Yes" if ok else "No")
0