Untitled

mail@pastecode.io avatar
unknown
python
a year ago
147 B
1
Indexable
Never
n,k=map(int,input().split())
s=240-k
for i in range(1,n+1):
    s-=5*i
    if s<0:
        print(i-1)
        break 
if s>=0:
    print(n)