//main int main() { int tests; scanf("%d",&tests); while(tests != 0) { addrev(); tests--; } return 0; }
static uint_fast8_t lychrel(uint_fast16_t x) { static uint8_t n[DIGITS]; static uint8_t r[DIGITS]; uint_fast8_t d, i; d = decimal(n, x); addrev(r, n, &d); for (i = 0; i < 25; ++i) { if (addrev(n, r, &d)) return 0; if (addrev(r, n, &d)) return 0; } return 1; }