#include #include #include #define MAX_LEN (256) void main(void){ int a = 0 , b = 0; int inputA = scanf("%d",&a); if(inputA == 2){ printf("Aの入力エラー\n"); } int inputB = scanf("%d\n",&b); if(inputB == 2){ printf("Bの入力エラー\n"); } for(int i = a ; i <= b;i++){ char str[MAX_LEN]; snprintf(str, MAX_LEN, "%d", i); if( i/3 == 0 && strstr(str,'3') != NULL ){ printf("%d\n",i); } if( strstr(str,"3") != NULL ){ printf("%d\n",i); } } }