P2953 [USACO09OPEN] Cow Digit Game S
题目描述
Bessie is playing a number game against Farmer John, and she wants you to help her achieve victory.
Game i starts with an integer N\_i (1
输入格式
\* Line 1: A single integer: G
\* Lines 2..G+1: Line i+1 contains the single integer: N\_i
输出格式
\* Lines 1..G: Line i contains 'YES' if Bessie can win game i, and 'NO' otherwise.
说明/提示
For the first game, Bessie simply takes the number 9 and wins. For the second game, Bessie must take 1 (since she cannot take 0), and then FJ can win by taking 9.