← Back to List

4655번: Hangover ↗

Solutions

Python 3
170 B | 170 chars
while True:
    a = input()
    if a == "0.00":
        break
    k = 0
    c = 2
    a = float(a)
    while k < a:
        k += 1/c
        c+=1
    print(c-2,"card(s)")