#include <stdio.h>
#include <string.h>
int ProcuraNumero (int NumeroProcurado, int NumeroAlvo) {
char NumeroProcuradoString[16];
char NumeroAlvoString[16];
sprintf (NumeroProcuradoString
, "%d", NumeroProcurado
); sprintf (NumeroAlvoString
, "%d", NumeroAlvo
);
return strstr (NumeroAlvoString
, NumeroProcuradoString
) != NULL
? 1 : 0; }
int main(void) {
printf("%d:", ProcuraNumero
(13, 1354)); printf("%d:", ProcuraNumero
(13, 1054)); // your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBQcm9jdXJhTnVtZXJvIChpbnQgTnVtZXJvUHJvY3VyYWRvLCBpbnQgTnVtZXJvQWx2bykgewogICAgY2hhciBOdW1lcm9Qcm9jdXJhZG9TdHJpbmdbMTZdOwogICAgY2hhciBOdW1lcm9BbHZvU3RyaW5nWzE2XTsKCiAgICBzcHJpbnRmIChOdW1lcm9Qcm9jdXJhZG9TdHJpbmcsICIlZCIsIE51bWVyb1Byb2N1cmFkbyk7CiAgICBzcHJpbnRmIChOdW1lcm9BbHZvU3RyaW5nLCAiJWQiLCBOdW1lcm9BbHZvKTsKCiAgICByZXR1cm4gc3Ryc3RyIChOdW1lcm9BbHZvU3RyaW5nLCBOdW1lcm9Qcm9jdXJhZG9TdHJpbmcpICE9IE5VTEwgPyAxIDogMDsKfQogCmludCBtYWluKHZvaWQpIHsKCXByaW50ZigiJWQ6IiwgUHJvY3VyYU51bWVybyAoMTMsIDEzNTQpKTsKCXByaW50ZigiJWQ6IiwgUHJvY3VyYU51bWVybyAoMTMsIDEwNTQpKTsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9Cg==