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/solutions/star_arrangements.py

8 lines
145 B
Python

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