spycoderyt's blog

By spycoderyt, 4 months ago, In English

Hello, Codeforces!

IceBorworntat, NortGlG, omsincoconut, and I are excited to invite everyone to Codeforces Round 1071 (Div. 3), which will take place on Dec/23/2025 17:45 (Moscow time). You will be offered 8 problems, and you will be given 2 hours and 30 minutes to solve them.

Please note that this contest contains at least one interactive problem and at least one run-twice problem. Please read the guides for interactive problems and run-twice problems before the contest if you are unfamiliar with them.

The round will be hosted by the rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of open hacks. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution—rank will be determined by number of problems solved, followed by penalty; wrong submissions will incur the usual penalty of 10 minutes, following the rules of educational rounds.

As a reminder, only trusted participants of the third division will be included in the official standings table. This is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:

  • take part in (and solve at least one problem in) at least five rated rounds
  • and not have had a rating of 1900 or higher at any moment in time.

Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you (unless you register unrated).

For Codeforces contests—including this one—improper use of artificial intelligence is severely condemned.

We would like to thank:

We hope that you guys will enjoy the problems.

Editorial

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

»
4 months ago, hide # |
 
Vote: I like it +19 Vote: I do not like it

As a supposed tester, I'm fairly sure I didn't actually test this round! I appreciate the shoutout, however please double check whether I've actually tested it because for some reason I have a feeling I never actually did...

»
4 months ago, hide # |
Rev. 2  
Vote: I like it +44 Vote: I do not like it

As tester, i recommend read problem names carefully and slowly (Really)

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I bet the run twice is going to be interactive and placed >=E :)

»
4 months ago, hide # |
 
Vote: I like it +16 Vote: I do not like it
»
4 months ago, hide # |
Rev. 2  
Vote: I like it +10 Vote: I do not like it

In 23 december i will power on my sigma mode and will try to finally hack LonggVuz.

»
4 months ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

orz

»
4 months ago, hide # |
 
Vote: I like it +7 Vote: I do not like it

interactive AND run-twice, orz

»
4 months ago, hide # |
 
Vote: I like it +34 Vote: I do not like it

orz

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

When will the score distribiution will be announced?

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

EXCITED !

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

Hope to increase my ..... Wait, so I can only register unrated now? What a pity.....

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

mfw i'm in school for 90% of contests because they're in the afternoon and my entire high school goes 2nd shift, virtual contest it is for me i guess

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hope to increase my rating, and stay pupil.

»
4 months ago, hide # |
 
Vote: I like it +22 Vote: I do not like it

As a tester, blackslex did not test.

»
4 months ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

ginorz

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

now the 'You' button is working)

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i hope i get 1000+

any tips? ive been trying for a long time now

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

after seeing interactive one __what the heck!!!!

»
4 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

As a participant, I hope there won’t be any queueforces during the round.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As a participant I am really excited as this will be my contest after a long time..

»
4 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

As a participant best of the luck for this round to other participants!

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Looking forward to a great contest!

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I hope to solve 7 problems in less than 2 hours and reach 1773 ^^.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As a Human, We should drink more water.

»
4 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

As not a tester, can I become a tester? >:))

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i will finally get a rating :3

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

hope to have a good contest

»
4 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Although many of my friends said being unrated looks better than being a newbie and it's impossible to reach pupil in just one contest, I still want to become rated. I'm gonna wake up at 6:30 tomorrow to compete.

»
4 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

My first ever contest! I am very happy to give it my best. Wish me luck :)

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can someone explain to me how does hacking work?

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

    Hacking is more like finding flaws in other contestants’ submissions. You analyze the assumptions their solution might be making and try to break those assumptions by constructing a specific test case. If that test causes their code to fail ( WA, TLE, MLE, or RE), the hack is successful.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I hope it's not a Queue Forces again :)

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Orz contest for sure! Sadly, I'm unrated this time, so wish everyone the best of luck.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

spycoderyt can I see your yt

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hope to reach green again..

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Before event:- Feeling exited and hoping to get 200+ :)

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

why is this delation

»
4 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

10 mins delay???

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Should have informed that it is to be delayed by 10 mins !!

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why did the contest delayed 10 mins?

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

delayforces

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

Why 10 minutes delay?

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

why is the contest postponed.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

orz

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I thought that was a glitch after I saw the delay. T-T

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can anyone tell, Whats the reason for the delay of the contest is?

»
4 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

I could have my dinner if i would have known about the delay.. Anyways hoping for positive delta..Otherwise i will get L both ways

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Best of luck, guys!!!. It's starting...., I am giving contest after a year

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

why Skipped me,I just use my own code,are u serious?

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

WaForces

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The contest felt more exhausting than challenging, I'm not sure that's the goal from the contests.

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it +2 Vote: I do not like it

    if you were getting a positive delta, would you still say this?

    besides, how did you generalize the first two questions to the entire contest?

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

    bruh , how was this exhausting ?? except for F all my solutions are extremely simple and small

»
4 months ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

E is pure guessforces

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

    how did you do it..

    and what is wrong with my submission:354832946

    • »
      »
      »
      4 months ago, hide # ^ |
       
      Vote: I like it +13 Vote: I do not like it

      Guess some necessary conditions and pray that they are sufficient

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

        I solved it with intervals intersection. I believe I can prove my approach.

        Edge Case : All 1, or All 0, which can be handled separately.

        Initially, imagine your intervals for X = [X,X] , and intervalForY = [Y,Y].

        Now we process from left to right, for each index...

        if s[i] == 0 then my interval ranges update to 1) [X,X] => [X-p[i], X-req(p[i])] , 2) [Y,Y] => [Y-(p[i]-req(p[i])), Y] ,

        where, req(x) = (x & 1) ? (x+1)/2 : (x/2) + 1;

        These two intervals are actually mirroring intervals. Best case for X, is worst case for Y. And range of these two intervals will always be same ( another useful observation to check final necessary condition ).

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

Nice communication problem

»
4 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Based on quality of the problems, I believe contest should have been announced rated for people under 1900. This seemed more like div 2.5 ( harder for div 3, easier for div 2). Excluding purples, this could have been good rated contest.

Thank you for amazing problem set.

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

Problem-E felt like more of (case work + guess work) with some stimulation, but overall the problemset was nice and interesting, thanks!

»
4 months ago, hide # |
Rev. 2  
Vote: I like it +15 Vote: I do not like it

How do you do E?

Edit: F and G were very nice problems. I want to hug the people that made them

  • »
    »
    4 months ago, hide # ^ |
    Rev. 3  
    Vote: I like it +1 Vote: I do not like it

    For corner cases of $$$problem-E$$$, I did stress testing, and for main logic part, if $$$s[i]==0$$$, means we have to give a ATLEAST OF $$$⌊p[i]/2​⌋+1$$$ from "X", and vice-versa for $$$s[i]==1$$$ case (this is our lower-bound for the distribution). After that we will have some remaining "X" & remaining "Y" left with us after subtracting their lower bounds from them. Then we will just try to fill up the other halfs (lesser than part) which were left while filling the greater halfs in the first round, using these remaining "X" & "Y". Rest is just stimulation part, like we check if s[i]==0, then, does remaining-Y has $$$(p[i] - winnerPart)$$$ with it or not, if yes then continue further, else check if we can further increase "x" (winner part) to full-fill the criteria of $$$(a_i + b_i \gt = p_i)$$$, if this is also not possible then "NO" answer is possible, else move on to next index for further checks.
    my submission : 354845447

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This was my first contest on cf and it was too hard for me. I solved 0 problems and I'm so frustrated rn. Give me some tips how to improve?

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i think i solved both B and D by a dumb way, but well, it worked

»
4 months ago, hide # |
 
Vote: I like it -7 Vote: I do not like it

mathforces

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
»
4 months ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

E > F+G+H for me

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Passed H in 25min, figured out how G in another 20min, then keep getting WA on 6 until the end.

I'd really appreciate it if you could tell me the reason.

354821263

  • »
    »
    4 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +8 Vote: I do not like it
    2 3 4 5 6
    7 8 9 10 11
    13 14 15 16 17
    18 1 19 20 12
    21 22 23 24 25
    

    I think your solution fails to find the second corner for this matrix

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

    Could you tell me what the logic is behind how you're calculating len? As far as I understand, it is the diagonal in which the corner you're trying to find is lying in.

    Edit: If you are interested in an alternate approach, I would suggest using the first corner you found to find the diagonal in which the second corner lies

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

      There're several cases:

      • When 1 is on the horizontal and vertical midlines, we can set len=mx

      • When 1 is at the corresponding corner to cur, find a random point ($$$\neq 1$$$ and $$$\neq$$$ cur) to ask max distance

      • If 1 isn't on the main diagonal, we have exactly mx-i+1 points and a corner with dis=i

      • If 1 is on the main diagonal we have exactly mx-i+1 points and 2 corners with dis=i

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to approach E?

an approach of discuss by cases code give WA (any counter-example for this code?)

appreciate any advice in advance

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

When can test case be shown? I re-submitted after contest but still only see sample test.

Now I see it

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The problems were very unique and interesting, the problem C felt a bit tricky but in the end I was able to understand the tricky part and got accepted.

The problem D was definitely a good bitmasking problem, even though I got a WA on it.

Enjoyed the contest, and loved the problems.

»
4 months ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

wtf is E?

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

Why site is so slow?

»
4 months ago, hide # |
 
Vote: I like it +10 Vote: I do not like it
Solution for E
»
4 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Can someone help identify where it goes wrong

Code E
»
4 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

The contest was so good. I made some mistakes on D and E, which were blocks for me=))) And F was just so beautiful. I just wonder if F was so easy for an F? Maybe it could be D or E. I solved it with just simple BFS in 8 minutes, while spending nearly 2 hours on D and E (although that was mostly because of my mistakes). P/s: Thanks to the authors and testers for such a good contest at the end of the year.

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it +4 Vote: I do not like it

    I think you needed to know in a bipartite graph, if x,y are adjacent vertices, then we cannot have dist(v,x) = dist(v,y) because it forces an odd cycle. I'd say it's not an easy observation.

»
4 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

dahhhh seems to be using AI assistance during the round.

Check this submission for more verification: 354820979

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

    I Left my PC open with in front of my friend and he thought : Oh he would be happpy if do "accepted" at E and this made me frustrated and thank god it didn't went accepted because i would never accept that and i would even disqualify myself and unregister from the contest . I'm sending my apologies to all Contest Makers and i can prove that i'm real in any way they like . Thank you !

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

      you mean G right ?

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

        Yes the one that i couldn't solve sadly :(((((

        • »
          »
          »
          »
          »
          4 months ago, hide # ^ |
           
          Vote: I like it +5 Vote: I do not like it

          dog at my homework ass excuse. your multiple submissions contain comments so stop lying.

          you are very clearly a cheater.

          can you explain how you were struggling with problem B in Codeforces Round 1059 (Div. 3) on october 17th

          and managed to solve 6/7 problems in Codeforces Round 1062 (Div. 4) on October 28th

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

    Bro Look at your submissions history ! ahahahaha

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Great contest!

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Only I mistake vertex as edge on F???

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I didn't receive my rating till now I registered as rated but this contest is showing in the unrated section.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

In problem c test no 2,why not answer 5.

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

    I assume you mean test no. 3. Because for test 2 any k> 3 will result in modulo 2 and 3. In test 3 if you take k = 6 then for the following values : 11 74 5 22 52 97 82 taking x as the following values will result in a[i] % x[i] = 5 for all, making the array equal :

    6, 69, 6, 17, 47, 92, 77

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

orz for very good problems but I think my rating is cooked TwT

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This was my second contest. Thanks blackslex!

»
4 months ago, hide # |
Rev. 3  
Vote: I like it 0 Vote: I do not like it

in problem C, if a[1]=1, then souldn't the answer be a[2] (in the sorted array)?? edit- sorry, I made a silly mistake and confuses bw modding and dividing, gotcha

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

    no, here's a counter example: 1 2 3 4 5 6 7

    First let's sort the array and then approach the problem.

    here, a[0]=1 and a[1]=2, so a[0] mod x>=2 is 1 only, but a[1] mod x>=a[1] is either 0 or 2, which is not equal.

    That's why the best approach to solve this problem is to consider the the minimum element in the array, that way we can just mod every other element with themselves and get 0 and make every element equal eg: a[0]%a[0], a[1]%a[1], a[2]%a[2] , and so on.......

    or make the modular residue equal to minimum element of the array for that we have to consider a number which is greater than the minimum element so that's why we subtract the minimum from the second minimum element from the array and see if we can get bigger number x. eg: max(a[0], a[1]-a[0])

    because we have fixed the modular resdiue for the first element that's why we have to make sure that we can get the same modular residue from every other element by taking modulus of the element with some number greater than or equal to x. It can be proven that if we try to make the x more bigger it will ruin the previous modular residues.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

why my score didn't increased yet ?

  • »
    »
    4 months ago, hide # ^ |
    Rev. 3  
    Vote: I like it +1 Vote: I do not like it

    The round is still testing, you will also need to wait a little longer after system to get your rating

    But it tests earlier than other Div 3, 4, Edu (usually at $$$9$$$:$$$00^\text{UTC+7}$$$ to finish). W round!

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How long will it take to get the ratings?

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i gave the contest , solved 3 problems but its shoeing unrated , i have rating of 400 , and i dont remember participating as unrated

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

    Don't worry, it just says the contest is unrated for you because the rating haven't been updated. Just wait until the rating updates!

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello,

I am not a trusted participant of the third division, but I registered rated and I can't see a rating change. Is it yet to be updated or will I not get any rating for solving one problem?

»
4 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Really enjoyed upsolving G and H. Great contest!

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

Subject: Appeal for False Positive Plagiarism Detection on Problem 2179C

Dear MikeMirzayanov and Codeforces Coordinators,

I am writing to appeal the plagiarism flag on my submission 354734279 for Problem 2179C.

I firmly state that I solved this problem independently. The solution relies on a standard number theory observation. Because the logic is straightforward and the implementation requires very few lines of code, it is highly probable that independent solutions will have similar structures.

A coincidence in such a short and mathematical problem should not be considered a violation. I did not share my source code with anyone. Please review the submissions manually.

Thank you.

SpyroK05

Attention!

Your solution 354734279 for the problem 2179C significantly coincides with solutions SpyroK05/354734279, mishralikescats/354737233, thatsramen/354740445. Such a coincidence is a clear rules violation. Note that unintentional leakage is also a violation. For example, do not use ideone.com with the default settings (public access to your code). If you have conclusive evidence that a coincidence has occurred due to the use of a common source published before the competition, write a comment to post about the round with all the details. More information can be found at http://mirror.codeforces.com/blog/entry/8790. Such violation of the rules may be the reason for blocking your account or other penalties. In case of repeated violations, your account may be blocked.