1 solutions

  • 0
    @ 2024-12-25 14:29:48
    k = int(input())
    s = 0
    n = 1
    while (s < k):
        s += 1/n
        n += 1
    print(n-1)
    
    • 1

    Information

    ID
    542
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    21
    Accepted
    4
    Uploaded By