This repository has been archived on 2026-05-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ICPC-2017/star_arrangements_golf.py
2018-01-29 16:14:37 -05:00

1 line
116 B
Python

[print('%s:'%S,*('%s,%s'%((n+1)//2,n//2)for n in range(3,S+1)if S%n in(0,(n+1)//2)),sep='\n')for S in[int(input())]]