7891 大坝king(罗允聪) · 发布于 2026-02-02 · 浏览 203 回复 0 include using namespace std; int main() { int a, b, c=0; cin >> a >> b; for (int i = 1; b%a==0 ; i++) { b = b / a; c = c+1; } cout << c; return 0; }