← Back to List
24265번: 알고리즘 수업 - 알고리즘의 수행 시간 4 ↗
Solutions
Python 3
40 B | 40 chars
n=int(input()) print(f"{n*(n-1)//2}\n2")