信息
- ID
- 392
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 4
- 标签
- 递交数
- 117
- 已通过
- 58
- 上传者
#include <iostream>
using namespace std;
bool check(int n,int d)
{
while(n)
{
int e=n%10;
n/=10;
if(e==d)
return true;
}
return false;
}
int main()
{
int n,d;
cin>>n>>d;
if(check(n,d)==true)
cout<<"TRUE";
else
cout<<"FALSE";
}