的Python 98 * 0.8 = 78.4
d=`len('X'*int("{}{:>02}".format(*(raw_input()+".0").split('.')))*2)`;print'%s.%s'%(d[:-3],d[-3:])
Python 74(无奖金)
d=len('X'*int(raw_input().replace('.',''))*2);print'%s.%s'%(d[:-3],d[-3:])
注意
不打高尔夫球
def tip():
amount = raw_input()
#Add an extra decimal point so that we can accept integer
#amount
amount += ".0"
#Split the integer and decimal part
whole, frac = amount.split('.')
#Multiply amount by 100 :-)
amount = "{}{:>02}".format(whole, frac)
#Create amount copies of a character
st = 'X'*amount
#Double it
st *= 2
#Calculate the Length
d = len(st)
#Display the result as 3 decimal fraction
print'%s.%s'%(d[:-3],d[-3:])
注意
本着问题的精神,我相信尽管遵循该问题的所有规则,以下解决方案也是一种滥用
Python 41
print __import__("operator")(input(),0.2)
最后
如果您坚持禁止使用数学符号,那么她是90个字符的解决方案
Python 90(不带任何数学符号)
print' '.join(str(int(raw_input().replace(".",""))<<1)).replace(' ','.',1).replace(' ','')