40分,希望各位大佬给予帮助!(求求了)
查看原帖
40分,希望各位大佬给予帮助!(求求了)
996200
President_Zhao楼主2023/7/9 17:20
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    int b,total=0;
    while(cin>>a)
    {
    	if(a==3)
    	{
    		total++;
		}
	}
	cin>>b;
	if(total!=b)
	{
		cout<<"NO";
	}
	else
	{
		cout<<"YES";
	}
}
2023/7/9 17:20
加载中...