← Back to List
15236번: Dominos ↗
Solutions
Python 3
93 B | 93 chars
n=int(input()) S = 0 for i in range(n+1): for j in range(i,n+1): S +=i+j print(S)