用字符串解的,40分求助
查看原帖
用字符串解的,40分求助
1331242
Robotic_Rat楼主2024/7/27 15:36
#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	int sum=0;
	cin>>s;
	for(int i=0;i<s.length();i++){
		if((char)s[i]==51){
			sum++;	
		}
	}
	if(sum==3)cout<<"YES";
	else cout<<"NO";
	return 0;
}
2024/7/27 15:36
加载中...