답안 #167657

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
167657 2019-12-09T09:22:28 Z atoiz Tarifa (COCI16_tarifa) C++14
0 / 50
2 ms 504 KB
#include <bits/stdc++.h>

using namespace std;

#define FOR(i, a, b) for (int i = a; i <= b; ++i)
#define FORA(i, a) for (auto &i : a)
#define FORB(i, a, b) for (int i = a; i >= b; --i)
#define SZ(a) ((int) a.size())
#define ALL(a) a.begin(), a.end()

int main()
{
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	int x, n;
	cin >> x >> n;
	int ans = x * (n + 1);
	FOR(i, 0, x - 1) {
		int y;
		cin >> y;
		ans -= y;
	}
	cout << ans << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 504 KB Output isn't correct
2 Incorrect 2 ms 376 KB Output isn't correct
3 Incorrect 2 ms 252 KB Output isn't correct
4 Incorrect 2 ms 376 KB Output isn't correct
5 Incorrect 2 ms 376 KB Output isn't correct
6 Incorrect 2 ms 376 KB Output isn't correct
7 Incorrect 2 ms 376 KB Output isn't correct
8 Incorrect 2 ms 376 KB Output isn't correct
9 Incorrect 2 ms 376 KB Output isn't correct
10 Incorrect 2 ms 376 KB Output isn't correct