来源:CF333A
水题一道,注意输入
代码:
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef unsigned long long LL;
LL n;
int main(){
LL ans = 0;
scanf("%lld",&n);
while(n%3==0) n/=3;
ans = n/3+1;
printf("%lld\n",ans);
return 0;
}
转载请注明原文地址: https://ju.6miu.com/read-1295114.html