标签:
https://www.hackerrank.com/challenges/halloween-party
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()
错误
脑子里面对变量的认识还不够明确
标签:
原文地址:http://www.cnblogs.com/sangocare/p/4490742.html