http://acm.nyist.net/JudgeOnline/problem.php?pid=205

View Code
 1 #include<stdio.h>
 2 #include<string.h>
 3 int main()
 4 {
 5     long long  t;
 6     int len;
 7     char str[1000010];
 8     scanf("%lld",&t);
 9     while(t--)
10     {
11         long long  yushu=0;
12         scanf("%s",str);
13         len=strlen(str);
14         for(int i=0;i<len;i++)
15         {
16             yushu=yushu*10+str[i]-'0';
17             yushu=yushu%10003;
18         }
19         printf("%lld\n",yushu);
20     }
21 }

 

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-10-03
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2021-07-12
  • 2021-09-03
  • 2021-08-13
  • 2022-01-08
  • 2021-11-24
  • 2021-08-13
  • 2022-12-23
相关资源
相似解决方案