OJ/3834/6/6.txt
2025-01-14 20:19:17 +08:00

20 lines
558 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

定义函数返回布尔值
内存限制128 MB
时间限制2.000 S
评测方式:文本比较
命题人:外部导入
提交2506
解决1849
题目描述
定义一个函数check(n,d),让它返回一个布尔值。如果数字d在正整数n的某位中出现则送回true否则送回false。
例如check(325719,3)==true
输入
一行整数n和数字d。
输出
一行如果数字d在正整数n的某位中出现输出true否则输出false。
样例输入 复制
325719 3
样例输出 复制
true
来源/分类
一本通第六章例题