답안 #885034

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
885034 2023-12-08T20:39:08 Z unexpectedbro Tarifa (COCI16_tarifa) C++14
5 / 50
0 ms 348 KB
#include<bits/stdc++.h>
using namespace std;
int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int x, n; cin >> x >> n;
	long long total = n * x;
	for (int i = 0; i < n; i++) {
		int x ; cin >> x;
		if (i)total -= x;
	}
	cout << total << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Incorrect 0 ms 344 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Incorrect 0 ms 348 KB Output isn't correct
5 Correct 0 ms 348 KB Output is correct
6 Incorrect 0 ms 348 KB Output isn't correct
7 Incorrect 0 ms 348 KB Output isn't correct
8 Incorrect 0 ms 348 KB Output isn't correct
9 Incorrect 0 ms 348 KB Output isn't correct
10 Incorrect 0 ms 348 KB Output isn't correct