1 / 4
Apr 2010

Hi guys.

Having a problem with Enormous Input Test, and after 10 hours of trying to figure it out, I'm no better off.

Here's my code - I get a timeout.

import sys
a1 = raw_input().split(' ')
b1 = int(a1[0])
b2 = int(a1[1])
i=0
a4 = 0
while i < b1 :
    if((int(sys.stdin.readline().strip()) % b2) == 0):
        a4+=1
    i+=1
print a4
  • created

    Apr '10
  • last reply

    Feb '11
  • 3

    replies

  • 220

    views

  • 4

    users

  • 1

    link

It is possible, but hard to get AC without psyco. If you use psyco, maybe you'll get AC.

10 months later

Suggested Topics

Want to read more? Browse other topics in Python or view latest topics.