一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?
Input
输入数据有若干组,每组数据包含二个整数a,b(0
#include <cstdio>
#include <algorithm>
using namespace std;
int main(void){
int a,b;
int c;
while(~scanf("%d%d",&a,&b)){
c=0;
if(a==0 && b==0){
break;
}
for(int i=0;i<100;i++){
if((a*100+i)%b==0){
if(c==0){
printf("%02d",i);
}
else{
printf(" %02d",i);
}
c++;
}
}
printf("\n");
}
return 0;
}