Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

Блог пользователя 36champ

Автор 36champ, 5 месяцев назад, По-английски

Hello Codeforces,

I am glad to invite you all to participate in Codeforces Round 1101 (Div. 2), which will be held on May/30/2026 17:35 (Moscow time). You will be given 6 problems to solve in 2 hours, one of which to be split into two subtasks. This round will be rated for all users whose rating is less than 2100.

All problems are authored by me. :) I also would like to thank the following people:

The scoring distribution is as follows: 500 — 1000 — (750 + 1000) — 2000 — 2750 — 3250

EDIT: Change the scoring of C from (1000 + 750) to (750 + 1000)

EDIT 2: Editorial is available here.

  • Проголосовать: нравится
  • +388
  • Проголосовать: не нравится

»
5 месяцев назад, скрыть # |
← Rev. 3  
Проголосовать: нравится +34 Проголосовать: не нравится

3rd last binary contest before we die, Yay!

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +19 Проголосовать: не нравится

As a tester, this round is so good that i will be participating again on an alt so that I can experience this contest again (also first time having a blue name in a tester blog yay)

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +8 Проголосовать: не нравится

As a participant, I’d chicken out and sleep early.

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

As a participant, I wish everyone Good Luck & Have Fun!

Also wish I can get candidate master :)

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

As a participant, wish I can go back to Expert

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

As a participant, hope I can reach CM this time

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Round 1101 feels like a new beginning.

Let's go!

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

waiting for that promised video from MIDORIYA_

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Hope I can get +73 delta this contest (I lost the game)

edit: Would make this a seperate comment but I've already made 2, $$$C1 \lt B$$$ is interesting

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится

What a short announcement! Hope problem statements are short and easy to understand like this

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

what does 1000+750 or 750+1000 actually means?

  • »
    »
    5 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    It means that there are subtask and for completing the first one you'll get (in the first example) 1000 points and for the second one 750, so 1750 in total.

    Most of the time solving the harder one also solves the easier one.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm really excited about the contest and the opportunity to solve problems and boost my rating.

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

What are the usual ratings of A B and C1 in div2 ???

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится
nooo UCL finals :<
»
5 месяцев назад, скрыть # |
← Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится
  • I really hope that there won't be any cheaters in this round.
»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

So many C1+C2 these weeks

Fantastic!

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

now I have to decide whether to watch the UCL final or to participate in a binary round.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

hi

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

last c1+c2 gave me nightmares for days, couldnt sleep :)

i hope i can sleep after this round

  • »
    »
    5 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +3 Проголосовать: не нравится

    Sleep now. Or you may not solve even B. Sleeping is very important for health and for contests.

    • »
      »
      »
      5 месяцев назад, скрыть # ^ |
      ← Rev. 3  
      Проголосовать: нравится -20 Проголосовать: не нравится

      People should develop a habit of checking the profiles of users they want to reply. sigbeta is very likely a cheater.

      Be aware that a lot of cheaters impersonate active legit community members (that's a fact) to conceal their cheating (that's my theory). I can see multiple such users in this blog.

      Also, it's absolutely crazy that your health advice is downvoted. Which is worse, people tend to upvote AI slop comments or blogs of some users just because their hanlde is yellow or sth (they cheated their way to master).

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится

As a participant, I hope I'd reach pupil after this contest.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hope I can get ABCDE accepted in my birthday.
It's a pity that I can't participate the Atcoder Beginner Contest cuz of my band.
But maybe I can participate.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

Another C1 & C2. C2 looks a little tough, not sure if I can get it done

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

BYE BYE XVIII

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Anybody will watch European Champion tonight?? I will participate in this contest for one and half hour,and then watch the amazing and excited Champion contest!!

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

who is for PSG

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

Having C1 and C2 is much more fun. Getting C1 accepted will lead to C2 accepted eventually.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I have a high hopes from this contest.. Last contest just ruined my confidence... All the Best for me and all of you !!

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Hopefully, the problem statement will be as short as the announcement.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Why binary rounds make us bleed!!

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I will drop to unrated because of this round lol (no offense to the authors — guess that I have skill issue)

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

AAAAAAAAA I hate constructives like $$$C$$$. Takes so much time to get the construction and you don't even know if it's the best way or not. And here's there no point in trying to solve $$$C1$$$, the author is basically telling us to solve it in a greedy/constructive way by giving $$$C2$$$.

»
5 месяцев назад, скрыть # |
← Rev. 8  
Проголосовать: нравится +4 Проголосовать: не нравится

Thanks for announcing that system tests are equal to pretests. I was getting WA on case 17 of C2, so I just added the O(n^2) solution of C1 for some fixed cases , and it passed

It was my most stupid and the smartest solution at the same time.

code for C1:376683154

code for C2: 376695110

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

OMG I couldn't submit D for 3 minutes because the site crashed holy shit they stole my candidate master

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +26 Проголосовать: не нравится

Why couldn't I open the problem statement in the last few minutes of the contest? It showed the error 'Can't read or parse problem descriptor,' and I couldn't submit my code either.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +13 Проголосовать: не нравится

Problem E is beautiful.

  • »
    »
    5 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +5 Проголосовать: не нравится

    Were you able to prove the fact that every snake is crossing the diagonal at its middle point? It was an important fact for my solution, and I happen to guess it by looking at pictures.

    • »
      »
      »
      5 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится +13 Проголосовать: не нравится

      The diagonal has $$$N$$$ squares and each snake can only cover $$$1$$$ square on the diagonal, so it's forced.

    • »
      »
      »
      5 месяцев назад, скрыть # ^ |
      ← Rev. 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.

      • »
        »
        »
        »
        5 месяцев назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        Oh wow this is a really cool way to put this observation — and it extends nicely to all diagonals besides the main one (i struggled with noticing it during the contest)! Thanks

    • »
      »
      »
      5 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится +5 Проголосовать: не нравится

      Disclaimer: I didn't solve E, most probably (queued but meh).

      As for the proof, well, looks like the whole configuration is symmetric along the main anti-diagonal, not just snake lengths. I didn't formally prove it, just, the construction falls apart if they aren't. A sketch:

      Consider the longest snake. It sure touches both corners.

      Now consider the second-longest snake. It should start and end in squares adjacent to the corners. So they are on one side of the longest snake.

      Etc.

    • »
      »
      »
      5 месяцев назад, скрыть # ^ |
      ← Rev. 4  
      Проголосовать: нравится 0 Проголосовать: не нравится

      The way I thought about it was as follows:

      • The snake of size $$$2n-1$$$ has to go through topleft (1, 1) and bottomright (n, n) corners. Additionally, it will have to go through either (1, 2) or (2, 1).
      • The snake of size $$$2n-3$$$ then has to start at either (1, 2) or (2, 1). (Whichever the biggest snake did not go through.) If you try to place it anywhere else, you'll notice that you'll end up completely blocking off the biggest snake.
      • Keep going. A new snake shows up in each diagonal band.
      • You can also prove that there must be a different snake in diagonal band by noticing that the snake can't move left and down.

      Unfortunately I got this with like 15 minutes left and then panic submitted something which kinda worked but was wrong (you have to be careful about how you count)

  • »
    »
    5 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +13 Проголосовать: не нравится

    Actually, the whole problem set is a nice step aside from the usual "100500-th fun fact about MEX" and its friends :) .

»
5 месяцев назад, скрыть # |
← Rev. 4  
Проголосовать: нравится +5 Проголосовать: не нравится

Problem F: How is $$$\frac{2n}{3}$$$ pancakes achievable? In particular, in the sample test with $$$a=1, b=2, k=2$$$.

Problem D: How to prove that the answer fits in $$$2^n$$$? I used the heuristic "go from solving Hanoi $$$(i, from, to)$$$ to $$$(i-1, from, to)$$$ and if all $$$i-1$$$ are on middle pole, switch the $$$from$$$ and $$$middle$$$". Intuition tells me it's not good enough if $$$i-2$$$ first elements were on middle pole and I had to return them all to $$$from$$$ so I have a fair $$$i-1$$$ tower to play.

Problem C1: does the lower constraint actually help in some meaningful way? I assume one may try to dp, but not clear what you can put as state parameter, that doesn't make the problem harder than C2 version.

Interesting problemset!

  • »
    »
    5 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +10 Проголосовать: не нравится

    Let $$$ f(n) $$$ denote the number of steps required for the subtasks from $$$ 1 $$$ to $$$ n $$$. We will prove it by induction.

    Base case: $$$ f(1) = 1 \le 2^1-1 $$$.

    Case 1: $$$ f(n) = f(n-1) + 1 $$$: trivial.

    Case 2: $$$ f(n) = 2f(n-1) + 1 \le 2 \cdot (2^{n-1} - 1) + 1 = 2^n - 1 $$$.

    Case 3: $$$ f(n) = 2f(n-k) + f(n-1) + 1 $$$. Note that here we must have $$$ k \ge 2 $$$, hence
    $$$ f(n) \le 2 \cdot (2^{n-2} - 1) + (2^{n-1} - 1) + 1 = 2^n - 1 $$$.

  • »
    »
    5 месяцев назад, скрыть # ^ |
    ← Rev. 2  
    Проголосовать: нравится +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)

  • »
    »
    5 месяцев назад, скрыть # ^ |
    ← Rev. 2  
    Проголосовать: нравится 0 Проголосовать: не нравится

    For problem D:

    Consider 3 locations: $$$from, to, free \in {1, 2, 3}$$$.

    Let $$$f(m, l_1, l_2)$$$ be the ops number to move a $$$m$$$ layered tower with from location $$$l_1$$$ to location $$$l_2$$$.

    We need to compute $$$f(n, from, to)$$$. Here $$$from = 1, to = 3, free = 2$$$.

    Induction: $$$f(m, from, to) \le 2^m$$$ for $$$m \lt n$$$.

    What do we need to move $$$n$$$-th layer? We want to have exactly $$$a_n$$$ elements on top of it.

    Let's remove suitable layers above $$$n$$$-th layer greedily: in case there are several suitable layers, take the lowest. Let's say it is layer $$$k$$$.

    To move layer $$$k$$$ we need to have the top layer on at least one of the positions $$$to$$$ or $$$free$$$ to be larger than $$$k$$$. How do we guarantee such state? We need to clean up a bit after each moved layer.

    Namely, after each moved layer $$$k$$$ ($$$from \rightarrow to_k$$$) build a tower on top of it using all the suitable previously moved elements (that is all the moved elements $$$ \lt k$$$). What is the ops number to do that? By induction it's $$$\le 2^{k-1}$$$. Note that here each layer $$$k$$$ that is to be cleaned $$$from, free, to$$$ is just a permutation of $$${1, 2, 3}$$$, so induction $$$f(k, from, free)$$$ is indeed applicable.

    Thus, moving layer $$$n$$$ we need to clean up at most $$$a_n \le n - 1$$$ layers, therefore, after we moved layer $$$n$$$ we used at most $$$1 + 2 + \dots + 2^{n-2} \lt 2^{n - 1}$$$ ops.

    Then, we only need to put the rest on top of $$$n$$$. The rest is $$$n-1$$$-layered tower, that stays on position $$$from_{n-1} \in {from, free}$$$.

    So, $$$f(n, 1, 3) \le 2^{n-1} + f(n - 1, from_{n-1}, 3) \le 2^{n}$$$

  • »
    »
    5 месяцев назад, скрыть # ^ |
    ← Rev. 2  
    Проголосовать: нравится 0 Проголосовать: не нравится
    C1 DP
»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Nice round! I want to eat a cake now.

D was one of those problems when you need to think twice before implementing so that the implementation doesn't become cumbersome. Sadly, I didn't have enough time.

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +2 Проголосовать: не нравится

I submitted D in the last 5 minutes. It is still in queue. Maybe I could make it AC if I got the verdict before the contest finished.

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Though performed extermely bad, I think the problems are interesting!

(Note: DP is important!!! Greedy and construction won't always work...)

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

https://codeforces.me/blog/entry/154147

Excuse me for bothering the competition organizers, but I hope you will take note of this post. I believe there was a wrongful ban.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

https://www.youtube.com/@tenperformer To everyone who needs this editorial, There is a video under this channel where I have posted binary search solution on C1/C2 along with proof I also post regular videos on transformer architectures and evolving technologies if you guys are interested in understanding them

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Good problemset, just one question why points of C1 and C2 were less than equal to B, they were way harder than B atleast for me

  • »
    »
    5 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    I think there're no problems in score distributon.

    C1 is the lead-in of C2, due to finishing C1 would be helpful for finishing C2.

    So I think the score of C1 and C2 is suitable.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Three contest down, and I still couldn't hack :twin:

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What to do when I lose rating? (Wrong answers only)

Good contest though I just skill issued C

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

The queue at the end of the round was diabolical. Would have solved C2 but I didn't realize it was wrong since it was in queue for 5 whole minutes before I tested it myself. Def a skill issue but that still wasn't a fun experience.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Regarding B, where in the problem statement can you infer the following points?

  • The process described as “If the height of frosting at position i is greater than h, the excess frosting will be pushed to position i+1” is performed in ascending order of i. As a result, even for values of i where A[i] < h, the cake may be carried over and pushed to position i+1.

I had predicted this based on the sample output for a = (2, 3, 4, 3, 2) and a = (3, 3, 3, 1, 1), but I feel this was an inappropriate approach to reading the problem. For those who solved this problem quickly, what part of the problem statement did you use as evidence to recognize the above fact? This may seem more like a question about English than about cp, but please bear with me.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +27 Проголосовать: не нравится

I submitted my code for F just 2 seconds before the contest ended, but I had no idea whether it would pass until the system test (as my submission was still stuck in the queue). Just now, I kept refreshing the Status page, watching the number of submissions drop one by one, until only mine was left. Fortunately, it ended up passing, and I managed to AK the contest at the very last moment! What a thrilling contest!

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

So sorry if the question is dumb I just started codeforces and cp before this contest I only did 3 cp questions, I was able to solve A problem and only A but why didn't my rating have any effect and it says in my profile that this contest was unrated

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

problem statement of $$$B$$$ wasn't clear

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

by when will ratings update?

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

chat im finally rated

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Nice round

The testing system however was absolutely dead in the last 5-ish minutes. I had a solution to D, sent it, it wasn’t tested until the system testing. I had a single wrong line that ruined the whole solution due to my stupidity… Or I just need more experience, started writing in C++ only about a year ago.

Still could’ve probably found it if I saw the WA2:(

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

very interesting rating graph this person has! https://codeforces.me/profile/oleinikowc

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I am a noob and wanted to know whats wrong in this plzz help c1 ~~~~~ //this is code

include

include

include

include

include

include

include

using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin>>t; while(t--){ long long n,x,s; cin>>n>>x>>s; string str; cin>>str; long long limit=0; long long count=0; long long tables=x; long long ic=0; map<long long,long long>after; for(int i=n-1;i>=0;i--){ if(str[i]=='I')ic++; if(str[i]=='A'){ after[i]=ic; } } for(int i=0;i<n;i++){ if(str[i]=='I' && tables>0){ count++; limit+=s-1; tables--; } else if(str[i]=='E' && limit>0 ){ count++; limit--; } else if(str[i]=='A'){ if(limit==0 && tables>0){ count++; limit+=s-1; tables--; } else if(limit!=0){ if(after[i]<tables){ count++; limit+=s-1; tables--; }else{ long long ref=i+1; long long es=0; while( ref<n && str[ref]=='E'){
es++; ref++; } if(es-limit>=1 && tables>0){ count++; limit+=s-1; tables--; }else{ count++; limit--; }

}
            }
        }
    }
    cout<<min(count,s*x)<<"\n";
}

return 0;

} // ~~~~~

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

siddynexp Can you explain this to us: why do you cheat? Does it make you feel nice inside?

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

PSG finally won

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

if Alice isn't having a party, i don't have to do these problems.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Good luck everyone! Thanks for the great contest.

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

(Removed. I have moved this discussion to a private DM with the coordinator.)

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится -10 Проголосовать: не нравится

Nice

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

Hello, I received a similarity notification for my submission to 2232C2 and would appreciate a manual review if possible.I did not copy code from other contestants or share my solution with anyone. One thing that I found confusing is that my solutions for C1 and C2 were very similar, since I solved the hard version first and then submitted essentially the same approach for the easy version. However, only the C2 submission appears to have been flagged.If additional information about my approach or reasoning is needed, I would be happy to provide it. Thank you for your time and consideration.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

BYE BYE XVIII

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

Dear Codeforces Team, My solution was flagged as being similar to another participant's submission. I would like to request a manual review, as I wrote the solution independently and the implementations are completely different. While the underlying idea may be similar, which is common in competitive programming, the code structure and implementation were my own. I would appreciate it if you could recheck the submissions and reconsider the verdict. my solution 376701571 dpInvariant solution 376666673 please look into this matter

»
5 месяцев назад, скрыть # |
← Rev. 6  
Проголосовать: нравится 0 Проголосовать: не нравится

[Deleted]

»
5 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Hello, I would like to clarify regarding warning I received for my submission (376687415) of 2232C2. I solved the problem independently during the contest. Since the problem had a C1 version with smaller constraints, my first approach was DP for C1. In DP I tracked the number of tables in use and for each such state, the maximum number of people already seated. I then analysed the DP state further and realised that greedy can help to solve this problem by tracking a the number of empty tables, available seats in tables in use and ambiverts whose placement can be changed later to allow an extrovert to sit. I also made a submission of C1 with the DP code I wrote first, then made submission for c1 with the greedy code and for C2 I made submission with the same greedy code. This approach was natural and I have derived the logic and written the entire code on my own and I did not intentionally violate contest rules. Thank you.

»
5 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

hello dear users of the best coding platform Codeforces , im writing this comment wishing to get called to translate official rounds(yea i know im loser with low rating , noname , etc.) pls i know russian almost perfectly mb you guys can like this comment to others can see this