//天平有三端 两端 和 剩下 【非原创】
#include<stdio.h>
int main(){
int m;
while(scanf("%d", &m)!= EOF,m){
int count = 0;
while(m >= 2){
if( m % 3 == 0)
m /= 3;
else
m = m / 3 + 1;
count++;
}
printf("%d\n", count);
}
return 0;
}
1022有假币
最新推荐文章于 2020-05-10 17:19:06 发布