Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

MAXMINBF - Bigger, smaller or equal

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.


Two integers a and b (0 ≤ a, b ≤ 9). They are separated with a space and followed by an endline.


Exactly one number:

  • 0 - if a = b
  • 1 - if a > b
  • 2 - if a < b


2 3 Output: 2

Added by:Piotr Kąkol
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Resource:Problem MAXMINBR by Marcin Sasinowski

hide comments
2020-08-28 17:26:50 Rafail Loizou
Oh just solved this... never realized that it doesn't affect the ranking
2014-09-17 02:03:32 Piotr KÄ…kol
Yeah. It's high time. :-)
2014-09-14 02:49:46 Mitch Schwartz
Glad to see that brainfuck has its own section now! :D
© All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.