Submission #167922

#TimeUsernameProblemLanguageResultExecution timeMemory
167922ToniBTarifa (COCI16_tarifa)C++14
50 / 50
2 ms380 KiB
#include <iostream> using namespace std; int main(){ int sol, n; cin >> sol >> n; sol = sol * (n + 1); for(int i = 0; i < n; ++i){ int a; cin >> a; sol -= a; } cout << sol; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...