| 20 | |
| 21 | #include<stdio.h> |
| 22 | int main (){ |
| 23 | long long int n; |
| 24 | scanf("%lld",&n); |
| 25 | long long int sum=0; |
| 26 | int ctr=n-1; |
| 27 | int temp=0; |
| 28 | while(ctr>0){ |
| 29 | for(int i=0;i<ctr;i++){ |
| 30 | sum+=temp+1; |
| 31 | } |
| 32 | ctr--; |
| 33 | temp++; |
| 34 | } |
| 35 | printf("%lld\n",sum+n); |
| 36 | |
| 37 | return 0; |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected