A triangle $ABC$ has acute angles at $A$ and $B$. Isosceles triangles $ACD$ and $BCE$ with bases $AC$ and $BC$ are constructed externally to triangle $ABC$ such that $\angle ADC = \angle ABC$ and $\angle BEC = \angle BAC$. Let $S$ be the circumcenter of $\triangle ABC$. Prove that the length of the polygonal line $DSE$ equals the perimeter of triangle $ABC$ if and only if $\angle ACB$ is right.
Problem
Source: Czech-Polish-Slovak 2001 Q2
Tags: geometry, circumcircle, perimeter, geometric transformation, reflection, parallelogram, geometry unsolved