Submission #30883

#TimeUsernameProblemLanguageResultExecution timeMemory
30883shashwatchandraTarifa (COCI16_tarifa)C++14
50 / 50
0 ms2020 KiB
#include <iostream> using namespace std; int main() { int mb; cin >> mb; int months; cin >> months; int nextmonth = mb; for (int i = 0;i < months;i++){ int a; cin >> a; nextmonth += mb - a; } cout << nextmonth; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...