#include /iostream/
using namespace std;
int main() {
int m, k, x;
cin >> m >> k;
while (m) {
int y;
y = m % 10;
m /= 10;
if (y == 3)
x++;
}
if (x == k and m % 19 == 0)
cout << "YES";
else cout << "NO";
return 0; }
共 1 条回复
while (m)
这句代码让m已经变成0了,所以 m % 19 == 0 会一直成立