2016夏季练习——水题(AI)

    xiaoxiao2024-12-29  10

    来源: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
    最新回复(0)