Submit | All submissions | Best solutions | Back to list |
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 ^_^ |
hide comments
|
||||||
2013-01-03 17:09:52 Mitch Schwartz
If it doesn't stay in challenge, please add it to SHORTEN (I'm not sure how problem setting privileges work there, you might try sending Piotr KÄ…kol a PM on the forum, or asking on the IRC channel), where I'm sure Jander would join in the fun :). EDIT: OK ..message sent.(but i still think it's good here) thanks:) Last edit: 2013-01-03 04:56:43 |
||||||
2013-01-03 17:09:52 Robert Gerbicz
This is similar to your latest problem, and in challenge section we should avoid this issue. Please move to tutorial/classic and change scoring. EDIT: I think it's completely different .. hard for tutorial easy to be classical maybe should move to SHORTEN as Mitch said above. Last edit: 2013-01-03 04:55:40 |