TSET - "If Equal" in BF
your task is simple... you will read tow numbers a,b then print 1 if a==b or print 0 if a!=b
a and b are one_digit_numbers {0,1,2,3,4,5,6,7,8,9}.
NOTE : The Only Available language For This Problem Is BrainF***.
Input
there are 10 test cases ... in each one there is:
one_digit_number a
followed by space
then one_digit_number b
followed by end_of_line charachter
Output
the logic value of a==b
Example
Input:
4 7
8 8
9 7
0 1
..
Output:
0
1
0
0
..
Score is your Code Length.
hide comments
(Tjandra Satria Gunawan)(曾毅昆):
2013-01-03 04:23:14
+1 for Robert Gerbicz This problem must have strong test case ;-)
|
|
Robert Gerbicz:
2013-01-03 04:23:14
There is more than 1 input set (probably three), but this does not cover all 100 possible input case. One of my broken code is still get AC. It would be better to test all of these cases at least once.
|
|
(Tjandra Satria Gunawan)(曾毅昆):
2013-01-03 04:23:14
@Aditya Pande: wow seems that you made an invalid code! :-P Last edit: 2012-12-20 16:37:00 |
|
Mostafa 36a2:
2013-01-03 04:23:14
@Mitch Schwartz Sorry for this.. it was a fluke as you said :)..
|
|
Aditya Pande:
2013-01-03 04:23:14
got it
|
|
Mitch Schwartz:
2013-01-03 04:23:14
"internal error" -- so the judge crashed. Why?
|
Added by: | Mostafa 36a2 |
Date: | 2012-12-16 |
Time limit: | 1s |
Source limit: | 250B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | BF |
Resource: | BF it self ^_^ |