sd0061, the legend of Beihang University ACM-ICPC Team, retired
last year leaving a group of noobs. Noobs have no idea how to deal with
There are
The coach asks constroy to make a list of contestants. constroy looks into these hints and finds out:
Now, you are in charge of making the list for constroy.
There are multiple test cases (about
For each test case:
The first line contains five integers
The second line contains
The
unsigned x = A, y = B, z = C; unsigned rng61() { unsigned t; x ^= x << 16; x ^= x >> 5; x ^= x << 1; t = x; x = y; y = z; z = t ^ x ^ y; return z; }
For each test case, output "Case #
3 3 1 1 1 0 1 2 2 2 2 2 2 1 1
Case #1: 1 1 202755 Case #2: 405510 405510