Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
122410 | 鲁博睿 | 满足条件的数II | C++ | Accepted | 1 MS | 268 KB | 281 | 2025-06-15 20:45:18 |
#include<iostream> using namespace std; int main() { int m, k, n, b, i; cin >> m >> k; n = m; i = 0; while (n>=1) { b = n % 10; if (b==3) { i++; } n /= 10; } if (m % 19 == 0 && i == k) cout << "YES"; else cout << "NO"; return 0; }