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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include<bits/stdc++.h> using namespace std; int main(){ int x; int sum=1; cin>>x; while(true){ x=x/10; if(x>0){ sum+=1; } else{ cout<<sum; break; } } return 0; }

    userId_undefined

    黑白世界

    倔强青铜
    1阅读
    0回复
    0点赞
  • 两种解法

    或

    userId_undefined

    ???

    倔强青铜
    0阅读
    0回复
    0点赞
  • tijie

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

    userId_undefined

    皮皮虾🦐复仇者-小K

    倔强青铜
    0阅读
    0回复
    0点赞
  • 字符串,搞定。

    #include <iostream> using namespace std; int main() { string s; cin>>s; cout<<s.length(); return 0; }

    userId_undefined

    150****8189

    倔强青铜
    0阅读
    0回复
    0点赞
  • 煎蛋题解(今日第四道题解)

    内涵注释(大家自行观看and给个关注(我会回关的))

    userId_undefined

    企鹅

    秩序白银
    0阅读
    0回复
    0点赞

共25条

  • 1
  • 2
20条/页
跳至页
首页