But my solution received TLE by OJ system.

Maybe OJ system use so many test case.

Is there any tips for calculate solution more quickly?

Code: Select all

```
for( i = 1; i <= a - 1; i++ )
for( j = b - 1; j >= 1; j-- )
sum += (i * j);
// a, b is input.
```