INTEST on Codechef in Python 3
I think that there must be something wrong with the way CodeChef runs Python, or with the way it reports the times. The time limit for the problem is 8 seconds, but your Python submissions are passing even though they take 55 seconds and so ought to be out of time even with the five times allowance given to Python programs.

On my laptop, if I create about 80 megabytes of input:

import random
n, k = 10**7, 17
f = open('cr93327.data', 'w')
f.write('{} {}\n', n, k)
for _ in range(n):
    f.write('{}\n'.format(random.randrange(0, 10**7)))


Then this C program runs in 3.3 seconds:

#include &lt;stdio.h&gt;

int main() {
    unsigned n, k, i, m, count = 0;
    scanf("%u %u", &amp;n, &amp;k);
    for (i = 0; i &lt; n; i++) {
        scanf("%u", &amp;m);
        count += (m % k == 0);
    }
    printf("%u\n", count);
    return 0;
}


And this Python 3 program runs in 6.1 seconds:

import sys

n, k = map(int, next(sys.stdin.buffer).split())
count = 0
for i in map(int, sys.stdin.buffer):
    if not i % k:
        count += 1
print(count)


So Python is about twice as slow as C, not ten times as slow.