#include #include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define modulo 1000000007 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 1000000000000000000 int N,K; vector A; long long f(long long x){ deque D0,D1; rep(i,N){ if(i>N>>K; A.resize(N); rep(i,N){ scanf("%lld",&A[i]); } if(K==0){ long long ans = 0LL; rep(i,N){ ans += A[i]-A[0]; } cout<<-ans<