#include<iostream> #include<math.h> #include<stdlib.h> #include<string> using namespace std; void main(){ long int a,b; while(cin>>a>>b){ if(a==0&&b==0){ break; } a*=100; for(int s=0;;){ if(a%b==0){ s=a%100; bool t=true; if(t) if(s<10){ cout<<"0"<<s; } else{ cout<<s; } t=false; while(s<100){ if(t) if(s<10){ cout<<" "<<"0"<<s; } else cout<<" "<<s; t=true; s+=b; } cout<<endl; break; } else { ++a; } } } }
杭电ACM 第2099题
最新推荐文章于 2024-08-02 18:20:17 发布