본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 9288번 More Dice

by 현장 2024. 7. 24.

-Code

for t in range(int(input())):
    total = int(input())
    print(f"Case {t + 1}:")
    for i in range(1, 7):
        for j in range(i, 7):
            if i + j == total:
                print(f"({i},{j})")