1 solutions

  • 0
    @ 2024-11-27 2:20:04
    #include<bits/stdc++.h>
    using namespace std;
    using ll=long long;
    
    int main()
    {
    	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    	
        double sum=0;
        ll cnt=0;
    	for(int i=1;i<=4e8;++i)
        {
            sum+=1.0/i;
            cnt++;
            if(sum>=15.0)break;
        } 
        cout<<cnt;
    	return 0;
    }
    
    

    Information

    ID
    4806
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By