BledDest's blog

By BledDest, 3 days ago, translation, In English

Neapolis University Pafos

Hello Codeforces!

The series of Educational Rounds continues thanks to the support of the Neapolis University Pafos. They offer a BSc in Computer Science and AI with JetBrains Scholarships. Gain cutting-edge skills in AI and machine learning, preparing you for high-demand tech careers. Limited scholarships available — don't miss your chance to study in Europe for free!

Educational Codeforces Round 192 (Rated for Div. 2) will start on Jul/06/2026 17:35 (Moscow time).

This round will be rated for the participants with rating lower than 2100. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest, you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally.

You will be given 6 problems and 2 hours to solve them.

The problems were proposed and prepared by Maxim FelixArg Novotochinov, Adilbek adedalic Dalabaev, Roman Roms Glazov and me. We would like to express our gratitude to MikeMirzayanov for creating Codeforces and Polygon — without them, these rounds would not be possible.

Also, big shoutout to the round testers: shnirelman, Brovko, awoo, Alenochka, paomur. Thank you for helping us prepare the contest!

We wish you good luck in the contest!

  • Vote: I like it
  • +111
  • Vote: I do not like it

»
3 days ago, hide # |
Rev. 2  
Vote: I like it +3 Vote: I do not like it

I will be live with post contest discussion stream here

»
3 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As an sc3developer, hope my computer doesn't fall into a bottomless pit this round

»
3 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

wow!

»
3 days ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Why not "6 or 7 or 67 problems" this time?

»
3 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Good luck to all participants!

»
3 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Time to get humbled by c again. -:lol:-

»
3 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How many questions should I aim for in a div 2 contest to reach pupil. In a 2 hour, 3 hour long contest, does the number or timing expected from one change?

»
3 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Ahh another edu... goodbye purple

»
3 days ago, hide # |
 
Vote: I like it -33 Vote: I do not like it

.

»
3 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

yay, another contest! lets have fun!!

»
2 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello,

This will be my first CF contest, i hit usaco plat in march and wanted to do this for fun to see how it is in comparison

any tips?

»
2 days ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

Fight for Master go go go

»
2 days ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

yes, good luck to all participants!

»
2 days ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

I hope A and B are easy like old problems, there is no point of making A and B harder but still solvable by AI

»
37 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Thanks for the round! Good luck, everyone!

»
36 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Good luck!!

»
36 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Good luck!

»
35 hours ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

I love problem C.

»
34 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

seven submissions for last problem

»
34 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As a graytist (graytist != ratist btw), nooo I'm getting back to newbies after this round.

»
33 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can F be solved with persistent treaps?

»
33 hours ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

$$$A, B, C$$$ were kinda standard, as expected for a Educational round. But $$$D$$$ was a good problem!

»
33 hours ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

D is a cool problem, sad that I solved it 3 minutes before the contest ended

»
33 hours ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

.

»
33 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

so close to solve c, wasted a lot of time on b, i dont know why :(

»
33 hours ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

D is a nice DP problem!

»
33 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Damn, i bugged my solution for C but still, great contest!

»
33 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

First time I saw where we actually do the operation mentioned in the problem (B) and it works, otherwise mostly its some mathematical equation which solves the problem in O(1) or log. C seems out of my way, need to upsolve now, but loved the problems.

»
33 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

got 3 minute late to submit E!

  • »
    »
    33 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    how to solve D?

    • »
      »
      »
      29 hours ago, hide # ^ |
      Rev. 2  
      Vote: I like it +4 Vote: I do not like it

      My whole thought process & solution for D.

      Spoiler

      code: 381515191

»
33 hours ago, hide # |
 
Vote: I like it +18 Vote: I do not like it

B was a disaster

  • »
    »
    33 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Just use Prefix Sum + Suffix Max.

    • »
      »
      »
      33 hours ago, hide # ^ |
       
      Vote: I like it +1 Vote: I do not like it

      I'm not good at this kind of problem. I struggled on B for 1.5h and ended up with a segment tree solution and finally passed B. Then I passed C in just 20 minutes but got negative rating delta. The order of problems of this round was just a disaster.

    • »
      »
      »
      32 hours ago, hide # ^ |
       
      Vote: I like it +3 Vote: I do not like it

      You're a f***ing genius brother.

  • »
    »
    33 hours ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    it .

  • »
    »
    32 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    I saw some people solving B using just brute force, and I don't know why it works!

    • »
      »
      »
      32 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      I think it probably has something to do with the nature of the problem. Even Im not sure but I think its something along the lines of if theres too many segments that satisfy the left part then the middle part will probably be satisfied or smth like that. Im not sure.

    • »
      »
      »
      23 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      How about... solving F using brute force too? Loop interchange does wonders... also #pragma is doing the heavy lifting here... constraints too small, unhackable...

    • »
      »
      »
      18 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      weak pretests ig

  • »
    »
    32 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    int cntOne = 0, cntTwo = 0, cntThree = 0; bool cond = 0; for (int i = 0; i < n - 2; i++) { if (arr[i] == 1) cntOne++; if (arr[i] == 2) cntTwo++; if (arr[i] == 3) cntThree++; if (cntOne >= cntTwo + cntThree) { int One = 0, Two = 0, Three = 0; for (int j = i + 1; j < n - 1; j++) { if (arr[j] == 1) One++; if (arr[j] == 2) Two++; if (arr[j] == 3) Three++; if (One + Two >= Three) { cond = 1; break; } } } if (cond) break; } if (cond) cout << "YES" << "\n"; else cout << "NO" << "\n";

    seems like an n^2 solution to me, but it got ac. Can anyone explain why ?

    • »
      »
      »
      32 hours ago, hide # ^ |
      Rev. 2  
      Vote: I like it 0 Vote: I do not like it

      ..

      • »
        »
        »
        »
        32 hours ago, hide # ^ |
         
        Vote: I like it 0 Vote: I do not like it

        I wasted so much time optimizing this. Post-contest, my friend showed me their brute force got AC. Absolute pain.

        • »
          »
          »
          »
          »
          31 hour(s) ago, hide # ^ |
           
          Vote: I like it 0 Vote: I do not like it

          2 brute force solutions for B have already been hacked. The similar submissions will probably result in a TLE verdict during system testing.

    • »
      »
      »
      31 hour(s) ago, hide # ^ |
       
      Vote: I like it +4 Vote: I do not like it

      Define

      $$$p[i] = pref_1[i] - (pref_2[i] + pref_3[i])$$$

      $$$q[i] = (pref_1[i] + pref_2[i]) - pref_3[i]$$$

      The inner loop runs when $$$p[i] \geq 0$$$. Consider the first index $$$i$$$ for which $$$p[i] \geq 0$$$. Since $$$p[i]$$$ shifts $$$\pm1$$$ at a time it's guaranteed that $$$p[i] = 0$$$ or $$$p[i] = 1$$$ here.

      At this point, we will begin scanning $$$arr[i + 1 : n]$$$ looking for a suitable middle segment.

      Case 1) We find a good middle segment and are done.

      Case 2) We don't find a good middle segment. This implies that $$$q[j] - q[i] \lt 0$$$ for all $$$i \lt j \lt n$$$

      Consider that $$$q[i] = p[i] + 2 \cdot pref_2[i]$$$

      Subsitute to get $$$(p[j] + 2 \cdot pref_2[i]) - (p[i] + 2 \cdot pref_2[i]) \lt 0$$$

      $$$p[j] - p[i] \lt 0$$$

      This inequality is the crux of why brute force works. It states that from $$$i + 1$$$ onwards, we never improve the balance of $$$p[i]$$$.

      Recall from earlier that $$$p[i] = 0 $$$ or $$$p[i] = 1$$$ when $$$p[i] \geq 0$$$ for the first time.

      If $$$p[i] = 0$$$ then after a failed scan at index $$$i$$$, we will be left at $$$p[i] = -1$$$ (note, a failed scan implies that $$$arr[i + 1] = 3$$$ as otherwise a length one middle segment would work) and we will never need to scan via the inner loop again as it will be maintained that $$$p[i] \lt 0$$$ from then on.

      If $$$p[i] = 1$$$ then after a failed scan at index $$$i$$$, we will be left at $$$p[i] = 0$$$. From then on, we are back in the prior case and can scan at most once more.

      Total time complexity is $$$O(n) + 2 \cdot O(n) = O(n)$$$

      TLDR the inner loop can run at most twice.

    • »
      »
      »
      27 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      I looked into it and I don’t think it’s hackable.

    • »
      »
      »
      20 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      I have the same solution :)

»
33 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I thought my solution for D would be fast enough but it TLEs and I'm not sure why :(

My idea is that it doesn't matter in which order you apply the merges, and every merge can be represented by a mask. So for example if a = 12345 and mask = 1101 then we would get 69.

Then I loop over all masks for a and b, which should be small amount, and check if merge(a) == merge(b), and track the longest merge.

I thought I might've been too slow because I was working with strings when merging, but even after changing to working with ints I TLE on test case 10. Is it possible to make my solution work, or is this approach completely wrong? :P thanks for reading

  • »
    »
    33 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    I think it will be time limit because len(a) >= 5*10^3 so 2^(5*10^3) is very huge which you can't complete even in a week. you code is running in o(2^(len(a)) and my ans run in len(a)*len(b)*10 using dp

»
33 hours ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

wasted 1 hour thinking constraint was 1e5 for both the strings in D :((

»
33 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Just wondering about C, there is any solution for which having a sorted array makes things any easier? My solution works by generalizing contiguos equal numbers as blocks so i really don't use that sorted fact at all, i wonder if i've made things more complicated by not using that fact

  • »
    »
    33 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    yes having them in sorted order removes issues like say you have 11122111, here performing remove operation 2 times, makes it 11, it can make our operations kinda complicated

    • »
      »
      »
      33 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Ohhh i get it, then i do use that fact XD Thank you!

    • »
      »
      »
      32 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Brother i would really appreciate if you could help me here like where did i mess up the derivation

      help me where i went wrong

      so either all bordering elements are deleted or multiplied

      so either no*of unique elements are deleted ; or they are multiplied

      so u can assume for any set ( 1,1,2,2,2,3,3,3)

      is equal to (1,2,2,3,3) cause u can easily get it as diff would be divisible by the no of unique elements present

      and if we are aiming for size k : it wouldnt matter if we started on either of those above array i gave u

      lets save that above array as freq {1,2,2 }

      here since bordering element are same deleted or same added

      if for a k ;; a element with freq f is present in that construction then b element with freq f also must be present in that condition and would be in the same way to reach that construction

      starting from lowest freq 1 , cause ;;

      if we do any operation 1 would be gone and wouldnt be able to contribute in further formation of arrangements that reaches 'k'

      and for that elem with freq 1 to reach the element whilst its present ; it must have a min freq of [1] ;;

      so the difference of element caused to make that element reach that freq of one so we can further construct would be —

      Current_freq_total — or n number of element lets say n ;

      so while making it one all the element having frequency greater than or equal to 1 will also lose equal amount of freq -> let that unique number be occurence -- and it would also be the no we will lose or gain if we do further operation in it

      so diff = n — { occurence * (currentfreq — 1) ) ::

      also here occurence would be

      so ;; our aim is size = k

      so to be able to reach size_k ;;;

      it would have to be aim = diff + x*occurence ;;;

      or for this to be feasible ;; aim- diff % occurence should be 0 ; so if this is the case we do ans ++ ?? no where did i mess up my derivation

      it fails on the test case

      3 1 1 2 2 ****

      it gives 2 instead of 1 its supposed to output and this is the main codeblock

      // unique occuring sorted frequency ;;; 
      // occurence[x] -> how many times x or greater element occurs ;;
      // exact-> exactly this frequency occurs this many times 
      
          int ans = 0 ; 
          FOR(i,0,sz(freq)) 
          {
              int diff = n - (occurrence[freq[i]] * (freq[i] -1) ) ; 
              int aim = k ; 
              
              aim -= diff ; 
              if(aim % occurrence[freq[i]] == 0) ans ++ ; 
              n -= (exact[freq[i]] * freq[i])  ;
          }
      
      

      Thanks for your time , really appreciated ;;

      • »
        »
        »
        »
        32 hours ago, hide # ^ |
        Rev. 2  
        Vote: I like it 0 Vote: I do not like it

        you missed one boundary condition that causes it to overcount.​in your first iteration (freq=1), aim becomes -2. Since -2 % 2 == 0, your code does ans++. your formula assumes a base frequency of 1. adding that adjustment gives a final frequency of 1 + (-2 / 2) = 0. if the frequency drops to 0 or below, those elements are completely deleted and can't form a valid array of size k. ​to fix it, just make sure the resulting frequency is strictly greater than 0. i made similar error lol

        • »
          »
          »
          »
          »
          32 hours ago, hide # ^ |
           
          Vote: I like it +1 Vote: I do not like it

          ahh , now i see it // i forgot to verify the conditon with aim>=0 ;;; wasted almost whole hr of contest forgetting to check smth so basic, thanks!

  • »
    »
    33 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Perhaps the fact that you treat consecutive identical numbers as a single entity already relies on the property that the array is non-decreasing. To give a counterexample, if it were an unsorted array, then in the worst case it would mark N elements.

»
33 hours ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

The problem F made me get Master!

»
32 hours ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

I felt like the first four questions in this match are too easy. I solved them in 40 minutes. They don't seem like Div.2 level difficulty.

And among them, B is much harder than the other three.

»
32 hours ago, hide # |
 
Vote: I like it +29 Vote: I do not like it

Editorial of D+E

https://codeforces.com/contest/2242/submission/381527708 D. Say after operations the first digit is merged from A[i1:i2], second digit from A[i2:i3], etc. and similarly for B[j1:j2], ... Then if P are the prefix sums of A mod 10, and Q of B mod 10, we want P[i1] = Q[j1], P[i2] = Q[j2], etc. This is simply the longest common subsequence of P and Q, which is a known dp.

https://codeforces.com/contest/2242/submission/381527102 E. Let P = 2**k the highest power of 2 <= R. If we can do y = P, we should and x = max(L, P/2). This is because the ones digits of y are multiples of k+1, which is 1, 2, 3, ... modulo k, which is the same order as x. Therefore we just want the smallest value of x that is one less digit (bit-length).

If we can't, then x and y have the same bit-length. Every 1 in the common prefix of L and R must be on x and y, and the rest of the bits will be zero. To attain this, choose x = (common prefix) + 01111.... and y = (common prefix) + 10000....

»
32 hours ago, hide # |
 
Vote: I like it +25 Vote: I do not like it
»
31 hour(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Problem B can be solved with the same idea as this problem: https://codeforces.com/problemset/problem/2103/C

»
30 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Q:D I solved this problem by generating all possible strings using DFS. For every string, I merge one adjacent pair of digits ("i" and "i+1") into (a[i] + a[i+1]) % 10, remove leading zeros, store the new string in a map (to avoid duplicates), and push it into a stack to continue generating all possibilities. I repeat the same process for both input strings and then find the longest common generated string. Is this approach correct? If not, where is the flaw in my logic or implementation?

```cpp void solve() { stack st; string a, b; cin >> a >> b;

st.push(a);
unordered_map<string, int> mpp;
mpp[a] = 1;

while (!st.empty())
{
    string tt = st.top();
    st.pop();

    int n = tt.size();
    for (int i = 0; i < n - 1; i++)
    {
        int val1 = tt[i] - '0';
        int val2 = tt[i + 1] - '0';
        int f = (val1 + val2) % 10;

        string str = tt.substr(0, i);
        str += char(f + '0');
        str += tt.substr(i + 2);

        int pos = str.find_first_not_of('0');
        if (pos == string::npos)
            continue;

        str = str.substr(pos);

        if (!mpp.count(str))
        {
            mpp[str] = 1;
            st.push(str);
        }
    }
}

stack<string> st2;
st2.push(b);
unordered_map<string, int> mpp2;
mpp2[b] = 1;

while (!st2.empty())
{
    string tt = st2.top();
    st2.pop();

    int n = tt.size();
    for (int i = 0; i < n - 1; i++)
    {
        int val1 = tt[i] - '0';
        int val2 = tt[i + 1] - '0';
        int f = (val1 + val2) % 10;

        string str = tt.substr(0, i);
        str += char(f + '0');
        str += tt.substr(i + 2);

        int pos = str.find_first_not_of('0');
        if (pos == string::npos)
            continue;

        str = str.substr(pos);

        if (!mpp2.count(str))
        {
            mpp2[str] = 1;
            st2.push(str);
        }
    }
}

int maxi = INT_MIN;

for (auto &x : mpp2)
{
    string s = x.first;
    if (mpp.count(s))
    {
        maxi = max(maxi, (int)s.size());
    }
}

if (maxi == INT_MIN)
    cout << "-1\n";
else
    cout << maxi << "\n";

} ```

»
29 hours ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

I have a question regarding the last problem.

So it's established by now that when $$$n\leq 100\,000$$$, a quadratic solution exists. My solution was essentially "go right to left, maintain the function $$$x\mapsto$$$ how much we'll have in the end if we start with $$$x$$$, we only need to know its values for $$$x\leq 2n$$$, we'll have to do like 3 memcpys every time". But I couldn't squeeze those memcpy(to, from, cnt * sizeof(int)) (it took about 1.6s on my maxtest in custom invocations). I managed to squeeze this solution by making each function value take 3 bytes instead of 4, so that we memcpy less stuff, but do people maybe know how to memcpy faster? I found some like intrinsics and stuff blog from @sslotin, is it the best known way to memcpy?

»
27 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Perfect, it is my first time to join it.I feel funny and I enjoy to solve it

»
23 hours ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

plz release the tutorials soon

»
21 hour(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Amazing round

»
21 hour(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How can I become a trusted participant?

»
21 hour(s) ago, hide # |
 
Vote: I like it -9 Vote: I do not like it

for those who are ranting about B it was such an easy greedy just get smallest 1st and 2nd part but yeah remember while getting 1st part if you have more 1s then 2 and 3 and the next no. is 3 inlcude it in your set of 1st part(this was the only idea that was to be thought) ~~~~~

include <bits/stdc++.h>

using namespace std; int main(){ int t; cin >> t; while(t--){ int n; cin >> n; vector inp(n); for(int &x:inp) cin >> x; int cn1=0,cn2=0,cn3=0; int prt1=-1,prt2=-1; for(int i=0;i<n;i++){ if(inp[i]==1) cn1++; else if(inp[i]==2) cn2++; else cn3++; if(cn1>cn2+cn3 && i<n-1){ if(inp[i+1]==3){ prt1=i+1; break; }} if(cn1>=cn2+cn3 && cn1>0){ prt1=i; break; }} cn1=0; cn2=0; cn3=0; for(int i=prt1+1;i<n;i++){ if(inp[i]==1) cn1++; else if(inp[i]==2) cn2++; else cn3++; if(cn1+cn2>=cn3 && (cn1>0 || cn2>0)){ prt2=i; break; } } if(prt1>=0 && prt2>=0 && prt2<n-1) cout << "YES" << '\n'; else cout << "NO" << '\n'; }} ~~~~~

  • »
    »
    17 hours ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    ..

    • »
      »
      »
      16 hours ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Umm can say thatt but yeahh brute force is something that i usually avoid in Problem B max times it is alwayss greedy but yeahh that 3 after 1 thing is kinda difficult to think i agree to that tho Umm tbh after seeing the B problem in last two div 2 contests i was likee that this one is not that difficult because last times were ahh too difficultttt

»
18 hours ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Problem C was interesting. Couldn't solve D, E or F, though. This CF website looks awesome though, just tried it a few days ago

»
17 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Another FST T_T, why me (:)|( ಥ_ಥ

»
17 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

When will the editorial get posted? My solution got TLE for $$$F$$$ and I'm so interested to see and read the solution for it...

»
16 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I am new to this, But this contest was rated right...?

»
16 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

about how long does it take for Ratings to come out?

»
15 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Is there an issue with rating changes? I think unofficial participants got rated (for example, current div. 2 first place). To be honest, I'm biased since I'm second now but the point stands. Or maybe zhaoyuebo (current P1) registered as rated but is a new account so not counted as trusted but still able to get rating?

»
14 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Q:C Input: 4 5 1 1 2 2 Output: 0

If I mark and remove the elements at indices 0 and 2, the resulting array becomes [1, 2]. According to the question, after applying the operation, all marks are reset. Then, the element at index 0 is marked automatically. I duplicate all the marked elements, so the array becomes [1, 1, 2]. Again, the element at index 0 is marked automatically, and I repeat the same operation. Continuing this process, the final array becomes [1, 1, 1, 1, 2]-->> according to me output is 1

  • »
    »
    13 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    after [1, 2] you have to mark 2 also, the problem states mark first element and all elements such that a_i != a_(i — 1), so you can either make it [1, 1, 2, 2] or []. Notice how you can keep only even number as the array length, so you can never make 5 out of it.

»
14 hours ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Am I the only weird one who thought that in D O(NM) would TL because (10^3*5)^2 = 10^7*2.5 and was looking only for linear or smth(that doesn't exist ig)? I hoped there would be more losers like me here at least.

»
12 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Regarding the plagiarism flag for submission 381498284 (Problem 2242E)

I am writing to clarify the system flag regarding my solution for Problem E, which matches other participants. I want to state clearly that I authored this code completely independently from scratch.

During the round, I used ideone.com to compile and test my logic, but I inadvertently left the visibility settings on public. It appears my code was scraped or copied by others due to this unintentional leakage.

While I understand this is a security oversight on my part, I did not intentionally share or cheat. I apologize for the careless slip, and I have already updated my online IDE settings to ensure all future code remains strictly private. I kindly request the coordinators to take this timeline into account.

»
9 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Appeal regarding automated plagiarism flag for Problem 2242D

My submission [381510406] was flagged for similarity with users Dustu_103 and Debajyoti23je0291.

We are part of the same university group and use an identical base template for fast I/O, macros, and standard shortcut definitions. Because the core logic for problem 2242D is relatively concise, the structural similarity is entirely due to our shared template setup rather than any code sharing or collaboration during the live round.