提交时间:2024-01-22 14:40:18

运行 ID: 37631

#include<iostream> using namespace std; int main(){ int n,k,cnt=0; cin>>n; int m=n; while(m){ if(m%10==3){ cnt++; } m/=10; } if(n%19==0&&cnt==3){ cout<<"YES"; }else cout<<"NO"; return 0; }