Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159014 杨正蠔 满足条件的数II C++ Accepted 1 MS 268 KB 600 2026-08-25 09:45:56

Tests(3/3):


Code:

#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; }