結果

問題 No.1478 Simple Sugoroku
ユーザー yuusanlondonyuusanlondon
提出日時 2021-04-16 20:48:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 99,056 KB
最終ジャッジ日時 2023-09-15 21:58:03
合計ジャッジ時間 5,945 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,156 KB
testcase_01 AC 76 ms
71,360 KB
testcase_02 AC 78 ms
71,200 KB
testcase_03 AC 75 ms
71,320 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 77 ms
71,448 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 76 ms
71,532 KB
testcase_10 AC 75 ms
71,608 KB
testcase_11 WA -
testcase_12 AC 77 ms
71,208 KB
testcase_13 AC 105 ms
98,632 KB
testcase_14 AC 103 ms
98,308 KB
testcase_15 AC 104 ms
98,824 KB
testcase_16 AC 104 ms
98,752 KB
testcase_17 AC 105 ms
98,744 KB
testcase_18 AC 103 ms
98,864 KB
testcase_19 AC 104 ms
98,588 KB
testcase_20 AC 105 ms
99,056 KB
testcase_21 AC 105 ms
98,732 KB
testcase_22 AC 103 ms
98,644 KB
testcase_23 AC 104 ms
98,620 KB
testcase_24 AC 102 ms
98,820 KB
testcase_25 AC 103 ms
98,728 KB
testcase_26 AC 103 ms
98,972 KB
testcase_27 AC 103 ms
98,548 KB
testcase_28 AC 100 ms
97,252 KB
testcase_29 AC 99 ms
97,372 KB
testcase_30 AC 101 ms
97,352 KB
testcase_31 AC 99 ms
97,564 KB
testcase_32 AC 100 ms
97,612 KB
testcase_33 AC 102 ms
97,768 KB
testcase_34 AC 103 ms
97,720 KB
testcase_35 AC 101 ms
97,952 KB
testcase_36 AC 102 ms
97,968 KB
testcase_37 AC 101 ms
98,368 KB
testcase_38 AC 103 ms
98,432 KB
testcase_39 AC 105 ms
98,364 KB
testcase_40 AC 106 ms
98,256 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]+(currsum+i+1)/(m-i-1))
    exit()
  else:
    currsum+=b[i]
print(n-1)
0