NC25048. [USACO 2007 Jan L]Names, Cow
描述
输入描述
Line 1: Two space-separated words, the first and last names of a cow
输出描述
Line 1: The last name, followed by a comma and a space, then the first name
示例1
输入:
Bessy Bovine
输出:
Bovine, Bessy
Python3 解法, 执行用时: 41ms, 内存消耗: 4496K, 提交时间: 2023-08-15 07:42:09
f, l = input().split() print(f'{l}, {f}')