Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
112 B
0
Indexable
Never
#include <iostream>

int main() {
    uint64_t n;
    std::cin >> n;
    std::cout << n * (n + 1) / 2 << "\n";
}