#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;
}
# |
결과 |
실행 시간 |
메모리 |
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 |