728x90
반응형
단순 구현 문제이다.
for i in range(int(input())):
n = int(input())
print(f"Case {i+1}:")
for a in range(1, 7):
for b in range(a, 7):
if a+b == n:
print(f"({a},{b})")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 9297번 Reducing Improper Fractions(python) (0) | 2021.02.20 |
---|---|
백준 알고리즘 9295번 주사위(python) (0) | 2021.02.20 |
백준 알고리즘 9286번 Gradabase(python) (0) | 2021.02.20 |
백준 알고리즘 9094번 수학적 호기심(python) (0) | 2021.02.20 |
백준 알고리즘 9085번 더하기(python) (0) | 2021.02.20 |