题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4062
#include<bits/stdc++.h>
using namespace std;
#define debug puts("YES");
#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)
#define ll long long
#define lrt int l,int r,int rt
#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
#define root l,r,rt
#define mst(a,b) memset((a),(b),sizeof(a))
const int maxn =1e5+5;
const int mod=1e9+7;
const int ub=1e6;
ll powmod(ll x,ll y){ll t; for(t=1;y;y>>=1,x=x*x%mod) if(y&1) t=t*x%mod; return t;}
ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*
题目大意:给定一个权值序列,
权值代表该位置的生长速度,现在有一个机器人,
起始点为0点, 每当它路过一个点该点累加位置对应的权值,
机器人有个最大步数,每个序列走完后的权值是整体的最小值,
给定序列长度和权值和最大步数,询问最小值最大是