title: How to input test case in c++ code in google code jam
body: <p>I tried solving a problem in the Google Code Jam Practice Page <a href="https://code.google.com/codejam/contest/32016/dashboard#s=p0" rel="nofollow">Minimum Scalar Product</a> and i have the program written in c++ and i read in the FAQ page that we have to test our programs with the .in test file placed on the practice page for download but i don't know how and i use UBUNTU 12.04 LTS &amp; please i am participating in the contest for the first time..So any help would be greatly appreciated..Thanks In Advance</p>
  
  <p>I tried</p>
  
  <pre><code>    #include &lt;vector&gt;
  #include &lt;algorithm&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
  int numCase;
  cin &gt;&gt; numCase;
  int i, j, n;
  long long c;
  for (i = 0; i &lt; numCase; i++)
  {
      cin &gt;&gt; n;
      vector&lt;long long&gt; array1, array2;
      for (j = 0; j &lt; n; j++)
      {
          cin &gt;&gt; c;
          array1.push_back(c);
      }
      for (j = 0; j &lt; n; j++)
      {
          cin &gt;&gt; c;
          array2.push_back(c);
      }
      sort(array1.begin(), array1.end());
      sort(array2.begin(), array2.end(), greater&lt;long long&gt;());
      long long ans = 0;
      for (j = 0; j &lt; n; j++)
          ans += (array1[j] * array2[j]);
      cout &lt;&lt; "Case #" &lt;&lt; (i+1) &lt;&lt; ": " &lt;&lt; ans &lt;&lt; endl;
  }
  return 0;
  }
  </code></pre>