Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
335494 李俞家骅 【C2-3】含k个3的数 C++ Accepted 100 2 MS 244 KB 227 2025-07-23 10:00:05

Tests(2/2):


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


Judgement Protocol: