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

Автор jampm, 2 года назад, По-английски

Hola, Codeforces!

We're glad to invite you to take part in Codeforces Round 978 (Div. 2), which will start on Oct/13/2024 22:35 (Moscow time). You will be given 5 problems and 2 hours to solve them. Some problems will be divided into subtasks.

This round is based on day two of the Mexican Olympiad in Informatics (OMI) 2024.

Please note the unusual starting time.

The team of writers is conformed by JuanPabloAmezcua, SebR, Marckess, and myself. We have spent a ton of effort setting the round as well as the Olympiad, we hope you enjoy it.

(This is our logo, cookie points if you can guess the names of the two characters in it)

The team would like to thank:

Score distribution: 750 + 1000 + 1750 + (1750 + 2000) + (2250 + 1000)

We wish you happy coding and good luck to all participants!

Winners Div 1:

  1. tourist
  2. ecnerwala
  3. neal
  4. maspy
  5. 244mhq

Winners Div 2:

  1. tko919
  2. thanos_2
  3. moonpole
  4. Proof_by_QED
  5. beaten_by_ai

First solve for each problem:

UPD 1: We have added new testers and score distribution.

UPD 2: There is at least one interactive problem, so please read the guide for interactive problems if you are unfamiliar with them.

UPD 3: The editorial is ready. Congratulations to the winners and first solves for each problem!

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

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

As a problem setter, I hope you enjoy the problems ;)

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

as a writer, i want to go to sleep

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

There were 6 days gap before 14th october and have 4 days gap till 19th october . I am wondering why 2 contests are going to be arranged in the same day!!!

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

Wow. After more than 2 years of him dreaming about it (and me scamming him), the time finally came for jampm to become a Codeforces problem setter. I'm so proud of him and happy I could help with testing.

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

    You did scam me hahaha. I met some of your students and they asked me for an editorial of a problem I gave you LOL (you had my consent to scam though :).I wish we can do a round together eventually bro, thank you for always being such a cool and supportive friend :))

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

jampm round orz

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

Contest start at 03:35am in China.Can't participate o(╥﹏╥)o

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

Mordecai and Rigby

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

The contest will start at 01:35AM(at such a nostalgic time) in Bangladesh. Wish to become specialist at least.

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

Are unusual starting times and late score distributions a recent trend?

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

Thanks for bringing finaly the problems of the Mexican Olympiad in Informatics to codeforces jampm , JuanPabloAmezcua, SebR , Marckess and all the ones who contributed to the proyect.

Hope you enjoy the round!

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

Expert this round ? lezgo

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

2AM in Vietnam and still participates :) I'm taking part in ICPC Vietnamese southern 2024 contest 12 hours before this round, what a busy schedule.

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

As a tester, I really liked the problems!

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

Finally a better time :)

What is the score distribution by the way?

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

"This is our logo, cookie points if you can guess the names of the two characters in it"

I know really well one of them is Karel but who is the other one? I have some clues but not sure. Now can I have real cookies?

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

Why contest at odd times becoming common these days?

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

As a tester, I tested after the announcement was post :pensive:

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

As a tester, I can say the problems are interesting to solve and highly recommend you to participate.

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

bad starting time for Chinese.

Because it's bed starting time for Chinese.

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

3:35 for UTC+8. I need to sleep early and get up early to participate in :)

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

Finally a Mexican round ❤️. Muchas felicidades al COMI y todo el equipo detrás porque siempre ponen problemas muy chidos en las OMI's, y sé que implica mucho esfuerzo. ಥ⁠‿⁠ಥ

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

Can the round starting time be extended? I think many asians will agree.

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

Does Mexicans have their own judge site for practicing problems?

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

during the contest all of Asia and east of the Europe are slipping then who is awake to compete?

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

Where are the point values?

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

Is this contest IOI formatting?

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

I received an e-mail a few hours back, saying that the round starts on Sunday, October, 13, 2024 19:35 (UTC). Please resolve the discrepancy, if any. Thanks!

Nvm, it was a misinterpretation on my part :-/

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

Nice but why does the timing of the competitions continue getting weird and weird

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

Score distribution?

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

In China,the time is 3:35.Even in Russian time, it is still 22:35.Is it free time for Russians?

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

Score distribution ??

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

Reveal the score distribution please..

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

Zzz

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

Won't be able to participate due to the timing T_T Anyway good luck to all of ya who'll be participating...

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

I hope i remain a specialist after this round.

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

Bad timing for Indians.

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

I think this is the first round in the history of Codeforces when there will be no cheaters because time is unusual. (At Night)

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

god bless this round, let there be a 2-minute delay

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

less than 7000 people made a submission lol. i wonder why

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

How to solve B??

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

Problem C is such a pointless DP exercise.

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

In D2, anyone knows how to use 3 operations when n=3? I writed tons of case work and can't solve it ;)

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

Really loved the problems.

A-B-C are getting difficult day by day... It took me 1 hour to solve just ABC :|

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

how E1 is 2250 score huh

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

was it just me or B felt really hard. spent 1 hour 50 minutes on it and didnt proceed with anyything

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

Okay, who thought that C is a good enough for a div2 round? It is simply pointless implementation task.

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

It's hard to undertand that more than 30 people made feedback and nobody noticed the huge difficulty of the problemset. Only 3 solved in problem D2 (tourist and rainboy getting WA), 26k registered users but only 7k could solve problem A, some people beeing about top1000 without beeing able to solve problem B. The problems were quite intersting (at least trying them), but completely unbalanced.

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

    I think the point distribution checks out. C is harder than a normal C, so it has 1750 points (more than usual), D1 is easier than normal D, so it has 1750 points (less than usual), D2 is worth 3750 points so it's harder than most D2F. B is oddly hard though.

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

      Agreed. B is very hard if one lacks attention.

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

      A was difficulter that average A, not only by the really low AC, the time that took thus AC is a lot for an A too. B gives only 250 point more than A and it was quite difficult and C was annoying to implement but not that hard to see the DP. D2 could be harder than most D2, but... what the point of having 3 out of 7 problems that won't be solved by more than 30 people? Even red coders can't solved that problem, I feel it's not worth it a problemset like this. Maybe for a global could work better

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

        A is slightly harder than usual but fine. Hard A usually isn't a problem. C has annoying implementation, which is justified because it is worth more points.

        On your point that D2/E1/E2 aren't solvable for most people: just treat this round as a 5-problem round. Ignore D2 and E2 and it becomes a pretty normal round: ABCD are all doable and maybe E is slightly harder than usual. It's fine.

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

Problem B gave me new neurons.

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

C can be solved for 3 rows too!

Code courtesy of liympanda https://pastebin.com/mjcPwbAa

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

literally what is idea behind of C?

how to be good at problem like this, it's so hard

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

    C is a simple dp.. as we can't have 2 dimensions due to n being large to track both the first row pointer and second row pointer I just keep the first row pointer and the 2nd state being difference between first row and second row pointers.. The difference can never be more than 1 to be eligible for dividing districts.

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

can problem C be solved greedly ? DP was always at the back of my mind but I was too lazy to implement it(Maybe cuz am not very good at implementing quickly).

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

wtf was wrong with B ;;

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

What is the proof behind answer in B?

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

    Suppose we have $$$C \geq \max a_i$$$ customers.

    Imagine a box with $$$C$$$ rows and $$$x$$$ columns. Filling up your box column by column is sufficient.

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

      and how do u know which car to put in which row?

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

        Fill up every column of your box from up to down. Because $$$C \geq \max a_i$$$, doing so ensures that you won't place two cars of same type into the same row.

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

          Thank you.. i tried with paper and pen using your approach.. It helped me upsolve this. First I did this below binary search that runs in nlog(1e16)

          bool isPossible(long long customersCnt) {
              if(customersCnt * fomo < totalCars) {
                  return false; //as each CX can only buy maximum of fomo cars, even if everyone buys fomo cars we can't sell every car.
              }
              for(int i=0;i<models;i++) {
                  if(customersCnt < carsCnt[i]) {
                      return false; // I can't sell more than one same car to same CX
                  }
              }
          //true in every other case by placing cars in the order mentioned by mr_lolololol
              return true;
          }
          

          Later I was able to easily convert this to O(n)

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

i will never recover from B's trauma

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

Felt like I'm giving a div 1 contest today

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

I'm still wondering why my binary search on the answer solution didn't work on problem B. Can we say that the minimum "mid" >= max(arr) and mid * x >= sum(arr) would suffice?

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

B made me feel empty.

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

In question C, 2nd test case, shouldn't the answer be 4?

We can divide it into 4 districts such that each one has 2 Js.

I wrote the solution but I didnt see test cases and now nothing makes sense,

Edit — I have to look for As and not Js. I am way too much sleep deprived, -_-

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

Why were A and B so hard? If they are going to be this hard, there should be more div 3 contests.

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

I solved problem B with binary search.

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

What is the solution of D1 ?

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

    my solution was to group all people in groups of 3(ill explain how i handle if n%3!=0). so for each group of 3 you query 1,2 2,3 3,1 . and then lets say the type of the 1st guy is 0. then the type of 2nd guy and 3rd guy is fixed. and then you can check if the 3rd query contradicts the type of the 1st and 3rd guy. if this happens then you know that the impostor is one of these 3 guys, and you can basically brute force the solution. and if n%3==1 and we dont find an impostor then its the n-th guy for sure, and if n%3==2 you can just check both with the first guy, since we know the 1st guy isn't an impostor and find out which one is the impostor. this works in n+ 2 queries at worst. there is a simpler solution that ive seen though

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

    Consider comparing two players with each other (ask each other about the other one). If the results of the queries are the same, then both are either knights or knaves. If the results are different, then one of them is the impostor. To find out which one is the impostor, compare them with a third player. So now, you can compare player 1 with player 2, then player 3 with player 4, etc. until you find the impostor. Submission

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

    u can make groups of 2 people, u make they answer query about the other, in this groups of 2 if the answer are different then the impostor is one of them (u use n queries or n+1 and reduce the impostor to 2 candidates) then u pick one of those 2 and make a group of 2 with a third one, if the answer are differents then u have the impostor, otherwise the impostor was the other.

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

    Thanks. Got it.

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

C is the worst dp problem i have ever seen

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

B = guessing the answer and hoping it's correct.

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

Wrong Answer on pretest 2 for D2 :(

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

What was the problem with B..(am I wrong or they)??

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

How to solve B???

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

https://leetcode.com/problems/domino-and-tromino-tiling/description/ problem C looks much similar to this one, a DP exercise basically transformed to a new question!

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

Why did Problem B have the condition x <= 10?

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

My solution(285744957) for E2 using binary search to check when the answer is 0 got TLE. Is that a constant issue or did I write something wrong?

upd: It is a constant issue. I got accepted after removing some useless edges. See 285745386.

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

    This was the first solution I came up with when thinking about the problem. There's also a couple of alternative solutions. There's also a way of solving the problem online in $$$\mathcal{O}\left(n\log(n)\right)$$$.

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

    Mine (285739542) got TLE on Pretest 21 (technically only an E1 solution, but easy to make an E2 solution from it) — would also like to know if it's because of python or if there's a way to do it faster (in particular, I'm suspect of my test function, which is just a BFS looking for a cycle, and doesn't update anything).

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

What's the point of B? I've solve this problem at least twice before.

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

Thank you for the problemset! D2 is a very cool problem.

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

    Sorry for commenting on this thread, but could anyone pls clarify my doubt in D1?

    We know that if ask(i,j)!=ask(j,i) then one of them must be the impostor, However, I'm slightly confused as I queried on pairs that are distinct (i.e 1,n 2,n-1 and so on). Since the grader was adaptive, I declared j as impostor if ask(i,j)!=ask(j,i), since it's possible for any of them to be the impostor, and since the queries are independent of the previous ones.

    Why do we need to verify again which one is the impostor once we get the above condition?

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

    Can you explain your solution to D2?

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

      For $$$n=3$$$ you can find out on paper what is the best strategy, and it turns out $$$f(3)=4$$$. For all other $$$n$$$, I made a strategy such that $$$f(n)=n$$$. Basically you can always take person $$$1$$$ and $$$2$$$, do queries $$$1 2$$$ and $$$2 1$$$, this detects the impostor. If you detect it, do two more queries to find out which of the two it is. If not, you reduced to a subproblem of $$$n-2$$$ people, and used $$$2$$$ queries. For $$$n=5$$$ and $$$n=4$$$ you need to write a special case which does the querying in $$$n$$$ moves. For $$$n=5$$$ the main trick is first querying $$$1 2$$$,$$$2 3$$$ and $$$3 1$$$. This lets you notice if impostor is one of $$$1$$$,$$$2$$$ or $$$3$$$.

      Proof sketch of the lowerbound on $$$f(n)$$$: Lets look at the queries as directed edges that get added to a graph. If there are $$$n-1$$$ edges placed, then some node has indegree $$$0$$$, and some node has outdegree $$$0$$$ by pigeonhole.

      Case $$$1$$$: If there are two different nodes with either indegree $$$0$$$ or outdegree $$$0$$$, then there are still multiple options of where the impostor could be, so if we always gave queries that are consistent, never revealing the impostor, the player cannot know where the impostor should be.

      Case $$$2$$$: If the indegree $$$=0$$$ and outdegree $$$=0$$$ coincide, then the graph must look like a bunch of cycles and one isolated node. If we make sure that at the $$$n-1$$$'th query, if this query closes a cycle, and we would end up in Case $$$2$$$, we give an inconsistent answer now, such that the impostor is inside some cycle of $$$\geq 2$$$ nodes, then the player cannot know which of the nodes the impostor is in,

      This proves $$$n-1$$$ queries are not enough to know exactly where the impostor is. And we have a strategy for $$$n$$$ queries, that does find the impostor, except for $$$n=3$$$ which is a special case.

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

I can swear I saw something super similar to E1 before (possibly but not necessarily on codeforces) — might have been sum instead of xor but it was the same underlying task of either finding a contradiction or counting the unforced cells by merging row restrictions when they share at least a column, does anyone remember any similar problem? Also it's NOT the atcoder one (Grid Integers)

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

Just solved B (literally by luck), This is the most problem that ever made me mad, I hope that the tutorial will show why this solution is valid

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

D1 is much easier than C (they should be swapped)

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

B looks like a standard Q. Have a gut feeling that I have seen it before as well.

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

I have seen that many people are solving problem B with the following approach :

Use Max Heap priority queue and take k largest elements from the array and then subtract minimum from all k, then push non zero elements into PQ, and continue until PQ is not empty. (Even I have tried this during the contest)

But this won't work. Let me Explain why.

Counter Test Case :

1
5 3
3 3 3 3 3

Reason : You are taking k largest elements and then subtracting the minimum one from all those

but the optimal way is to subtract 1 from each and now perform with modified k largest elements from the array. (But this will give TLE because arr[i] is up to 1e9).

I hope it is clear. If not, then try to dry run the test I have given, you'll get it.

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

Why constraint for D1 is n+69, not n+1 or n+2? Is it a kind of misleading to n+O(log(n)) solution?

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

This is just a joke!

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

First solve :)