Submission #30880

# Submission time Handle Problem Language Result Execution time Memory
30880 2017-07-30T07:22:08 Z shashwatchandra Tarifa (COCI16_tarifa) C++14
0 / 50
0 ms 2020 KB
#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 = 10 + (nextmonth - a);
	}
	cout << nextmonth;
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2020 KB Output isn't correct
2 Incorrect 0 ms 2020 KB Output isn't correct
3 Incorrect 0 ms 2020 KB Output isn't correct
4 Incorrect 0 ms 2020 KB Output isn't correct
5 Incorrect 0 ms 2020 KB Output isn't correct
6 Incorrect 0 ms 2020 KB Output isn't correct
7 Incorrect 0 ms 2020 KB Output isn't correct
8 Incorrect 0 ms 2020 KB Output isn't correct
9 Incorrect 0 ms 2020 KB Output isn't correct
10 Incorrect 0 ms 2020 KB Output isn't correct