BFBIGTHN - "If Bigger than" in BF


Brainf*** is a Turing complete language...
what ever the arithmatic/logic operation other langs like C or LISP can do ...BF can do it also !

your task is to write a BF code to test if a is Bigger Than b ..

Input:


tow_digit_number t (number of test cases)followed by end_of_line charachter


then t lines each of them contains:


    tow_digit_number a
    followed by space
    then tow_digit_number b
    followed by ASCII(10) (End of line).


(at the end of the file there is EOF charachter which value is (-1))

output:


the logic value of (a > b) for each test case

(don't forget to print any space after each output such like '\n' or '\t' or space' ')

Example:


inputs:


09
41 92
99 40
01 20
23 00
00 01
20 30
00 09
99 00
11 12

outputs:


0
1
0
1
0
0
0
1
0

    BE CAREFUL: ONLY BRAINF*** AVAILABLE FOR SUBMIT .
    
ENJOY ;)

Note : maybe it will be helpful for you to know that a never equal to b in the test cases ;)


Added by:Mostafa 36a2
Date:2012-12-27
Time limit:1s-5s
Source limit:2000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:BF
Resource:BF it self ^_^

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.