#include using namespace std; typedef long long int ll; #define pb push_back #define mp make_pair #define fi first #define se second void init() { int n,k; cin >> n >> k ; int c[n+5],i; for(i=0;i> c[i]; if(k==0) { ll ans=0ll; for(i=0;in-1) //ans+=((ll)c[n-1]); // cout << ans ; } } int main() { clock_t time1 = clock(); #ifndef ONLINE_JUDGE //freopen("IN.in","r",stdin); #else //ONLINE_JUDGE #endif ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); init(); clock_t time2 = clock(); cerr <<"Time: " <<(double)(time2-time1)/CLOCKS_PER_SEC * 100000 <<" seconds" <