Sure. The numbers I gave are just for having some general idea of the impact in the version update. Some of the solutions can get AC by optimizing the algorithm (when I see an easy time constraint problem, I usually prefer a clean/easy/'fast enough' solution), but my personal impression is still many (extra) problems would not get acceptable. But it is just my (non-expert) point of view.
CLTZ:
Python 2.5.x .... 1.26 s (0.81 with psyco)
Python 2.6.2 .... 2.31 s (1.68 s with psyco)
It is as I said before: There are some problemsets where you can optimize your code so that there is only little loss of performance, there are others (like CLTZ), where you can't. But nevertheless: You can get your solution to CLTZ get AC, even with Python 2.6.2 and without psyco. It isn't as fast as before, but - "what shalls" (as we Germans like to say ... )
SBANK: spoj.pl/status/SBANK,zzz/
It was AC with 5.62s, now the same my code got TLE
If the time limit is 7 s and there are python solutions AC in < 5 s and your solution gives TLE: There IS something to improve!
I have in store my ACcepted C++ code
PS
Adding Sevens: spoj.pl/ranks/ANARC08B/lang=PYTH
All of this summer submissions (i.e. v.2.5). Today my py code gets only TLEs (I've never solved this prob before).
What can be improved in my TLE code?
import psyco
psyco.full()
def foo():
a = (\
'063',
'010',
'093',
'079',
'106',
'103',
'119',
'011',
'127',
'107')
b = {\
'063':'0',
'010':'1',
'093':'2',
'079':'3',
'106':'4',
'103':'5',
'119':'6',
'011':'7',
'127':'8',
'107':'9'}
import sys
w = sys.stdin.readlines()
for wi in w:
s = wi.strip()
if s == 'BYE':
return
p = s[:s.index('+')]
q = s[s.index('+') + 1:][:-1]
pp = ''
for i in range(0, len(p), 3):
pp += b[p[i:i + 3]]
qq = ''
for i in range(0, len(q), 3):
qq += b[q[i:i + 3]]
z = str(int(pp) + int(qq))
r = ''
for zi in z:
r += a[int(zi)]
print s + r
foo()
Forum jest po to aby odpowiadać na pytania? Niestety, "ale nie mam innego pomysłu" to nie pytanie , mimo to jeszcze raz "powiem":
Jest algoliga.pl1 a tam z lewego boku, taki mały, podobny do tego tu na spoju, niebieski napis [color=#4000BF][b]forum[/b][/color]. "Idąc" tam warto wcześniej odblokować w swojej przeglądarce wykonywanie skryptów.
PS
W zasadzie wystarczyłoby tylko zwrócić uwagę na pierwszy link w moim podpisie.
Więc, zaro, zacznij robić zadanie, bo póki nie zrobisz, nic nie napiszę
Optymalizacje powinno się robić i nawet zaczynać myśleć dopiero po AC, a nie WA czy TLE czy nawet ani jedno z trzech [nie rozwiązanie ani nie przemyślenie zadania np na kartce w kratkę]
No ale dobra, jak będziesz już zdesperowany to zerknij: forum.algoliga.pl/viewtopic.php?f=6&t=55