标签:des blog http io ar os sp java for
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 24673 Accepted Submission(s): 10429
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<cstdlib> #include<algorithm> #include<string> #include<queue> #include<vector> #include<set> using namespace std; int n,m; int main() { while(scanf("%d%d",&n,&m)!=EOF) { if(n==0&&m==0) break; n=n*100; int sum=0; for(int i=0;i<=99;i++) if((n+i)%m==0) { sum++; if(sum>1) printf(" %02d",i); else printf("%02d",i); } printf("\n"); } return 0; }
标签:des blog http io ar os sp java for
原文地址:http://www.cnblogs.com/a972290869/p/4099534.html