题号:NC25048
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld
题目描述
Farmer John is about to submit an annual report about his cows. He's supposed to list the cows by name, but the sheet he's filling out asks for a last-name-first format, and all his notes on the cows list their names in the other order. Being somewhat lazy, FJ would rather not have to switch the names around every time. Write a program to switch a cow's names for him.
None of FJ's cows has a first or last name longer than 30 characters.
输入描述:
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