|
|
вернуться в форумwhy WA #12 i divide n numbers into ceil[n/a] segments for each segment, increasing B's ties by add b until it reach a, and count the pairs. such like this: while(j + b <= a) { ans += j * b; j += b; } Re: why WA #12 it use %I64d but not %lld |
|
|