#include <stdio.h> int main() { int x,s=1,n=1; scanf("%d",&x); while(s<x) { s=s*10+1; n++; } while(1) { printf("%d",s/x); if(s%x==0) break; s=(s%x)*10+1; n++; } printf(" %d",n); return 0; }
c语言编程练习题:7-42 整除光棍
作者:yunjinqi
类别:编程
日期:2023-05-29 15:07:45
阅读:613 次
消耗积分:0 分
版权所有,转载本站文章请注明出处:云子量化, https://www.yunjinqi.top/article/167
最新文章
系统当前共有 404 篇文章