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

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

Hola Codeforces!

I am happy to invite you to Codeforces Round 856 (Div. 2), which will take place on Mar/04/2023 20:35 (Moscow time). Notice the unusual time! The round will be rated for participants with rating lower than 2100. You will have 2 hours to solve 5 problems. The problems were authored and prepared by me.

I would like to thank the following people who made the round possible:

See you in the standings!

UPD:

Scoring distribution: $$$750$$$ — $$$1000$$$ — $$$1250$$$ — $$$2000$$$ — $$$2750$$$

UPD: Editorial

UPD: Congratulations to the winners!

Official winners:

  1. lunchbox
  2. Meaf
  3. 14th_onresp
  4. kalimm
  5. izhang

Unofficial winners:

  1. jiangly
  2. maspy
  3. neal
  4. potato167
  5. arvindf232
  • Проголосовать: нравится
  • +605
  • Проголосовать: не нравится

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

Veryyyyyyyy unusual time! (^-^)

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

Please change time to usual.

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

OP has set two contests and the times are

March 4 2022 21:05 — March 4 2022 23:05 and

March 4 2023 23:05 — March 5 2023 01:05 (times are in IST UTC+5.5).

Without paying attention to the year it may seem two contests happen back to back without any break. A real coincidence

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

Omg, it starts at 00:35 in Vietnam, not a comfortable time for me.

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

very excited about Argentinian round, and congrats once again to you and your team for getting LATAM Champions! all the best, hoping to see some nice problems in this round

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

Will there be hacking phase in this too. I wanna try my luck in hacking too.....kekw

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

    You can attempt hacking only if you solve a problem and lock it.

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

      In 855 (Div 3), there was no option of locking, it was open hacking after contest.

      Is it there in 866 (Div 2) too, or it's just that hacking allowed in Room :(

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

        Usually it's rooms in div 1, div 2 and div 1+2. There is no open hacking phase.

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

contribution can affect the rating?

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

23.05 in India, but still i will give this contest. hope i'll get to learn something new from the contest. all the best to everyone.

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

    You are giving you first contest at uncomfortable time, good experience for you.

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

MESSI is the champion!

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

I got -70 last round :( I hope I can get some of that back. Good luck to all participants!

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

A round with unusual time and longer duration than normal div2 round!

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

Midnight contest go brr brr!

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

as a tester, I think this will be a great contest.

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

    bro I got a question.

    How do you guys make test cases?

    I know this is a very abstract question.

    But I've been thinking about this for a while.

    Kindly explain with a relevant example when convenient.

    All the best for your tester role!!!

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

Why is the round is on unusual time if it is not based on some onsite round?

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

    Author's time zone is GMT-3. Same issue with football tournaments such as Copa America and World Cups hosted in South America xD

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

I'm glad that I ended up testing a South American round. Expect great problems :3

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

Wish i do well in this div

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

is c2 ladders a good way to increase someone ratings or should I try something else?

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

Really appreciate the unusual time, I'll get a little extra sleep instead of waking up at 6:00.

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

late night contest

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

Rare American friendly contest time :D for once I won’t need to wake up at 6am to attend

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

BTW where is the # before the number on the contest page? I can't find it anymore in any numbered contests...
If this is a persistent change, I must join the round as a memory though it starts at 02:35(UTC+9) :)

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

[redacted]

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

Quite excited to participate in this Latam round ❤️

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

I am a beginner do you encourage me to participate?

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

very 《good》 time to compete for Chinese...

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

i think this contest originally was 2.5 hours to solve 6 problems~! :|

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

How does the change in rating gets affected by the number of people

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

So sad I can't say " Hope this is my CM promotion contest "

I need 120 this time :(

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

I like the timing. Please host more contests at this time.

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

Comfortable time for night owls (UTC+6)

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

It is a good time.

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

Omg, it starts at 1:35 in China, not a comfortable time for me.

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

Waiting for something good

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

Score distribution where?

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

Finally a contest with a good start time for US west coast participants! Would love to see more contests at this time.

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

today I drove for 8 hours, around 300 km. Pretty scary road. I am tired as F**K. I was looking forward to this round but didn't see the timings. I feel like attending the round, but I might be too sleepy to attend it. upvote if I should take part, downvote if I should take rest !!!!

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

    Really Good and straightforward problems.

    Tried my best. Got stuck on B for LONG LONG (56 Minutes long) time, and solve C in 18 minutes. Feel disheartened for not seeing the pattern in B quickly :( .

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

looking at the score distribution , i can predict it will be an unbalanced contest and will have a huge difficulty gap between C and D

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

THE BEST CONTEST OF MY LIFE

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

This round needs an extra problem F.

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

how to solve E ?

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

How to solve D?

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

A was unique for a problem A. I actually solved C faster than A and B, so I thought C was cute. B made me want to pull my hair out. I basically reached the maximum penalty then bashed it until I saw AC.

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

My solution for $$$D$$$:

This problem has an $$$O(nlog^2n)$$$ solution.

Note $$$diff$$$ as the number of different prime numbers.If $$$diff<n$$$,no solution.

Note the number of occurrences of $$$x$$$ is $$$cnt_ x$$$.

Construct polynomial: $$$(1+cnt_{p_1}X)(1+cnt_{p_2}X)...(1+cnt_{p_{diff}}X)$$$

Expand this polynomial and note the coefficient of $$$X^n$$$ is $$$facn$$$.

The answer is:$$$facn\frac{n!}{(\Pi cnt_i!)}$$$.

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

A>>>B

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

Was E tree hashing?

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

Got D accepted 1 minute before the end of the contest. I am feeling so happy right now.

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

how to solve B?

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

    Turn all 1's to 2's in one iteration . Once that is done , check for every 'i', whether A[i+1] is divisible by A[i]. If yes, increment A[i+1] by 1 and move on.

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

    you basically increment all the elements that are 1 after this you traverse whole array and if a[i+1] is divisible by a[i], increment a[i+1], this solution will assure that the array already corrected will not be messed up, and the moves required will be always less than 2n

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

I loved problem D, thanks! (might be biased because I am a math major ^^').

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

    How did you solved it?

    • »
      »
      »
      14 месяцев назад, # ^ |
        Проголосовать: нравится +3 Проголосовать: не нравится
      • Step 1: Find the number of occurences of each number in the input.
      • Step 2: Split the numbers and their counts into two parts: primes and non-prime numbers.

      Step 3: How do we get a valid prime decomposition? - First, we need to pick exactly $$$n$$$ distinct primes. (also note that for two different sets of primes, they will never give a same number, no matter how the powers are picked) - Then, we need to count the number of non-equivalent ways of putting the exponents. This is $$$n!$$$ divided by the product of the factorial of the exponents. - When summing over all the possible arrangements of the expronents, a prime a number has a contribution of 1 over its number of occurences if is not in the decompposition, and 1 otherwise. To compute the sum, I realized it was just the elementary symmetric polynomial of degree (number of prime numbers — n) computed on the inverse of the counts of the prime numbers.

      Step 4: The elementary symmetric polynomial can be computed with dynamic programming.

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

        In step 3 what do you mean by "a prime a number has a contribution of 1 over its number of occurences if is not in the decompposition, and 1 otherwise" ?

        How do you realize "To compute the sum, I realized it was just the elementary symmetric polynomial of degree (number of prime numbers — n) computed on the inverse of the counts of the prime numbers." ?

        Any resources ?

        • »
          »
          »
          »
          »
          14 месяцев назад, # ^ |
          Rev. 4   Проголосовать: нравится +3 Проголосовать: не нравится

          Reading again my last message, I realized the explanation was terrible. x’)

          Denote by $$$\alpha_i$$$ the number of occurrences for the non-prime numbers and by $$$\beta_i$$$ the number of occurrences for the prime numbers $$$p_i$$$.

          When picking exactly $$$n$$$ distinct prime numbers, the number of valid decompositions is $$$\displaystyle\frac{n!}{\prod \alpha_i! \prod (\beta_i - 1)!} \prod \left( 1 ~\text{if}~ p_i ~\text{is used else}~ {\beta_i}^{-1} \right)$$$

          The right product is what I meant by "a prime a number has a contribution of 1 over its number of occurrences if is not in the decomposition, and 1 otherwise". The left factor does not depend on the primes which were picked.

          In order to compute the sum of all the right products, I rephrased it as “I want all the ways to pick $$$n$$$ 1’s (for the primes that divide the number) and fill the rest with the inverse of the number of occurrences”. This is can be computed as the coefficient in front of $$$X^n$$$ in $$$\prod (X + {\beta_i}^{-1})$$$ (You can see that a bit like the combinatorics argument for $$$(1+X)^n = \sum \binom{n}{k} x^k $$$: to get $$$x^k$$$, you need to pick $$$k$$$ positions for $$$x$$$ among the $$$n$$$ possible positions).

          In order to compute this coefficient, you can use a mix of FFT and Divide & Conquer which runs in $$$O(n log^2 n)$$$ but I did not want to bother with that and I checked the problem constraints: a $$$O(n^2)$$$ algorithm will do the job.

          To compute this coefficient, I used the first equation in the properties section the Wikipedia article on elementary symmetric polynomial (I actually knew it from my studies). Evaluating elementary symmetric polynomials can be done by dynamic programming thanks to the following equations (I also knew them from my studies).

          Notation $$${e_i}^{(j)}$$$ is the $$$i$$$-th elementary symmetric polynomial on $$$j$$$ variables.

          $$$\forall j, {e_0}^{(j)} = 1 ~\text{and}~ \forall j, \forall i > j, {e_i}^{(j)} = 0 $$$
          $$$ {e_{i + 1}}^{(j + 1)}(x_1, …, x_{j+1}) = {e_{i + 1}}^{(j)}(x_1, …, x_j) + x_{j+1} {e_{i}}^{(j)}(x_1, …, x_j)$$$

          EDIT: I missclicked on "post" instead of "preview". I am going to edit this post with the full answer.

          EDIT 2: I finished updating the message.

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

            Thank you so much for detailed explanation, people like you make codeforces a better place :)

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

A's problem statement was deceptively simple, I thought there should be a two liner solution but I couldn't find one. However, I think I did come up with an elegant sorting solution for A:

void solve(){
    int n;
    cin >> n;
    vector<string> v;
    for(int i = 0; i < 2*n-2; i++){
        string temp = "";
        cin >> temp;
        v.push_back(temp);
    }
    sort(v.begin(), v.end(), [] (string& a, string& b){return a.length()<b.length();});
    bool ok = true;
    for(int i = 0; i < v.size()-1; i+=2){
        reverse(v[i+1].begin(), v[i+1].end());
        if(v[i] != v[i+1]) ok = false;
        
    }
    if(ok) cout << "YES" << endl;
    else cout << "NO" << endl;
}
  • »
    »
    14 месяцев назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    Yours solution is good. But there will be no more than 2 substrings that contain (n-1) size. Just find those two substrings and reverse any of them, if those two substring matches, the ans is "YES", otherwise "NO".

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

rank 2800 and got -10 rough contest

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

D solution: first group the number by their count. Then solve base on this. We will split the problems into two combination: The base and the power. The base has to be unique

Let's call DP[i][j] mean at index ith, we have j prime factors left. This would uniquely determine the number of the power slots left, because if there are X numbers from i + 1 to the end, and j number has been used as base, then there are j — X numbers that were used in the power slots. This means there are n — (j — X) slots left to be used as Power. The number of ways to select number i into factor slots is (n — (j — X) choose count if i. Do the same if the number at i is prime but with one less prime count.

from there just do a count of unique combination

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

how to solve problem C?

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

    just observe that if the d is the size of your subsequence, then you should not have anything that is less than d, since you can always remove it and make the value larger.

    so to solve for ith, let say you add ith into your subsequence, then you start removing the smallest element until the value of this element is not smaller than the size. That'd be your answer.

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

      can you please elaborate it with an example it's still not clear to me

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

        Easier, more straightforward way to do this is by going in reverse. You start by computing the best answer for the whole array. That's easy to do because you just greedily go from the last number until you can't add the number without decreasing the m parameter. How do you do that? First, let's make use of one observation — for a segment (l, r) the numbers that you are going to use in the optimal solution are going to be the largest numbers because the formula is their product divided by c! where c is their amount. Now, after this step, we should have two things : the answer for k = n and the index where the next number lies (going through the reversed sequence). Now, simply iterate from the end to the beginning, removing numbers one by one and greedily adding numbers from index and moving it towards the start as long as it doesn't decrease m. We don't actually care about the exact value of m. Why? Because the formula is the product divided by c!, if we want to add a number, we would multiply m by it and then divide m by (c + 1) we can notice that as long as our number is larger or equal to c+1, m doesn't decrease.

        You can find the implementation in my submissions

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

          So basically we are just moving from right to left and we keep moving until and unless Ai<m (here m is 1,2,3...n) because if m becomes greater than Ai and if we take it then it (Ai/m) doesn't contribute in maximizing so as soon as we encounter it we will break at that point and length of maximized scored subsequence would be r-l+1.Am I thinking in the right way? If I am thinking in the right way how do I implement the above approach using Binary search. I think I might get TLE if I do something else other than BS because for every point we ned to get (l,r) and that would take O(n^2). Right?

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

            it's O(N), let me say it in a simpler way

            First observation is that we always want to take the highest numbers possible. You are right with the Ai < m, yes. The length is r — l + 1 but you can notice that it's not going to be O(n^2) since we are always going to move l at most n times (since we only ever move it to the left) and r exactly n times (by "removing" elements). And since every move results in a new subsequence we will have not more than 2 * n subsequences which results in O(n) solution. It's called the "sliding window" technique if you want to read more about it.

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

Nice math problems :)

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

Can you tell we if i am right. D:

Let's call b a set consisting all numbers from a, p a set of all primes in a, k is length of this set, then:

ans =

SPOILER, maybe...
»
14 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Easy A-C, hard D and E

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

Can someone explain why my solution is MLE https://codeforces.com/contest/1794/submission/196011471

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

pov: aped B with dp after trying and failing to come up with anything ;-;

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

    I reached max penalty for B and wrote random code until I saw green.

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

just noticed mateoCV always comes on 4th march with amazing contest.

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

Can't get any approach for problem C anybody please let me know in what direction should i think for it.

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

    Binary search

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

    Maybe that's too subtle of a hint, but the editorial is also out if you're stuck for too long.

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

Ratings updated preliminary, it will be recalculated after removing the cheaters.

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

Any predictions for rating problem D?

»
14 месяцев назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

For problem E, I thought lets make the 2 lists pri, comp where pri stores the count(non zero) of each prime element and similarly comp for composite. Let us denote them by pri={x1,x2,x3....}, comp={y1,y2,y3....}. Then my answer is ((x1+x2+x3....+y1+y2+y3.....-n)!/((x1!)(x2!)(x3!)....(y1!)(y2!).....))*(Sum of elements in pri taken n at a time). The idea is that lets select the primes which will be in the base then the powers can be arranged as (x1+x2+x3....+y1+y2+y3.....-n)!, then just to remove the repetition we will divide it by x1!,x2!....and for yi if we have used yi the divide by (yi-1)! else divide by yi! and for that I used the sum of element thing.

Here is my submission:196054295

Can anybody find my mistake ? And sorry for bad English.

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

Thanks for the nice round !

Here is my feedback about each problem

A
B
C
D
E

I'm looking forward to take part in other rounds that you set!

»
14 месяцев назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

Solved.

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

Why round not rated for me (2071 rate) MikeMirzayanov?

»
14 месяцев назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

Due to the uncomfortable time in China I didn't have a chance to participate in this great contest. However, after my virtual participation today I'd like to express some of my points so far. Here are them:

  1. for A,B and C, I don't have many words to say. They are intersting but just a little easy.
  2. for D, I think it's not very proper to place a simple and standard dp on the position of the last two problems of div2 contests. However, solving this problem did strengthen my dp skills.
  3. for E, I think it's too easy to be a div2 E. You can solve it quickly as long as you have once learned tree hashing. And the annoying part of hacks in selecting modular numbers is also boring. Anyway, the E should be replaced in order to make a more balanced and interesting problemset.

However, though some problems exists, the whole quality are definitely all right. And Thanks for the authors' and testers' hard work in the contest!

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

What is the rating for question C ?

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

Why am I getting WA on test 9 ? My code I have used bottom-up dp. Could someone help.

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

muchas gracias aficiónados esto para vosotros SIUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

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

i think it is from the best contests i see in my journy till now.

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

MikeMirzayanov I got a rules violation for my A solution. I didn't copy or leak my solution. It's a pure coincidence the solutions are so similar.