www.6766.comHalloween party,halloweenparty

Halloween party,halloweenparty

 

 1 def main():
 2     t = int(raw_input())
 3     for _ in range(t):
 4         k = int(raw_input())
 5         if k % 2 == 0:
 6             k //= 2
 7             print k * k
 8         else:
 9             k //= 2
10             print k * (k + 1)
11 
12 main()

 

错误

  脑子里面对变量的认识还不够明确

party,halloweenparty
1 def main(): 2 t
= int(raw_input()) 3 for _ in range(t): 4 k = int(raw_input()) 5 if k
% 2 =…

相关文章

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图