제출 #719702

#제출 시각아이디문제언어결과실행 시간메모리
719702BoomydayBalloons (CEOI11_bal)Pypy 3
40 / 100
2088 ms31232 KiB
from collections import deque n = int(input()) x, r = [], [] def getrj(ri, xi, xj): return (xj-xi)*(xj-xi)/(4*ri) assert (getrj(9, 0, 13)) - 4.694 <= 0.001 for i in range(n): xi, ri = map(int, input().split()) x.append(xi) r.append(ri) st = deque() r2 = [] for bal in range(n): cands = [r[bal]] for other in range(bal): cands.append(getrj(r2[other], x[other], x[bal])) mn = min(cands) print(mn) r2.append(mn)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...