30分求助!!!
  • 板块学术版
  • 楼主LCH22014
  • 当前回复3
  • 已保存回复3
  • 发布时间2024/7/16 18:11
  • 上次更新2024/7/16 19:31:14
查看原帖
30分求助!!!
1357239
LCH22014楼主2024/7/16 18:11
#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long m,k,num=0;
    cin>>m>>k;
    if(m%19==0)
    {
        for(int i=1;i<=k;i++)
        {
            long long x;
            x=k%10;
            if(x==3)
            {
                num++;
            }
            x/=10;
        }
    }
    if(num==k)
    {
    	cout<<"YES";
	}
	else
	{
		cout<<"NO";
	}
    return 0;
}
2024/7/16 18:11
加载中...