Submission #83041

# Submission time Handle Problem Language Result Execution time Memory
83041 2018-11-04T10:56:14 Z jvalsortav Tarifa (COCI16_tarifa) C++14
50 / 50
3 ms 884 KB
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cctype>
#include <ctime>
#include <set>
#include <string>
#include <map>

using namespace std;

int n, x, a, b; 

int main() {
	cin >> n;
	cin >> a;
	x = a;
	a = n*(a + 1);
	for (int i = 0; i < x; i++){
		cin >> b;
		a += -b;
	}
	cout << a;
return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 504 KB Output is correct
2 Correct 2 ms 616 KB Output is correct
3 Correct 2 ms 732 KB Output is correct
4 Correct 2 ms 732 KB Output is correct
5 Correct 2 ms 732 KB Output is correct
6 Correct 2 ms 780 KB Output is correct
7 Correct 2 ms 836 KB Output is correct
8 Correct 2 ms 884 KB Output is correct
9 Correct 3 ms 884 KB Output is correct
10 Correct 3 ms 884 KB Output is correct