题解
2026-04-04 20:05:02
发布于:浙江
7阅读
0回复
0点赞
跟据题目,做判断。废话不多说,直接上代码!
#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin>>s;
int cnt=0;
for(char c:s){
if(c=='4'||c=='7'){
count++;
}
}
if(cnt==4||cnt==7){
cout<<"YES";
}
else{
cout<<"NO";
}
}
全部评论 2
不对你抄袭我的代码干嘛?
4天前 来自 上海
0只是想写个题解,
对不起哈4天前 来自 浙江
0
666比我晚AC
4天前 来自 上海
0








有帮助,赞一个