Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37631 jiabokai 含k个3的数 C++ 通过 0 MS 244 KB 223 2024-01-22 14:40:18

Tests(1/1):


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


测评信息: