Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 406 Weeks Ago, 2 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 17 Sep 2017 My Price 7.00

rectangular board

Alice and Bob are playing a game. They have a rectangular board of size n*m.The board contains n*m small grids of unit area. In each turn a player has to choose a particular grid and all the grids lying in the same column and the same row as that grid (including that grid) are destroyed and the game is played independently in the remaining four or fewer smaller rectangular boards. Both the players play alternatively.The player who cannot move loses.
Assuming both the players play optimally and as always Alice starts the game, find the winner.

 

 

Input

 

  • The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows
  • Each test cases contains two space separated integers n and m denoting the number or rows and columns of the board

 

 

Output

 

  • For each test case, output a single line containing the answer to the problem i.e print 'Alice' (without qoutes) if Alice wins or 'Bob' (without qoutes) if Bob wins.

 

 

Constraints

 

  • 1 = T = 50
  • 1 = n = 20
  • 1 = m = 20

 

 

Example

Input: 1 2 2 Output: Bob

Answers

(5)
Status NEW Posted 17 Sep 2017 12:09 PM My Price 7.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)