ACM1001题

ACM大赛的题目,没有Python语言的编译器,所以在这里写个看看。已经通过了题目要求的实例。
把浮点数转换成了字符串,处理,然后转换成整数,处理,在转会字符串处理,哈哈,有意思。
from string import *
"""
s = '95.123'
length = len(s) - find(s,'.') - 1
point = length * 12 -1
s = replace(s,'.','')
integ = pow(int(s),12)
integ = str(integ)
f = integ[:point] + '.' + integ[point:]
print f
"""
def acm_1001():
    obj_str = raw_input()
    mul_int = int(raw_input())
    poi_str = len(obj_str) - find(obj_str,'.') - 1
    poi_len = poi_str * mul_int
    obj_int = int(replace(obj_str,'.',''))
    res_str = str(pow(obj_int,mul_int))
    res_str = zfill(res_str,poi_len)
    res_fin = res_str[:-poi_len] + '.' + res_str[-poi_len:]
    print res_fin
if __name__ == "__main__":
    acm_1001()