Rosetta Problems

Intersection

https://onlinejudge.u-aizu.ac.jp/problems/CGL_7_A