#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n,k,cost=0,mid; cin>>n>>k; vector arr; unsigned long long int temp; for(int i=0;i>temp; arr.push_back(temp); } if(n%2!=0) mid=(n/2)+1; else mid=n/2; int low,high; if(k!=0){ low=mid-k; high=mid+k; } else { low=1; high=n; } for(int i=low-1;i