本文共 331 字,大约阅读时间需要 1 分钟。
if __name__ == '__main__': count = int(input()) lines = [input() for i in range(count)] step = 1 for line in lines: nums = [int(i) for i in line.split(" ")] a = nums[0] b = nums[1] c = nums[2] r = (a + b) > c print("Case #%d: %s" % (step, str(r).lower())) step += 1
转载地址:http://ypaxb.baihongyu.com/