NYOJ题目842整除的尾数
-------------------------------------
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 }