title: SMPCIRC - Two Circles
body: <p>I dont know where I have a mistake
  It work for the example but the result shows me &quot;bad answer&quot;</p>
  <p>THE PROBLEM:</p>
  <p><a href="https://www.spoj.com/problems/SMPCIRC/" rel="nofollow noreferrer">https://www.spoj.com/problems/SMPCIRC/</a></p>
  <blockquote>
  <p>SMPCIRC - Two Circles</p>
  <h1>plane-geometry #basics</h1>
  <p>Given two circles: O1 with the center o1 = (xo1, yo1) and a radius r1
  and O2 with the center o2 = (xo2, yo2) and radius r2, please compute
  if O1 is inside O2 or if O2 is inside O1.</p>
  <p>Input description First t &lt; 1000, the number of test cases. In each of
  the following t lines, 6 integers: xo1 yo1 r1 xo2 yo2 r2. Where 0 ≤
  xo1, yo1, xo2, yo2 ≤ 10000 and 0 &lt; r1, r2 ≤ 10000.</p>
  <p>Output description For each test case print one character: I, if O1 is
  inside O2 (or if O2 is inside O1),  E, if O1 is internally tangent to
  O2 (or if O2 is internally tangent to O1),  O, in other cases.</p>
  <p>Example</p>
  <p>Input: 2 103 104 5 100 100 10 103 104 10 100 100 10</p>
  <p>Output: E O</p>
  </blockquote>
  <p>MY CODE:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  using namespace std;
  
  int main()
  {
      int t;
      cin&gt;&gt;t;
     for(int i=0;i&lt;t;i++)
     {
         double x1, y1, r1, x2, y2, r2, dl;
         cin&gt;&gt;x1&gt;&gt;y1&gt;&gt;r1&gt;&gt;x2&gt;&gt;y2&gt;&gt;r2;
         
         dl=sqrt(pow(x2-x1,2) + pow(y2-y1,2));
         
          if(dl+r1==r2)
              cout&lt;&lt;&quot;E&quot;;
          else if(dl+r2==r1)
              cout&lt;&lt;&quot;E&quot;;
          else if (dl+r1&lt;r2)
              cout&lt;&lt;&quot;I&quot;;
          else if(dl+r2&lt;r1)
              cout&lt;&lt;&quot;I&quot;;
         else
              cout&lt;&lt;&quot;O&quot;;
     }
     
     return 0;
  }
  </code></pre>