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