시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 | 512 MB | 7 | 2 | 2 | 33.333% |
Two players, X and Y, play the following game:
Write a program div, which determines who wins if both players play optimally.
On the first line of the standard input is the positive integer T – the number of games in this test case.
After that, for each i = 0, 1, …, T – 1:
The standard output should be one line with T symbols (without separators), one symbol for each game in the test case. The i-th symbol should be X, if X wins in the i-th game, no matter how Y plays; otherwise, this symbol should be Y.
3 5 3 7 X 1 2 3 4 6 8 4 13 Y 5 10 6 11 2 8 9 3 6 1 12 X 1 4 5 7 9 11
XYX