Submission #595331

#TimeUsernameProblemLanguageResultExecution timeMemory
595331Trisanu_DasTarifa (COCI16_tarifa)C++17
0 / 50
1 ms304 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int x, n; cin >> x >> n; int ans = 0, y; for(int i = 0; i < n; i++){cin >> y; ans += x - y;} cout << ans << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...