Submission #511159

#TimeUsernameProblemLanguageResultExecution timeMemory
511159MulhamadlahTetris (COCI17_tetris)C++17
0 / 80
1 ms304 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll x,n,a[1000009]; int main() { cin>>x>>n;ll sum=0; for(ll i=0; i<n;i++) { cin>>a[i]; sum+=x; sum-=a[i]; } cout<<sum+x; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...