Submit  All submissions  Best solutions  Back to list 
MAXMINBF  Bigger, smaller or equal 
Wersja polska  English version 
Given two integers a and b you have to determine, whether a is bigger than b, smaller than b or they are equal. The trick is that you have to solve this problem in Brainfuck.
Input
Two integers a and b (0 ≤ a, b ≤ 9). They are separated with a space and followed by an endline.
Output
Exactly one number:
 0  if a = b
 1  if a > b
 2  if a < b
Example
Input:
2 3 Output: 2
Added by:  Piotr Kąkol 
Date:  20140913 
Time limit:  1s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  BF 
Resource:  Problem MAXMINBR by Marcin Sasinowski 
hide comments
20200828 17:26:50 Rafail Loizou
Oh just solved this... never realized that it doesn't affect the ranking 

20140917 02:03:32 Piotr KÄ…kol
Yeah. It's high time. :) 

20140914 02:49:46 Mitch Schwartz
Glad to see that brainfuck has its own section now! :D 