結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,884 KB
testcase_01 AC 16 ms
8,132 KB
testcase_02 AC 14 ms
7,800 KB
testcase_03 AC 15 ms
7,764 KB
testcase_04 WA -
testcase_05 AC 14 ms
8,116 KB
testcase_06 WA -
testcase_07 AC 14 ms
8,172 KB
testcase_08 WA -
testcase_09 AC 14 ms
8,204 KB
testcase_10 WA -
testcase_11 AC 15 ms
8,136 KB
testcase_12 WA -
testcase_13 AC 14 ms
8,076 KB
testcase_14 AC 14 ms
8,092 KB
testcase_15 AC 15 ms
7,868 KB
testcase_16 WA -
testcase_17 AC 55 ms
20,008 KB
testcase_18 WA -
testcase_19 AC 51 ms
18,656 KB
testcase_20 WA -
testcase_21 AC 47 ms
17,704 KB
testcase_22 WA -
testcase_23 AC 63 ms
22,508 KB
testcase_24 WA -
testcase_25 AC 48 ms
18,180 KB
testcase_26 WA -
testcase_27 AC 68 ms
24,980 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

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:f+=1
  if y%x:exit(print("No"))
print("Yes")
0