|
0
Yes, the Firefox Add-on has also been published! |
|
0
Auto comment: topic has been updated by SilverTongue1729 (previous revision, new revision, compare). |
|
+4
Sure, will do it soon. For now you can use a user script manager extension like TamperMonkey, and then install this script from GreasyFork. Thanks! |
|
0
Auto comment: topic has been updated by SilverTongue1729 (previous revision, new revision, compare). |
|
0
Auto comment: topic has been updated by SilverTongue1729 (previous revision, new revision, compare). |
|
0
Yes it is!! |
|
+1
An alternate solution to D which doesn't use DP: Similar to the solution in the editorial I used a DSU to keep track of components, but to check whether elements $$$i$$$ and $$$i+d_i$$$ are connected, I simply need to check among operations $$$j$$$ where $$$d_j = d_i$$$, and $$$a_j \% d_j = i\%d_i$$$. I used a map to store sets of operations together based on $$$d_j$$$ and $$$a_j\%d_j$$$, and I stored each operation as a pair $$$[ a_j, a_j + k_j \cdot d_j ]$$$. Now each set of operations can now simply be represented as sets of intervals, and I used a datastructure which I called an My submission: 283669482 PS: I used ChatGPT to help in implementing the IntervalSet class so its not in a great state rn;) and I haven't seen any implementations of such an IntervalSet class, so I would love to learn about any other implementations you guys know about. |
|
+3
Contests will mostly be held from 2-7pm IST (UTC +5:30), exact timings will be confirmed for each contest. |
|
0
Could you add the tags for Chinese Remainder Theorem, or perhaps for extended Euclids? |
|
+19
Ayy, that's great! Discovering all the twists when coming up with the problem was soo fun, it honestly the best part about this problem imo. Hope you enjoyed solving it! |
|
+11
Read this blog https://mirror.codeforces.com/blog/entry/104690 |
|
0
gl |