Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86572 汤弘毅 22兔子问题 Python3 Accepted 48 MS 3776 KB 184 2024-07-26 18:05:58

Tests(10/10):


Code:

m = int(input()) holes = list(map(int,input().split())) eyes = 0 legs = 0 for i in range(m): eyes = eyes+holes[i]*2 legs = legs+holes[i]*4 print(str(legs)+' '+str(eyes))