Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
84635 sh25_linzx 含k个3的数 C++ 通过 0 MS 236 KB 283 2026-02-12 13:23:40

Tests(4/4):


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


测评信息: