1 条题解

  • 1
    @ 2024-4-21 17:32:51
    #include <bits/stdc++.h>
    using namespace std;
    #define ll long long
    #define s string
    #define c char
    #define co cout
    #define ci cin
    #define b bool
    #define re return
    ll n,ans;
    int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    cin>>n;
    while(n>0){
    ll x=n;
    while(x>0){
    ans++;
    x/=10;
    }
    n/=2;
    }
    cout<<ans;
    return 0;
    }
    
    • 1

    信息

    ID
    559
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    39
    已通过
    19
    上传者