delete pics to save space
This commit is contained in:
22
history_source/信息学奥赛一本通/1.4.2.6.cpp
Normal file
22
history_source/信息学奥赛一本通/1.4.2.6.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n,k;
|
||||
scanf("%d%d",&n,&k);
|
||||
if(n%19!=0) printf("NO\n");
|
||||
else
|
||||
{
|
||||
int add=0;
|
||||
do
|
||||
{
|
||||
if(n%10==3) add++;
|
||||
n/=10;
|
||||
}
|
||||
while(n);
|
||||
if(add==k) printf("YES\n");
|
||||
else printf("NO\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user