INTEST - Enormous Input Test
The purpose of this problem is to verify whether the method you are using to read input data is sufficiently fast to handle problems branded with the enormous Input/Output warning. You are expected to be able to process at least 2.5MB of input data per second at runtime.
The input begins with two positive integers n k (n, k<=107). The next n lines of input contain one positive integer ti, not greater than 109, each.
Write a single integer to output, denoting how many integers ti are divisible by k.
Input: 7 3 1 51 966369 7 9 999996 11 Output: 4
Rafael da Silva Carrasco:
Didn't like this one... It's not about coding skills, but about which functions are faster.
How to quick read data In c++;
I got it! I was using iostream data inputs and outputs before. When I switched to stdio.h methods it worked!
It seems that input is 25Mb, not 2.5Mb)
this problem has to be divided into three steps , firstly how to store large numbers , then perform mathematical operations upon them