結果

問題 No.1478 Simple Sugoroku
ユーザー yuusanlondonyuusanlondon
提出日時 2021-04-16 20:55:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 98,828 KB
最終ジャッジ日時 2023-09-15 22:17:15
合計ジャッジ時間 6,320 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,236 KB
testcase_01 AC 79 ms
71,324 KB
testcase_02 AC 79 ms
71,380 KB
testcase_03 AC 80 ms
71,100 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 78 ms
71,452 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 78 ms
71,436 KB
testcase_10 AC 76 ms
71,552 KB
testcase_11 WA -
testcase_12 AC 78 ms
71,496 KB
testcase_13 AC 104 ms
98,608 KB
testcase_14 AC 104 ms
98,372 KB
testcase_15 AC 103 ms
98,520 KB
testcase_16 AC 106 ms
98,472 KB
testcase_17 AC 105 ms
98,616 KB
testcase_18 AC 105 ms
98,768 KB
testcase_19 AC 106 ms
98,588 KB
testcase_20 AC 104 ms
98,656 KB
testcase_21 AC 106 ms
98,524 KB
testcase_22 AC 104 ms
98,636 KB
testcase_23 AC 104 ms
98,828 KB
testcase_24 AC 105 ms
98,692 KB
testcase_25 AC 105 ms
98,696 KB
testcase_26 AC 106 ms
98,636 KB
testcase_27 AC 105 ms
98,616 KB
testcase_28 AC 104 ms
97,060 KB
testcase_29 AC 105 ms
97,500 KB
testcase_30 AC 103 ms
97,416 KB
testcase_31 AC 104 ms
97,368 KB
testcase_32 AC 104 ms
97,492 KB
testcase_33 AC 104 ms
97,784 KB
testcase_34 AC 106 ms
97,856 KB
testcase_35 AC 105 ms
97,940 KB
testcase_36 AC 105 ms
98,272 KB
testcase_37 AC 103 ms
98,160 KB
testcase_38 AC 104 ms
98,260 KB
testcase_39 AC 104 ms
98,184 KB
testcase_40 AC 104 ms
98,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import os,io,heapq
input=io.BytesIO(os.read(0,os.fstat(0).st_size)).readline
n,m=map(int,input().split())
a=list(map(int,input().split()))
b=[]
for i in range(m):
  b.append(n-a[i])
currsum=0
flag=0
for i in range(m-1,-1,-1):
  if (currsum+i+1)<=(m-i-1)*b[i]:
    print(a[0]-1+(currsum+m)/(m-i-1))
    exit()
  else:
    currsum+=b[i]
print(n-1)
0