标签:scan div desc tput har ret class can 输出
1 11
2
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int t; while(scanf("%d",&t)!=EOF) { while(t--) { int k; scanf("%d",&k); if(k==1) { printf("1\n"); continue; } unsigned long n=1; int c=1; int temp=1; while(temp!=0) { temp=temp*10+1; temp=temp%k; c++; } printf("%d\n",c); } } return 0; }
标签:scan div desc tput har ret class can 输出
原文地址:https://www.cnblogs.com/chenlong991223/p/10153779.html