結果

問題 No.1219 Mancala Combo
ユーザー anagohirameanagohirame
提出日時 2020-08-24 19:39:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 82,480 KB
実行使用メモリ 101,912 KB
最終ジャッジ日時 2024-05-03 11:45:21
合計ジャッジ時間 2,552 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 35 ms
52,452 KB
testcase_04 WA -
testcase_05 AC 37 ms
53,008 KB
testcase_06 WA -
testcase_07 AC 36 ms
52,348 KB
testcase_08 WA -
testcase_09 AC 37 ms
53,696 KB
testcase_10 WA -
testcase_11 AC 35 ms
52,272 KB
testcase_12 WA -
testcase_13 AC 35 ms
52,668 KB
testcase_14 AC 35 ms
52,128 KB
testcase_15 AC 35 ms
52,900 KB
testcase_16 WA -
testcase_17 AC 65 ms
87,716 KB
testcase_18 WA -
testcase_19 AC 61 ms
84,824 KB
testcase_20 WA -
testcase_21 AC 59 ms
80,764 KB
testcase_22 WA -
testcase_23 AC 72 ms
94,696 KB
testcase_24 WA -
testcase_25 AC 62 ms
84,604 KB
testcase_26 WA -
testcase_27 AC 77 ms
99,748 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

total = 0
ok = True

for i in range(n-1, -1, -1):
	if (a[i] + total) % (i+1) == 0:
		total += (a[i] + total - 1) // (i+1)
	else:
		ok = False
		break

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