acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 题解

    userId_undefined

    zsy

    7月全勤卷王题解仙人出道萌新时间刺客时空双修者秩序白银
    29阅读
    0回复
    2点赞
  • 简单

    #include<bits/stdc++.h> using namespace std; int main() { int n,s=1; cin>>n; for(int i=2;i<=n;i++) { s*=3; if(s>=n) { cout<<i; return 0; } }

    userId_undefined

    杨曙宁

    出道萌新快乐小狗时空双修者模拟·模拟练习生荣耀黄金I/O·IO入门者
    12阅读
    0回复
    1点赞
  • MAN!

    #include<bits/stdc++.h> using namespace std; int main() { int a,n=1,cnt=1; cin>>a; while(n<a) { n*=3; cnt++; } cout<<cnt; return 0; }

    userId_undefined

    账号已注销

    6阅读
    0回复
    0点赞
  • 厨邦AC美味鲜,写足180天!

    #include<bits/stdc++.h> using namespace std; int main(){ long long a,x=0; cin >> a; while(true){ int b = pow(3,x=x+1); if(b>a){ cout<<x+1; break; } } return 0; }

    userId_undefined

    来c4柠檬了哟

    倔强青铜
    4阅读
    0回复
    0点赞
首页