제출 #719698

#제출 시각아이디문제언어결과실행 시간메모리
719698BoomydayBalloons (CEOI11_bal)Pypy 3
10 / 100
2067 ms32380 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() for bal in range(n): cands = [r[bal]] for other in range(bal): cands.append(getrj(r[other], x[other], x[bal])) print(min(cands))
#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...