Problem1353--【函数】数位检测(例题)

1353: 【函数】数位检测(例题)

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 172  Solved: 87
[Submit] [Status] [Web Board] [Creator:]

Description

例6.4    定义一个函数check(n,d),让它返回一个布尔值。如果数字d在正整数n的某位中出现则送回true,否则送回false。
例如:check(325719,3)==true;check(77829,1)==false。

Input

一行两个正整数n和d,n<=2147483647,0<=d<=9。

Output

true或者false。

Sample Input

325719 3

Sample Output

true

Source/Category


[Submit] [Status]