본문 바로가기
python-algorithm

백준 9288 More Dice

by 무적김두칠 2021. 11. 19.

1
2
3
4
5
6
7
n=int(input())
for  i in range(n):
    number=int(input())
    print("Case %d:"%(i+1))
    for j in range(1,number//2+1):
        if j<=6 and number-j<=6:
            print("(%d,%d)"%(j,number-j))
cs
반응형

'python-algorithm' 카테고리의 다른 글

백준 14782 Bedtime Reading, I  (0) 2021.11.19
백준 13225 Divisors  (0) 2021.11.19
백준 6975 Deficient, Perfect, and Abundant  (0) 2021.11.12
2167 2차원 배열의 합  (0) 2021.11.12
백준 2738 행렬 덧셈  (0) 2021.11.12

댓글