結果
| 問題 |
No.1478 Simple Sugoroku
|
| コンテスト | |
| ユーザー |
yuusanlondon
|
| 提出日時 | 2021-04-16 20:48:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 82,208 KB |
| 実行使用メモリ | 90,384 KB |
| 最終ジャッジ日時 | 2024-07-02 23:23:19 |
| 合計ジャッジ時間 | 3,777 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 WA * 5 |
ソースコード
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)
yuusanlondon