40分求调
查看原帖
40分求调
1360452
__F__楼主2024/7/16 14:52

40分代码

#include<bits/stdc++.h> 
using namespace std;
int main(){
	int m,k,s=0;
	cin>>m>>k;
	int t=m;
	while(t!=0){
		if(t%10==3){
			s++;
		}
		t=t/10;
	}
	if(s==k&&m%19==0)
	 {
	 	cout<<"YES"; 
	 }else{
	 	cout<<"NO";
	 }
	 return 0;
}
2024/7/16 14:52
加载中...