#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; }
#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; }
天 : 20275
小时 : 473078
分钟 : 28384663
秒 : 1703079780