文章标题

来源:互联网 发布:mac app store 没反应 编辑:程序博客网 时间:2024/05/17 02:13
#include <stdio.h>  int main(void)  {  int N,n,m,count;  scanf("%d",&N);  while(N--)  { count=0;  scanf("%d%d",&n,&m);  while(n)  {  n=n/m;  count=count+n;  }  printf("%d\n",count);  }  return 0;  }  
0 0
原创粉丝点击