含k个3的数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【题目描述】
输入两个正整数m和k,其中1<m<100000,1<k<5
,判断m 能否被19整除,且恰好含有k个3,如果满足条件,则输出YES,否则,输出NO。 例如,输入:43833 3,满足条件,输出YES。如果输入:39331 3,尽管有3个3,但不能被19整除,也不满足条件,应输出NO。
【输入】
m 和 k 的值,中间用单个空格间隔。
【输出】
满足条件时输出 YES,不满足时输出 NO。
【输入样例】
43833 3
【输出样例】
YES
【来源】
一本通在线评测
精英班第四次测试
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2024-7-25 9:00
- End at
- 2024-7-25 10:00
- Duration
- 1 hour(s)
- Host
- Partic.
- 0