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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    userId_undefined

    黑客_天之神_ZDZL_zsy

    秩序白银
    14阅读
    0回复
    0点赞
  • 简单

    #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

    杨曙宁

    秩序白银
    8阅读
    0回复
    0点赞
  • 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

    双刀流——影缝

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