Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5587 陶俊宸 汽水瓶 C++ 解答错误 0 0 MS 252 KB 198 2020-08-14 14:32:56

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int b,ans,s; int main(){ cin>>b; for(int i=0;b!=0;i++){ s=ans%3; ans+=(b+s)%3==2?(b+s)/3+1:(b+s)/3; b/=3; } cout<<ans; return 0; }


测评信息: