summaryrefslogtreecommitdiff
path: root/progs/a918.py
blob: 642d76df08ec8026f527f1fef043751d53206e4a (plain)
1
2
3
4
def difference(n) :  
    S = (n*(n + 1))//2;  
    res = S*(S-1);  
    return res;