For Problem B, would the maximum $$$a_{i}$$$|$$$a_{j}$$$ = 2n-1 -> so f(n-1 , n) = n^2-n-k-2nk?
How would you solve f(i,n) > f(n-1,n) in that case?
Problem: 1554B - Cobb
Editorial : https://codeforces.com/blog/entry/93321
# | User | Rating |
---|---|---|
1 | tourist | 3750 |
2 | Benq | 3726 |
3 | cnnfls_csy | 3690 |
4 | Radewoosh | 3649 |
5 | jiangly | 3631 |
6 | orzdevinwang | 3558 |
7 | -0.5 | 3545 |
8 | inaFSTream | 3477 |
9 | fantasy | 3468 |
10 | Rebelz | 3415 |
# | User | Contrib. |
---|---|---|
1 | adamant | 178 |
2 | awoo | 167 |
3 | BledDest | 165 |
4 | Um_nik | 164 |
5 | maroonrk | 163 |
6 | SecondThread | 158 |
7 | nor | 156 |
8 | -is-this-fft- | 154 |
9 | kostka | 146 |
10 | TheScrasse | 143 |
For Problem B, would the maximum $$$a_{i}$$$|$$$a_{j}$$$ = 2n-1 -> so f(n-1 , n) = n^2-n-k-2nk?
How would you solve f(i,n) > f(n-1,n) in that case?
Problem: 1554B - Cobb
Editorial : https://codeforces.com/blog/entry/93321
Name |
---|