更新了许多

This commit is contained in:
OhFengGO
2023-08-23 21:52:51 +08:00
parent 971a1d91d6
commit fc324f936b
197 changed files with 6500 additions and 0 deletions

25
含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;
}