結果

問題 No.1219 Mancala Combo
ユーザー tyawanmusityawanmusi
提出日時 2020-09-04 21:48:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 30,860 KB
最終ジャッジ日時 2023-08-17 15:24:10
合計ジャッジ時間 2,720 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,808 KB
testcase_01 AC 15 ms
8,084 KB
testcase_02 AC 15 ms
7,820 KB
testcase_03 AC 15 ms
7,916 KB
testcase_04 AC 15 ms
7,912 KB
testcase_05 AC 15 ms
8,200 KB
testcase_06 AC 15 ms
7,776 KB
testcase_07 AC 15 ms
8,248 KB
testcase_08 AC 15 ms
7,804 KB
testcase_09 AC 15 ms
8,080 KB
testcase_10 AC 14 ms
7,800 KB
testcase_11 AC 15 ms
8,184 KB
testcase_12 AC 15 ms
7,816 KB
testcase_13 AC 15 ms
8,048 KB
testcase_14 AC 15 ms
8,016 KB
testcase_15 AC 15 ms
7,852 KB
testcase_16 AC 15 ms
7,808 KB
testcase_17 AC 55 ms
20,004 KB
testcase_18 AC 119 ms
24,248 KB
testcase_19 AC 50 ms
18,688 KB
testcase_20 AC 125 ms
24,760 KB
testcase_21 AC 46 ms
17,656 KB
testcase_22 AC 110 ms
22,616 KB
testcase_23 AC 63 ms
22,340 KB
testcase_24 AC 93 ms
20,344 KB
testcase_25 AC 49 ms
18,316 KB
testcase_26 AC 118 ms
23,972 KB
testcase_27 AC 71 ms
24,784 KB
testcase_28 AC 166 ms
30,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
f=0
for i in range(n-1,-1,-1):
  x=i+1
  y=a[i]+f
  if y%x:exit(print("No"))
  f+=y//x
print("Yes")
0