Submission #156397

#TimeUsernameProblemLanguageResultExecution timeMemory
156397dcjTarifa (COCI16_tarifa)C++14
50 / 50
2 ms380 KiB
#include <iostream> using namespace std; int main() { int X,N,P, uk=0; cin >> X; cin >>N; for (int i=0;i<N;i++) { cin >> P; uk=uk+X-P; } cout << uk+X; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...