# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
511159 | Mulhamadlah | Tetris (COCI17_tetris) | C++17 | 1 ms | 304 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |