|시간 제한||메모리 제한||제출||정답||맞힌 사람||정답 비율|
|1 초||128 MB||311||261||238||86.545%|
Mr. Petersworth is a 10th grade history teacher at True Blue High School. The principal of True Blue gives Mr. Petersworth a list of the students in his class with their first and last names on separate lines. This is slow for taking attendance; Mr. Petersworth would rather first and last names be on the same line, with the last name before the first name.
The first line of input is the number of test cases that follow. Each test case contains two strings on separate lines, with the first string being the student’s first name and the second string as the student’s last name. Both the first and last name will be less than 20 characters long.
For each case, output the line “Case x:” where x is the case number, on a single line. This is followed by the full name entered, using the format “Last, First”.
5 Tyler Lopez Alexandra Johnson Martin Young Sabrina Chao Arjun Gupta
Case 1: Lopez, Tyler Case 2: Johnson, Alexandra Case 3: Young, Martin Case 4: Chao, Sabrina Case 5: Gupta, Arjun