HY_zsy_in_2024 @ 2022-07-18 17:00:26
#include<bits/stdc++.h>
using namespace std;
int main()
{
int m,n,k,s=0,t;
cin>>m>>k;
n=m;
while(n!=0)
{
t=n%10;
if(t==3) s++;
n/=10;
}
if(m%19==0&&s==k)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}
by pokefunc @ 2022-07-18 17:02:28
m%19==0
?
by Cure_Wing @ 2022-07-18 17:02:39
@HYzhangshengyi
by pokefunc @ 2022-07-18 17:03:21
十年OI一场空,____
by zhang_kevin @ 2022-07-18 17:05:40
@HYzhangshengyi
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long m,n,k,s=0,t;
cin>>m>>k;
n=m;
while(n!=0)
{
t=n%10;
if(t==3) s++;
n/=10;
}
if(s==k)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}
by HY_zsy_in_2024 @ 2022-07-19 07:52:49
不开longlong见祖宗