Submission #398833

#TimeUsernameProblemLanguageResultExecution timeMemory
398833AlexandraTarifa (COCI16_tarifa)C++14
50 / 50
1 ms316 KiB
#include <iostream> #include <string> #include <vector> #include <cmath> #include <algorithm> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int x, n, resp; cin >> x; resp = x; cin >> n; for (int i=0; i<n; i++) { int p; cin >> p; resp = resp - p + x; } cout << resp; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...