aboutsummaryrefslogtreecommitdiff
path: root/tests/ii/calls/reference.cc
blob: c5ca6ca915c2b3a69e30f88a062cd3f2ac1e5dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

#include <cstdint>
#include <iostream>
int main() {
    int count;
    if (!(std::cin >> count)) return 1;
    for (int i = 0; i < count; ++i) {
        std::int64_t n, x, y;
        if (!(std::cin >> n >> x >> y)) return 1;
        std::cout << x + y << ':' << x << ':' << x + 1 << ':' << y - 1
                  << ':' << n * (n + 1) / 2 << '\n';
    }
}