Run ID:159014

提交时间:2026-08-25 09:45:56

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int m,k,a,b,c,d,e,x=0; cin>>m>>k; a=m%10; b=m/10%10; c=m/100%10; d=m/1000; e=m/1000%10; if(a==3){x+=1;} if(b==3){x+=1;} if(c==3){x+=1;} if(d==3){x+=1;} if(e==3){x+=1;} if(m%19==0&&x==k){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }