Python2环境
1011:
from sys import exit
num = input()
for i in range(num):
str = raw_input().split()
numList = [int(str[j]) for j in range(len(str))]
if numList[0] + numList[1] > numList[2]:
print 'Case #%d: true' % (i+1)
else:
print 'Case #%d: false' % (i+1)
exit(0)
1012:
from sys import exit
str = raw_input().split()
numList = [int(str[j]) for j in range(len(str))]
numList = numList[1:]
sum = 0
for i in numList:
if i % 5 == 0 and i % 2 == 0:
sum += i
if sum == 0:
print 'N',
else:
print sum,
sum = 0
count = 0
flag = 1
for i in numList:
if i % 5 == 1:
sum += i * flag
flag *= -1
count += 1
if count =