求助50分

B2078 含 k 个 3 的数

A_Dog_Of_Arlecchino @ 2023-03-22 21:15:42

#include <bits/stdc++.h>
using namespace std;
long long n,k;
long long read()
{
    int cnt=0;
    while (char n=getchar()!=' ')
    {
        if (n=='3')
        {
            cnt++;
        }
    }
    return cnt;
}
int main()
{
    n=read();
    cin>>k;
    if (n==k)
    {
        cout<<"YES";
    }
    else
    {
        cout<<"NO";
    }
    return 0;
}

by A_Dog_Of_Arlecchino @ 2023-03-22 21:27:32


by 残阳如血 @ 2023-05-01 15:38:09

@TigerDuan 考古


by 残阳如血 @ 2023-05-01 15:38:52

不能好好写吗?


|