2266: 数位检测

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Normal Judger Creator:
Submit:81 Solved:40

Description

定义一个函数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 Copy

325719 3

Sample Output Copy

true

Source/Category