728x90
9306번: Practice: Roll Call
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”.
www.acmicpc.net
문제 풀이
입력값을 두 줄씩 받고, 두번째 줄이 먼저 출력될 수 있도록 구현한다.
정답 코드
for i in range(1, int(input()) + 1) :
a = input()
b = input()
print(f"Case {i}: {b}, {a}")
728x90
'Algorithm > PS' 카테고리의 다른 글
[BOJ/백준] 9317 - Monitor DPI [python] (0) | 2023.03.24 |
---|---|
[BOJ/백준] 9310 - Arithmetic and Geometric Sums [python] (0) | 2023.03.24 |
[BOJ/백준] 9299 - Math Tutoring [python] (0) | 2023.03.24 |
[BOJ/백준] 9298 - Ant Entrapment [python] (0) | 2023.03.24 |
[BOJ/백준] 9297 - Reducing Improper Fractions [python] (0) | 2023.03.24 |