Hello, i'm new at python, and i would like to know why this code fails:
the problem is : spoj.pl/problems/TCOUNT3/
If you search for it in the forum, you'll find some information about how I/O can be accelerated in Python.But be aware, that for TCOUNT3 your code must be fast and short at the same time ...
Ok, thanks numerix. I'll look for it. And i think its fast, as i said, its a simple formula, no recursion or anything, i wish it's right.