Untitled
Anonymous
plain_text
10/04/2023 3:27 PM
152 B
11
Indexable
#include <iostream>
int main() {
uint64_t n;
std::cin >> n;
std::cout << n * (n + 1) / 2 << "\n";
}Editor is loading...
#include <iostream>
int main() {
uint64_t n;
std::cin >> n;
std::cout << n * (n + 1) / 2 << "\n";
}