반응형
import sys
for _ in range(int(sys.stdin.readline())):
n = int(sys.stdin.readline())
start = 1
print("Pairs for {}:".format(n), end = ' ')
for k in range((n-1)//2):
if k != 0:
print(',', end = ' ')
print(start, n - start, end = '')
start += 1
print()
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 10833 (0) | 2020.10.19 |
---|---|
baekjoon - python - 2747 (0) | 2020.10.17 |
baekjoon - python - 4892 (0) | 2020.10.14 |
baekjoon - python - 2752 (0) | 2020.10.14 |
baekjoon - python - 4101 (0) | 2020.10.14 |
댓글