70分,求助!
查看原帖
70分,求助!
545138
wxrczs楼主2021/12/15 18:50

**各位大佬,哪里错了啊,只有70分```

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	int k;
	int s=0;
	cin>>n>>k;
	while(n>1){
		if(n%10==3){
			s++;
		}
		n/=10;
	} 
	if(s==k){
		cout<<"YES ";
	}
	else{
		cout<<"NO ";
	}
	return 0;
}
2021/12/15 18:50
加载中...