| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 143 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | maroonrk | 133 |
| 9 | BledDest | 132 |
| 10 | qwexd | 129 |
|
+8
I didn't solve F but one of the obseervations i made was that if both a and b divide k you can "sacrifice" 1 out of 3 pancakes to cook the ones beside it. For example t = 1: (1 2 0) t = 2: (2 4 0) t = 3: (2 5 2) |
|
0
You can actually prove that the snake of size 2i-1 starts in a cell which is n-i cells away from (1, 1) and ends in a cell n-i cells away from (n, n), it would then follow quite trivially that its middle point its on the middle diagonal. To prove this you can see that a snake doesnt occupy more than one cell on each diagonal (of those defined by r + c = i, where this represents the i-th diagonal), then since there are 2N-1 diagonals the biggest snake must occupy at least one cell of each one then the remaining diagonals are equivalents to the ones on a (N-1) X (N-1) grid. Thus by induction the snake of size 2i-1 must start at the diagonal mentioned. |
|
+1
I find it strange that the intended solution for C was not to just simulate the process (or that no one else mentioned a similar solution). My solution 375495693 did just that in O(nlog(n)log(C)). It simulates in a greedy way using a priority queue while keeping track of the smallest and biggest element and exiting the simulation once the smallest value was one less than the biggest (a special case for 1, 2 was needed tho). I guess this goes to show how bad the maps are. |
|
0
omg your absolutely right this is not cubic, thnx |
|
0
For problem E did you use fft or something to calculate the convolution or did you not have to calculate it at all? |
|
+3
Hi the link to the contest I got by mail says it starts at 9AM UTC instead of 1PM UTC |
|
+13
|
|
0
Look at the announcements for the round, the problems are from a contest that is still going and they said in the announcements that upsolving wouldnt be available until 3 hours after the CF round ended |
|
0
when working with xor in ranges is always useful to think about the prefix xor, let pref[i] be the prefix xor of the array up to i with pref[0] = 0 then a subarray a[l:r] has xor pref[l-1]^pref[r]. Try constructing the prefix xor first. This is enough as a hint I think, if you want a full explanation of my solution just ask. In many problems with xor in subarrays is often much simpler to only think about the prefix xor. |
|
0
I think i found the mistake, it is when you take a part of the second half of B and the last term from the first part, like if n = 16 l = 1 r = 16, then your code outputs 4 5 6 8 9 10 11 12 4 5 6 8 9 10 11 12, but the array 12 4 5 6 8 9 10 has xor 0 |
|
0
what if region B has an odd length? you algorithm implies that the length of B is even (or am i missing something?) |
| Name |
|---|


