| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | jiangly | 3670 |
| 3 | Kevin114514 | 3657 |
| 4 | maroonrk | 3355 |
| 5 | Um_nik | 3353 |
| 6 | squareOf105 | 3346 |
| 7 | tourist | 3343 |
| 8 | strapple | 3324 |
| 9 | heuristica | 3322 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | AmShZ | 144 |
| 5 | Um_nik | 141 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 134 |
| 9 | maroonrk | 133 |
| 10 | qwexd | 130 |
|
+6
for a give n x we are calculating all permutations v = all value less then x we can always put all v values in first place x could always defeat these values and will become x+1 now in second position e can select v -1 as out of v we have already put 1 value at first place but, we can also put those values which are equal to x+1 thats why for x+1 we added v += the num of enemy that has exactly x+1 candies. so we should multiply our ans with this num thatis ans = v*(v-1 + k) where k is num of enemies that have exactly same candies as x+1 and v is numbver of candies less then x, and so on. |
|
0
https://codeforces.me/blog/himanshu_attri Hello all my brothers it will be very kind of you if you can help me solving with this problem im stuck with this problem comes in teksystem hiring round and i was unable to solve it please dont unvote if you dont want to help let somebody else do it thank you very much |
|
0
https://codeforces.me/blog/himanshu_attri please someone help me with this problem it will be very helpful thank you in advance this is first time i am asking for help |
|
0
https://codeforces.me/blog/himanshu_attri please someone help me with this problem i stuck with |
|
0
in c why we initialise res=m? why can't we add res+=1 in the else statement when pos[b[i]] < last ?? |
|
0
in editorial of C2 why if (vals.back() == 1) ans = pw / 3; we are doing this |
| Name |
|---|


