#include <stdio.h>
int f(int a, int b) {
if (a == 0 && b == 0)
return 1;
if (a != 0 && b == 0)
return 0;
if (a == 0 && b != 0)
return 0;
return f(a / 10, b / 10);
}
int main() {
int a, b;
a
= 110, b
= 119, printf("%d, %d -> %s\n", a
, b
, (f
(a
, b
)) ? "T" : "F"); a
= -110, b
= -119, printf("%d, %d -> %s\n", a
, b
, (f
(a
, b
)) ? "T" : "F"); a
= -110, b
= 119, printf("%d, %d -> %s\n", a
, b
, (f
(a
, b
)) ? "T" : "F"); a
= 1234, b
= 214, printf("%d, %d -> %s\n", a
, b
, (f
(a
, b
)) ? "T" : "F"); a
= 567, b
= 23, printf("%d, %d -> %s\n", a
, b
, (f
(a
, b
)) ? "T" : "F"); a
= 567, b
= -23, printf("%d, %d -> %s\n", a
, b
, (f
(a
, b
)) ? "T" : "F"); a
= 567, b
= +23, printf("%d, %d -> %s\n", a
, b
, (f
(a
, b
)) ? "T" : "F"); return 0;
}
/* end */
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZihpbnQgYSwgaW50IGIpIHsKICBpZiAoYSA9PSAwICYmIGIgPT0gMCkKICAgIHJldHVybiAxOwogIGlmIChhICE9IDAgJiYgYiA9PSAwKQogICAgcmV0dXJuIDA7CiAgaWYgKGEgPT0gMCAmJiBiICE9IDApCiAgICByZXR1cm4gMDsKICByZXR1cm4gZihhIC8gMTAsIGIgLyAxMCk7Cn0KCmludCBtYWluKCkgewogIGludCBhLCBiOwogIGEgPSAgMTEwLCBiID0gIDExOSwgcHJpbnRmKCIlZCwgJWQgLT4gJXNcbiIsIGEsIGIsIChmKGEsIGIpKSA/ICJUIiA6ICJGIik7CiAgYSA9IC0xMTAsIGIgPSAtMTE5LCBwcmludGYoIiVkLCAlZCAtPiAlc1xuIiwgYSwgYiwgKGYoYSwgYikpID8gIlQiIDogIkYiKTsKICBhID0gLTExMCwgYiA9IDExOSwgIHByaW50ZigiJWQsICVkIC0+ICVzXG4iLCBhLCBiLCAoZihhLCBiKSk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