6

石杨东喜欢PC逃单  •  10天前


include <stdio.h>using namespace std;int main () {int a, b, c = 0;scanf("%d%d", &a, &b);while (b % a == 0) { c = c + 1; b = b / a;}printf("%d", c);return 0;}using namespace std;int main () {int a, b, c = 0;scanf("%d%d", &a, &b);while (b % a == 0) { c = c + 1; b = b / a;}printf("%d", c);return 0;}

5-1206 1:33:6 星期


评论:

请先登录,才能进行评论