#T794. 含k个3的数
含k个3的数
Description
Given two positive integers m and k, where 1 < m < 100000 and 1 < k < 5, determine whether m is divisible by 19 and contains exactly k occurrences of the digit '3'. If the conditions are satisfied, output "YES"; otherwise, output "NO". For example, for the input "43833 3", the conditions are met, so the output is "YES". If the input is "39331 3", although there are three '3's, the number is not divisible by 19, so the output is "NO".
Input Format
The values of m and k, separated by a single space.
Output Format
Output "YES" if the conditions are satisfied, otherwise output "NO".
43833 3
YES
翻译结果
CodesOnline
(注:根据提供的上下文,"CodesOnline" 是一个专有名词/品牌名称,按照翻译惯例保持原名不译。若需进一步调整请说明具体需求。)
保留说明:
- 严格维持了原文的专有名词形态
- 未添加额外换行或格式变动
- 采用简洁的呈现方式符合技术文档风格