Update: Rename folder name to XSMOJ

This commit is contained in:
2025-02-14 02:44:20 +00:00
parent 394e431a4a
commit c8863a5850
243 changed files with 11 additions and 39 deletions

25
XSMOJ/含K个3的数.cpp Normal file
View File

@ -0,0 +1,25 @@
#include <iostream>
#include <cstring>
#include <cstdio>
#include <iomanip>
using namespace std;
int main(){
int a,b,c=0,d;
cin >>a>>b;
d=a;
while(a){
if(a%10==3){
c++;
}
a/=10;
}
if(d%19==0 && c==b){
cout <<"YES";
}
else{
cout <<"NO";
}
return 0;
}