AtCoder Beginner Contest 156 比赛人数7003
AtCoder Beginner Contest 156 B Digits 进制转换
总目录详见https://blog.csdn.net/mrcrack/article/details/104454762
在线测评地址https://atcoder.jp/contests/abc156/tasks/abc156_b
一眼看穿题意,进制转换
#include <stdio.h>
int main(){
int n,k,cnt=0;
scanf("%d%d",&n,&k);
while(n){
cnt++;
n/=k;
}
printf("%d\n",cnt);
return 0;
}