文章

310

粉丝

0

获赞

123

访问

19.5k

头像
ZOJ 题解:
P1324 浙江大学机试题
发布于2026年2月5日 14:38
阅读数 35

#include<stdio.h>
#include<string.h>
int main()
{
    char s[110];
    scanf("%s",s);
    int l=strlen(s);
    int countz=0;
    int counto=0;
    int countj=0;
    for(int i=0;i<l;i++)
    {
        if(s[i]=='Z')
        {
            countz++;
        }
        if(s[i]=='O')
        {
            counto++;
        }
        if(s[i]=='J')
        {
            countj++;
        }
   &n...

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发