2099

2020-02-26  本文已影响0人  好名字_4d27
image.png

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        int a,b,c,i;
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
              a = sc.nextInt();
              b = sc.nextInt();

            if(a==0) break;
            for (c= i = 0; i <100 ; i++) {
                if((a*100+i)%b==0) {
                    if (c++==0)
                        System.out.printf("%02d",i);
                    else
                        System.out.printf(" %02d",i);

                }
            }
            System.out.println();

        }
    }
}
上一篇下一篇

猜你喜欢

热点阅读