title: Fast input/output in c++
body: <p>I need to input a large amount of numbers in range of 1 to 10000 in a programming question.The questions advices to use a fast I/O method.</p>
  
  <p>I looked at <a href="https://stackoverflow.com/questions/9749630/fast-input-output-in-competitive-programming">Fast input/output in competitive programming</a>  but it was too complex. So can anybody please tell me a simpler way to get fast io.</p>
  
  <p>Also please tell me if using  <code>gets</code> and then doing <code>atoi()</code> is faster than using <code>scanf(%d)</code> for taking numbers as input.</p>