Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
313202 梁睿煊 【C2-3】含k个3的数 C++ 通过 100 3 MS 248 KB 255 2025-03-20 19:56:06

Tests(2/2):


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


测评信息: