第一题: res = [] while True: try: nums = input().split() except Exception: break if len(nums[0]) == 2 and len(nums[-1]) == 2 and all(len(num) == 1 for num in nums[1:-1]): res.append('true') elif len(nums[0]) == 1 and len(nums[-1]) == 1 and all(len(num) == 2 fo...