Notice
		                                        
										
                                    
                                        
                                    
                                        Recent Posts
                                        
                                    
                                        
                                    
                                        Recent Comments
                                        
                                    
                                        
                                    
                                        Link
                                        
                                    
                                | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
                                        Tags
                                        
                                    
                                        
                                    - 영재원
- EOF
- 4101
- BoB 후기
- BoB 7기
- Python
- 영재교육원
- 2965
- boj
- 2476
- 정보보호 영재교육원
- text
- 차세대 보안 리더 양성 프로그램
- 정보보호 영재원
- 2501
- 10833
- 리뷰
- 10995
- 5086
- 11943
- 2605
- 2506
- 차세대 보안 리더 양성
- acmicpc
- BOB
- Best of the Best
- 공주대 정보보호
- 11109
- 5586
- 1547
                                        Archives
                                        
                                    
                                        
                                    - Today
- Total
짱해커가 되어보자
boj 5217 본문
* Solved 기준 브론즈3 단순 풀이
for _ in range(int(input())):
	l,n = [],int(input())
	for i in range(1,n):
		for j in range(i,n):
			if(i!=j and i<j and n==i+j): l.append('{} {}'.format(i,j))
	print('Pairs for {}: {}'.format(n, ', '.join(l)))
                          Comments