Codeforces Round 685 (Div. 2)
D
Circle Game
Codeforces
1700
原题
← CE1 →
翻译中…

Utkarsh is forced to play yet another one of Ashish's games. The game progresses turn by turn and as usual, Ashish moves first.

翻译中…

Consider the 2D plane. There is a token which is initially at $(0,0)$. In one move a player must increase either the $x$ coordinate or the $y$ coordinate of the token by exactly $k$. In doing so, the player must ensure that the token stays within a (Euclidean) distance $d$ from $(0,0)$.

翻译中…

In other words, if after a move the coordinates of the token are $(p,q)$, then $p^2 + q^2 \leq d^2$ must hold.

翻译中…

The game ends when a player is unable to make a move. It can be shown that the game will end in a finite number of moves. If both players play optimally, determine who will win.

翻译中…

Input

翻译中…

The first line contains a single integer $t$ ($1 \leq t \leq 100$) — the number of test cases.

翻译中…

The only line of each test case contains two space separated integers $d$ ($1 \leq d \leq 10^5$) and $k$ ($1 \leq k \leq d$).

翻译中…

Output

翻译中…

For each test case, if Ashish wins the game, print "Ashish", otherwise print "Utkarsh" (without the quotes).

翻译中…

Note

翻译中…

In the first test case, one possible sequence of moves can be

翻译中…

$(0, 0) \xrightarrow{\text{Ashish }} (0, 1) \xrightarrow{\text{Utkarsh }} (0, 2)$.

翻译中…

Ashish has no moves left, so Utkarsh wins.

翻译中…

image

翻译中…

样例

Input #1
5
2 1
5 2
10 3
25 4
15441 33
Output #1
Utkarsh
Ashish
Utkarsh
Utkarsh
Ashish
InputCopy OutputCopy
题目信息
题号
1451D
时间限制
2 s
内存限制
256 MB
标签
博弈论
计算几何
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。