728x90
반응형
단순 구현 문제이다.
for _ in range(int(input())):
n = int(input())
print(f"Pairs for {n}:", end=' ')
for i in range(1, n//2+1):
if i != n-i:
if i != 1:
print(',', end=' ')
print(i, n-i, end='')
print()
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 5235번 Even Sum More Than Odd Sum(python) (0) | 2021.02.14 |
---|---|
백준 알고리즘 5220번 Error Detection(python) (0) | 2021.02.14 |
백준 알고리즘 5101번 Sequences(python) (0) | 2021.02.14 |
백준 알고리즘 5074번 When Do We Finish?(python) (0) | 2021.02.14 |
백준 알고리즘 5073번 삼각형과 세 변(python) (0) | 2021.02.14 |