Submission #23999

#TimeUsernameProblemLanguageResultExecution timeMemory
23999TrathzTarifa (COCI16_tarifa)C++98
50 / 50
0 ms2020 KiB
#include <bits/stdc++.h> using namespace std; #define F first #define S second #define int long long #define mp make_pair #define pb push_back #define pii pair<int, int> #define ieps (int) 1e5 + 800 #define eps (int) 1e9 #define jmp exit(0) int32_t main(){ int n; cin>>n; int q; int atual = 0; cin>>q; while(q--){ atual+=n; int x; cin>>x; atual = (atual - x); } cout<<atual + n; }
#Verdict Execution timeMemoryGrader output
Fetching results...