every cell of the network contains a non-negative integer. Each turn, a player should play out every one of the accompanying activities all together. Pick a beginning cell (r1,c1) with non-zero worth. Pick a completing cell (r2,c2) to such an extent that r1≤r2 and c1≤c2. Lessening the worth of the beginning cell by some sure non-zero integer. Pick any of the most limited ways between the two cells and either increme
Correct answer will be upvoted else Multiple Downvoted. Don't submit random answer. Computer science.
every cell of the network contains a non-negative integer. Each turn, a player should play out every one of the accompanying activities all together.
Pick a beginning cell (r1,c1) with non-zero worth.
Pick a completing cell (r2,c2) to such an extent that r1≤r2 and c1≤c2.
Lessening the worth of the beginning cell by some sure non-zero integer.
Pick any of the most limited ways between the two cells and either increment, lessening or leave the upsides of cells on this way unaltered. Note that:
a most limited way is one that goes through the most un-number of cells;
all cells on this way barring the beginning cell, yet the completing cell might be altered;
the subsequent worth of every cell should be a non-negative integer;
the cells are changed freely and not really by a similar worth.
On the off chance that the beginning and finishing cells are something very similar, according to the guidelines, the worth of the cell is diminished. No different tasks are performed.
The game closures when every one of the qualities become zero. The player who can't take action loses. It very well may be shown that the game will end in a limited number of moves if the two players play ideally.
Given the underlying framework, if the two players play ideally, would you be able to foresee who will win?
Input
The principal line contains a solitary integer t (1≤t≤10) — the number of experiments. The depiction of each experiment is as per the following.
The primary line of each experiment contains two integers n and m (1≤n,m≤100) — the components of the grid.
The following n lines contain m space isolated integers
Output
For each experiment, if Ashish dominates the match, print "Ashish", in any case print "Jeel" (without the statements).
Step by step
Solved in 4 steps with 1 images