This program has been disqualified.
Author | BMF |
Submission date | 2011-06-10 09:19:17.159409 |
Rating | 6756 |
Matches played | 5048 |
Win rate | 64.84 |
if not input:
import random
random.seed()
from collections import defaultdict
AMqwCd={}
for bTVBoE in range(-50,0):
AMqwCd[bTVBoE]=defaultdict(lambda: {'R':0,'P':0,'S':0})
AIeYYG=""
DlFyCV=range(max(-len(AIeYYG),-50),0)
for PRWUpX in DlFyCV:
AMqwCd[PRWUpX][AIeYYG[PRWUpX:]][input]+=1
AIeYYG+=input
sGUbLZ=len(AIeYYG)
QCyZUC = {'R':sGUbLZ,'P':sGUbLZ,'S':sGUbLZ}
for PRWUpX in DlFyCV:
for rUvJfB,IcpIIQ in AMqwCd[PRWUpX][AIeYYG[PRWUpX:]].iteritems():
QCyZUC[rUvJfB]+=IcpIIQ
LPvWuI = random.uniform(0,sum(QCyZUC.values()))
for rUvJfB,IcpIIQ in QCyZUC.iteritems():
LPvWuI-=IcpIIQ
if LPvWuI<=0:
output = {'R':'P','P':'S','S':'R'}[rUvJfB]
break