http://online-judge.uva.es/p/v4/453.html /** Intersecting Circles zzun http://zzun.net **/ #include #include #include float pow2( float a ) { return pow( a, 2 ); } int main() { ifstream fin; float a[2], b[2], r[2], x[2], y[2], temp; fin.open( "test.in" ); fin >> a[0] >> b[0] >> r[0] >> a[1] >> b[1] >> r[1]; while ( ! fin.eof() ) { float d = sqrt( pow2(a[0]-a[1]) + pow2(b[0]-b[1]) ); // distance ..