送外卖

这问题又是一道大数的题目,学好python真重要,这是python2.7.3

 4 while True:
 5     try:
 6         m, n = raw_input().split(' ')
 7         m = int(m)
 8         n = int(n)
 9     except:
10         break
11     if m%2 == 0 or n%2 == 0:
12         print str(m*n)+'.00'
13     else:
14         print str(m*n)+'.41'

 

posted @ 2018-03-06 20:44  ouyang_wsgwz  阅读(115)  评论(0编辑  收藏  举报