← Back to List

6768번: Don’t pass me the ball! ↗

Solutions

Ruby
39 B | 39 chars
n = gets.to_i
puts (n-1)*(n-2)*(n-3)/6