含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.
【题目描述】
输入两个正整数 和 ,其中 , ,判断 能否被 整除,且恰好含有 个 ,如果满足条件,则输出 YES,否则,输出 NO。
例如,输入:43833 3,满足条件,输出 YES。如果输入:39331 3,尽管有 个 ,但不能被 整除,也不满足条件,应输出 NO。
【输入】
和 的值,中间用单个空格间隔。
【输出】
满足条件时输出 YES,不满足时输出 NO。
【输入样例】
43833 3
【输出样例】
YES
【来源】
一本通在线评测
20251121 随堂作业
- Status
- Done
- Problem
- 3
- Open Since
- 2025-11-21 10:00
- Deadline
- 2025-11-21 12:15
- Extension
- 168 hour(s)