結果
| 問題 |
No.1478 Simple Sugoroku
|
| コンテスト | |
| ユーザー |
yuusanlondon
|
| 提出日時 | 2021-04-16 20:43:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 343 bytes |
| コンパイル時間 | 178 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 88,704 KB |
| 最終ジャッジ日時 | 2024-07-02 23:15:18 |
| 合計ジャッジ時間 | 4,499 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 30 WA * 8 |
ソースコード
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)
yuusanlondon