1 条题解

  • 0
    @ 2024-7-7 12:10:44
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	long long n,k,x;
        cin>>n>>k;
        long long t=0,sum=n,c=1;
        while(sum-c>0)
    	{
            long long x=c*k;
            c+=x;
            t++;
        }
        cout<<t;
        return 0;
    }
    
    • 1

    信息

    ID
    211
    时间
    1000ms
    内存
    64MiB
    难度
    7
    标签
    递交数
    310
    已通过
    78
    上传者