地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=273

 1 #include<stdio.h>
 2 #include<stdlib.h>
 3 #include<string.h>
 4 int main()
 5 {
 6     char a[205];
 7     int n,m,i,count;
 8     scanf("%d",&n);
 9     while(n--)
10     {
11         count=0;
12         scanf("%s",a);
13         m=strlen(a);
14         for(i=0;i<m;i++)
15           if(a[i]>=97&&a[i]<=122)
16           count++;
17         if(count%26==0)
18         printf("z\n");
19         else
20         printf("%c\n",count%26+96);
21     }
22     //system("pause");
23     return 0;
24 }
25         

相关文章:

  • 2021-11-21
  • 2021-08-06
  • 2021-08-27
  • 2021-04-10
  • 2021-12-10
  • 2021-07-16
  • 2021-06-16
猜你喜欢
  • 2021-07-20
  • 2022-01-01
  • 2022-12-23
  • 2021-11-24
  • 2021-07-30
  • 2021-12-01
  • 2021-11-01
相关资源
相似解决方案