← Back to List
2921번: 도미노 ↗
Solutions
Python 3
91 B | 91 chars
a=int(input()) S=0 for i in range(a,0,-1): for j in range(i+1): S+=i+j print(S)