Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
313202 梁睿煊 【C2-3】含k个3的数 C++ Accepted 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; }


Judgement Protocol: