| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | Radewoosh | 3415 |
| 8 | Um_nik | 3376 |
| 9 | maroonrk | 3361 |
| 10 | XVIII | 3345 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
|
0
should be this: 1,2,6,12,60,... link: https://oeis.org/search?q=6%2C12%2C60%2C420%2C840%2C2520%2C27720&language=english&go=Search |
|
0
Thanks for fast editorial and good problems. |
|
0
I got the expected output for your testcases but still failed pretest |
|
0
For G, the number of spins should be ceil instead of floor? |
|
0
Thanks for fast editorial |
|
0
It passed when I resubmitted the exact same code O.o |
|
0
Hello, could you rejudge my problem B please? Thank you! |
|
-9
Thanks for the contest! |
|
0
Same bro I keep getting WA on test 2 |
|
0
May I know what is pretest 2 of B? UPD: Managed to solve it, my brute force was not brute force enough and missed some corner cases sigh |
|
0
Thank you for tutorial! |
|
0
I will give you an example to think about the idea. Let's say we have 3 distinct numbers (we will use the positive numbers since it is easier to reason about) [a, b, c] where a > b > c. Calculating the sum of differences for a: In general, with [a_1, ... , a_n], where a_1 > a_2 > .. > a_n, then sum of differences for a_1 is as follows: From this, you can find the value of a_1. Next, the way I thought about it was to consider [a_2, ..., a_n] (i.e. disregard a_1). But one thing is sum of differences for a_2 would be subtracted by 2a_1. This is because there is a term in the original sum of differences for a_2 (which includes a_1): since we are disregarding a_1, we should subtract it by 2a_1. After subtracting, just do the same method as before to find a_2, then just do it until a_n. Hope this helps bro. Took me awhile to figure out. |
|
0
I like how D had such a clean solution. |
|
0
Thanks for contest! C was very nice to solve. |
|
+8
Thanks for the contest! |
|
0
Interested bro |
|
0
I got a nasty bug where I did not check if the neighbors that were previously not a hill/valley became a hill/valley after changing the value of a[i] |
|
0
Since contest is over, may I get some hints on how to solve problem C? |
|
0
I have a different solution for F, where I keep a offset between the top and bottom pointer, and use some case analysis. Time is O(mlogm). |
| Name |
|---|


