Untitled
unknown
plain_text
2 years ago
112 B
3
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"; }