aboutsummaryrefslogtreecommitdiff
path: root/01_introductory_problems/missing_number_1083.cpp
blob: 527abb2cfe101713d927f9fb0b985a854b37e348 (plain)
1
2
3
4
5
6
7
8
9
#include <iostream>

int main() {
	long long n, m, sum{0};
	std::cin >> n;
	while (std::cin >> m)
		sum += m;
	std::cout << n*(n+1)/2 - sum << std::endl;
}

Generated with cgit - Back to sebastiano.tronto.net