mengxin


私信TA

用户名:1000001

访问量:6591

签 名:

等  级
排  名 491
经  验 4502
参赛次数 0
文章发表 73
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

参考代码:

#include<stdio.h>
#include<string.h>
int main(){
    int x,y;
    while(scanf("%d%d",&x,&y)!=EOF){
            if(x==0&&y==0)
            return 0;
        int r=x%y;
        int c=0;
        for(int i=0;i<=99;i++){
            if((r*100+i)%y==0){
                    c++;
                if(i<10&&i>=0){
                        if(c==1)
                        printf("0%d",i);
                        else if(c>1)
                        printf(" 0%d",i);
                    }
                else if(i>=10&&i<=99){
                        if(c==1)
                        printf("%d",i);
                        else if(c>1)
                        printf(" %d",i);
                    }
            }
        }
    printf("\n");
    }
    return 0;
}

 

0.0分

0 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区