Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82234 fanziyan 含k个3的数 C++ 编译错误 0 MS 0 KB 390 2026-01-11 14:38:51

Tests(0/0):


#include <bits/stdc++.h> using namespace std; int main(){ int m,k,count = 0,digit = 0; cin>> m>> k; bool flag1=false,flag2=false; if(m%19 == 0) flag1=true; while(m>0){ if(m%10 == 3){ count++; } m/=10; } if(count==k) flag2=true; if(flag1==true && flag2==true){ cout<<"YES"; }else{ cout<<"NO"; } } }


测评信息: