标签:
-------------------------------------
AC代码:
1 import java.util.Scanner; 2 3 public class Main { 4 5 public static void main(String[] args) { 6 7 Scanner sc=new Scanner(System.in); 8 9 while(true){ 10 11 int a=sc.nextInt(); 12 int b=sc.nextInt(); 13 14 if(a==0 && b==0) break; 15 16 a*=100; 17 for(int i=0;i<100;i++){ 18 if((a+i)%b==0) System.out.printf("%02d ",i); 19 } 20 System.out.println(); 21 22 } 23 24 } 25 26 }
题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=842
标签:
原文地址:http://www.cnblogs.com/cc11001100/p/5825297.html