Comments
On NajmuddinSabrIOI 2025 Teams, 10 months ago
+39

Indian Team -

  • Samik Goyal (unforgettablepl) — 2nd time at IOI, 1 attempt left
  • Archit Manas (trash-can) — 1st time at IOI, 0 attempts left
  • Naveen Kulkarni (evenvalue) — 1st time at IOI, 0 attempts left
  • Yash Thakker (PoPularPlusPlus) — 2nd time at IOI, 0 attempts left

Seeing that nobody has reposted this idea anywhere...

Including in a comment above which described 4 ways of solving F

I had actually explained my approach here

Do check it out.. Still have queries, then feel free to ask!

+4

Hey there! I saw quite a few comments regarding the solution for F... infact I was also pinged here.

I had a different solution:

Firstly, note that for going from x->y it is equivalent to go from x->gcd and gcd->y Which is further equivalent to go from gcd -> x and from gcd -> y and thus from 1->x/gcd, 1->y/gcd

Now I will process the testcases offline. I go in increasing order of k. And a dp solution suffices, because the answer for a given number changes iff it is a multiple of k

Reading the code will give a better understanding Code : 321493342

Hope I was able to explain well and that this solution gave you a clearer understanding. But if you still have any doubts, do feel free to ask them!

0

Hello! Loved the contest Could we also get editorial for the same?

Maybe we can increase the number of rounds required to become a "trusted-participant". (infact a stricter measure would be to not increase their ratings till they become a trusted participant)

For those arguing that what about people who join new? My reply is that the question simply boils down to, do you want to give preference to those who have been contests for a long time? Or those who just joined?

I leave this to your discretion..

Thank you so much for taking the time to update us and address the recent issues with Codeforces. I personally appreciate you taking the time to address the common queries despite dealing with some health and personal challenges. Your dedication and commitment, even in tough times, is both inspiring and deeply valued. Wishing you all the best and looking forward to seeing Codeforces back on track!

Finally huge shoutout to Mike!

Auto comment: topic has been updated by ludo. (previous revision, new revision, compare).

On beaten_by_aiINOI 2025, 15 months ago
+9

I would like to take this opportunity, to spread my propaganda... Join evenvalue fan club !!!

It has not only helped me, but also sav and beaten_by_ai to gain rating, and get the blessings of evenvalue

A different way to approach D:(Probably easier?)

Solution :

Solution

My submission

Hope you understand the solution, if you have any queries feel free to ask, and I'll try to help if possible.

Congrats to tourist for 4000!!!

I was wondering if there could be a live interview of tourist, by none other than MikeMirzayanov himself!(streamed on codeforces obv)

An alternate and direct solution for C(1995C - Squaring) :

We will store the number of times we are squaring the $$$a_i$$$ as $$$cnt_i$$$. Initially $$$cnt[0] = 0$$$

Let the value of $$$cnt[i] = x$$$ and for the sake of convenience let $$$a[i] = p, a[i+1] = q$$$, we need to find the value of $$$cnt[i+1]$$$ Let $$$cnt[i+1] = y$$$.

So, in other words, we need to find the minimum $$$y$$$ such that $$$p^{2^x} \lt =q^{2^y}$$$ Taking log on both sides, we get $$$2^xlogp \lt = 2^ylogq \implies x + log2(log(p)) \lt = y + log2(log(q)) \implies x + log2(log(p)/log(q)) \lt =y$$$

Hence, we directly get the value of $$$y$$$, and can keep doing this on and on, and find all the $$$y$$$ and simply sum them up.

Edge Case

PS : For some reason $$$log2(log(p))$$$ — $$$log2(log(q))$$$ is giving WA, like I found the cases too, it is generally when $$$q$$$ is a power of $$$p$$$, but I could not get this flaw in the contest and missed this problem due by this :(

Feel free to ask any queries if anything is not clear :)

+9

Hello there! I had a funny little solution for B which involving Segment Trees.

My code : 261728503

Solution :

Hope you understand the solution, if you have any queries feel free to ask, and I'll try to help if possible.

On NeroZein[Discussion Thread] APIO 2024, 23 months ago
0

Sadly no :(

Although from Monday onwards it can be discussed, so wait for Monday :))))

On NeroZein[Discussion Thread] APIO 2024, 23 months ago
+3

Everyone who gives APIO 2024 is a winner!

On NeroZein[Discussion Thread] APIO 2024, 23 months ago
+3

evenvalue I agree2.(2 is even) Hence by evenvalue thm, he will win APIO 2024!