Let
∠A=α, and scale so
AP=PQ=QB=BC=1. In triangle
APQ, the equal sides
AP=PQ give
∠AQP=∠A=α, so
∠APQ=180∘−2α and, by the law of sines,
AQ=sinαsin2α=2cosα. In triangle
ABC, ∠B=∠C=90∘−2α, so
AB=sinABCsinC=sinαcos(2α)=2sin(2α)1.
Since
AQ+QB=AB, 2cosα+1=2sin(2α)1⟹4sin2αcosα+2sin2α=1. By the product-to-sum identity,
4sin2αcosα =2sin23α −2sin2α, so the equation collapses to
sin23α=21. Then
α=20∘ or
α=100∘, but the latter makes
AQ=2cosα negative, so
α=20∘.
Now
∠ACB=80∘ and
∠APQ=140∘, so
r=14080=74, and
⌊1000r⌋=⌊74000⌋=571.