Submission #339761

#TimeUsernameProblemLanguageResultExecution timeMemory
339761ammar2000Tarifa (COCI16_tarifa)C++17
50 / 50
1 ms364 KiB
#include <bits/stdc++.h> using namespace std; int x,n,m,sum; int main() { cin>>x>>n; while (n--) { cin>>m; sum+=x; sum-=m; } cout <<sum+x; }
#Verdict Execution timeMemoryGrader output
Fetching results...