Online Judge
Toggle navigation
童织码
Home
Problems
Status
Contests
Wiki
Login
Home
Status
316134
Run ID
Author
Problem
Lang
Verdict
Score
Time
Memory
Code Length
Submit Time
316134
123456
【C2-4】求恰好使s=1+1/2+1/3+…+1/n的值大于X时n的值。
Python3
Accepted
100
50 MS
3736 KB
69
2025-04-05 20:01:18
Tests(5/5):
x=int(input()) s=0 i=0 while s<=x: i+=1 s+=1/i print(i)
Judgement Protocol: