← Back to List
18127번: 모형결정 ↗
Solutions
Python 3
60 B | 60 chars
a, b = map(int,input().split()) print((a-2)*b*(b+1)//2+b+1)