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

Автор salyg1n, 3 года назад, По-русски

Привет, Codeforces! 🤯

green_gold_dog, ace5, bashkort и я salyg1n рады пригласить вас принять участие в Codeforces Round 897 (Div. 2), который состоится в понедельник, 11 сентября 2023 г. в 17:35.

Этот раунд будет рейтинговым для участников, чей рейтинг ниже 2100. Участники с более высоким рейтингом могут принять участие вне конкурса.

Вам будет предложено 6 задач и 2 часа на их решение. Советуем прочитать все задачи. В раунде могут встретиться интерактивные задачи. Рекомендуем прочитать этот пост.

Мы хотим поблагодарить:

Мы надеемся, что вам понравятся наши задачи! Удачи!

UPD. Разбалловка: $$$500 - 1000 - 1250 - 2000 - (2000 + 1000) - 4000$$$.

UPD2. Поздравляем победителей!

Div. 2

  1. candidatecandidatemaster

  2. Coreopsis

  3. iFFT

  4. Dorothy__

  5. wk______tzc

Div. 1

  1. Golovanov399

  2. Geothermal

  3. arvindf232

  4. Rubikun

  5. Vercingetorix

UPD3. Разбор.

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

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

Auto comment: topic has been updated by salyg1n (previous revision, new revision, compare).

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

Finally ez rating

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

Автокомментарий: текст был обновлен пользователем salyg1n (предыдущая версия, новая версия, сравнить).

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

As a tester, I ask to downvote this comment instead of round announcement

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

Negative contribution :)

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

я гроссмейстер, но ради участия в этом раунде планирую стать кандидатом в мастера

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

The hidden texts are cute :)

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

waiting for the challenge ......

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

really Nice, thanks for this round ^^

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

omg, two contests in two days!

Good luck everyone!

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

score distribution?

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

good contest!

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

Hopefully I reach closer to cm

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

Given my past results in Division 2., I am hopeful that I can reach newbie rank again.

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

As a tester, I will write this round from my second acc 😈

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

That cliff 1250-2000 :(

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

Score distribution gives speedforces vibes.

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

:((

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

MikeMirzayanov can you please check your inbox?

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

so why the announcement is "P(G) is't a set" but not "P(G) isn't a set"
what does is't mean,,

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

too interactive contest

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

In my opinion problem C has an issue, if there are already $$$2*N+1$$$ queries, why am I not allowed to go to next case myself? Instead I have to input -1 to jump to next case. Why? Because of this, I had a big penalty.

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

Hopefully my 2.9s Python submission for C doesn't TLE

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

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

Why the java language can't pass the C question, but the C++ language passes. Experience the worst race, hopefully not counting the rankings

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

    Same thing here. I first tried submitting various java solutions only to get TLE. Same logic in C++ passed in first go.

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

    Sounds like a skill issue to me.

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

    Same issue.

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

    My best guess is for test like #4 where T = 100000, the system judge does not generate the input data for next test in stdin fast enough after the previous test complete.

    I tried to simulate stdin for 100000 tests each with n = 1 on local machine like below. It measured 185 msec. So the fact that test #4 always TLE in system tests suggest some kind of delay introduced by system test for Java submissions.

      static void simulateLargeNumOfTests() {
        long t0 = System.currentTimeMillis();
        {
          // Prepare stdin for 100000 tests each with n = 1 and mex 0.
          // In such case, an immediate -1 will follow after the input of each test.
          int T = 100000;
          StringBuilder sb = new StringBuilder();
          sb.append(T);
          sb.append('\n');
          for (int t = 1; t <= T; t++) {
            sb.append(1);
            sb.append('\n');
            sb.append(1 + RAND.nextInt(1000000000));
            sb.append('\n');
            sb.append(-1);
            sb.append('\n');
          }
          byte[] data = sb.toString().getBytes();
          InputStream fakeIn = new ByteArrayInputStream(data);
          System.setIn(fakeIn);
        }
    
        {
          MyScanner in = new MyScanner(true);
          int T = in.nextInt();
          OutputStream out = new BufferedOutputStream(System.out);
          for (int t = 1; t <= T; t++) {
            int n = in.nextInt();
            int[] a = new int[n];
            for (int i = 0; i < n; i++) {
              a[i] = in.nextInt();
            }
            solve(a, in, null, out);
          }
        }
        System.out.format("%d msec\n", System.currentTimeMillis() - t0);
        System.exit(0);
      }
    
  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    After using a hack to workaround test #4 which always TLE in System Verdict, this submission https://mirror.codeforces.com/contest/1867/submission/223000398 is Accepted with runtime 1949 msec on test #6 where the input array has length 100000 and MEX 100000. It is unclear exactly how many IO interactions in test #6 as it depends on how greedily the Judge choose y each time.

    Overall, the interactive IOs delays of problem C is too much for the given limit of T and timeout, and the problem is partially to do with the System Test. Problem C should either use a smaller limit like 10000 for T or a bigger timeout so to accept legit Java solutions without losing any generality of the problem.

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

I think a lot of people got stuck on E since n odd and k even has no solution, until they realize that n and k are both even, and the problem becomes completely trivial. Not a great problem imo.

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

The problem E2 is such a good joke.

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

Why problem C is unsolvable in java , even java legends like SecondThread and profchi used c++ for this problem.

if it's div2 E , F , then it can be beared but atleast div2 problem A B C should be solvable in java. I got 4 unnecessary penalties.

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

Never gonna attempt a contest with interactive problems again.

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

Problem E is kinda easy, right?

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

queueforces and I hate interactive problems

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

A: Arrange b[i] by the reverse order of a[i] so the value of {a[i]-b[i]} will be pairwise distinct.

B: For every pair of symmetrical positions i and j, if s[i]==s[j] then we can let l[i]==l[j]==0 or 1 (make 0 or 2 occurences of '1' in t), if s[i]!=s[j] we need let l[i]!=l[j] (make 1 occurence of '1' in t). If n is odd, we can let l[(n+1)/2]==0 or 1 (make 0 or 1 occurences of '1' in t). Let the number of first kind of pair is a, and second kind of pair is b, the answer is b+2*k (0<=k<=a) if n is even, and b+k (0<=k<=2*a+1) if n is odd.

C: In the first move alice choose x=MEX(S) (the initial MEX of S), and in after moves alice always add the number removed by Bob back, then the final value will be the second MEX of initial S. This is the optimal strategy.

D: If k==1, we can only make b[i]=i. If k>=2, we build a functional grpah from b (a graph with n nodes and add edges (i-->b[i]) for 1<=i<=n), and we only need to check if the size of every cycles in this graph is k.

E2: If n%k==0 we can query for n/k segments of length k. Otherwise, observe that if we let r=n%k and make such queries: query(1), query(1+r/2), query(1+r), we can get the xor sum of segment [1, k+r]. Then we can query for floor(n/k)-1 segments of length k for the remained part.

F: I've tried for random approach but got WA on testcase 24.

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

I see now that you have n and k as even integers in the interaction section. But why not mention that in the initial problem statement?

The $$$n \leq k^2 \leq 2500$$$ was weird as well. Also that has to be one of the easiest D2E ever once you notice all that.

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

Why bitwise operator in easy problems (such as A, B) again?

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

Is it just me or problem E1 is actually easier than B and C :D

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

Why is the C problem so TLE-constrained for python……

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

The game ends when Bob cannot make a move or after 2⋅n+1 moves so why did i need to take another input after completing the 2*n+1 moves which resulted in me getting 4 runtime errors

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

    Yeah, that was very confusing

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

    I don't think there was any ambiguity in the problem statement. The interaction guide says that after you output $$$x$$$, you should read an integer $$$y$$$. It never says that you should read $$$y$$$ only if the game is not already over or that you should read $$$y$$$ only if Bob is making a move: every time you output an $$$x$$$, you need to read a $$$y$$$.

    It's particularly easy to get tripped up on interactive problems by making incorrect assumptions about the I/O format, which is why you should always read the interaction section of the statement carefully before beginning to implement your solution.

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

      Whenever i encounter an interactive problem in the future this contest would remind me to read the I/O format completely before attempting it. Thnx

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

      It was not clear enough, since it was mentioned in the problem statement that after 2n+1 moves, the last move would be of Alice's.

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

        "To make a move, output an integer $$$x$$$ ($$$0 \le x \le 10^9$$$) — the number you want to add to the set $$$S$$$. $$$S$$$ must not contain $$$x$$$ at the time of the move. Then, read one integer $$$y$$$ ($$$−2 \le y \le 10^9$$$)."

        What about this is not clear? Remember that for implementation details, you should always trust the Interaction section instead of assumptions based on the statement of the problem.

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

      I'm not complaining, as I didn't solve the problem myself, but it kinda is the job of the testers to remove the confusing parts of the problem statement, and personally, I feel like that is something they should have pointed out so it could've been edited.

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

I am ecstatic about solving 1 problem in just 40 minutes this time. Huge improvement from the last contest where I spent 1+ hrs on 1 problem.

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

In problem C, the game is supposed to end after 2*n+1 moves right? so when I ran a loop till 2*n+1 it kept giving me Wrong Answer, when I ran a infinite loop it passed. Why is that? Can someone explain? If the game is supposed to end after 2*n+1 moves, then why should I go further and read y=-1 to end the game?

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

In this entire duration i somehow managed to solve A,wt shall i do, i am really getting depressed,i am soo weak, wt do i need to practice in order to be able to be good at cp .

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

RIP Ratings,

Thanks to 1867C - Salyg1n and the MEX Game

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

Thought that the game in C literally ends after $$$2\cdot n + 1$$$ turns, turns out that it was needed to read the -1 from the input (couldln't solve D in time anyway, so w/e).

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

The first three questions are not difficult to distinguish, and the description of question B is too abstract, which is not a language that human beings can understand for me

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

I am sure of my approach for C but still giving WA on test 2. Never solved an interactive problem before. I’d appreciate if someone can point out my mistake

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

Just tell me one thing, colors of high grades, in div2 D we just had to find out if k-1 going in a cycle like in union find will end up not visiting the same element again. Was this the answer to it? Like array 2 3 5 3 4 so going like 1 -> 2 -> 3 -> 5 -> 4 -> 3 ...

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

    Not necessarily, you can do this to k nodes without them being in a cycle, I will explain solution.

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

    I just checked that every path from a non-zero element leads into a cycle of length $$$k$$$.

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

Great round, thanks a lot for making the interactive problem not the hardest one, this is the first time I was able to solve one and it made my day!

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

Nice problems, I only wonder why couldn't you write simple and clear limitations in E, for me they were confusing and unclear tbh.

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

E1 was so easy but i did x-- instead of x++ in a while loop and couldn't debug in 20 minutes.So disappointed .

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

Can't see any passing Java solution for Problem C at all. Did anyone else checked?

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

salyg1n Watch out for the TLE Java submissions of Problem C. Those submissions are very insightful and can easily tell that the problem wasn't properly tested for a language other than C++.

I even tried using fast I/O in Java.

Do something about that, as the same logic is getting passed in C++.

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

Thank you for the awesome contest <3

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

from now whenever i will see Interactive tasks in blog... i will go to bed :(

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

Best round ever!!! Thanks a lot!!! Why am i so stupid, that i didn't saw, that in E we have only even $$$n, k$$$... Waste like an hour with odd numbers, but solved for even in 20 minutes... Could have solved D...

Btw, i think you should have written in the statement, that $$$n, k$$$ are even not ONLY in input format... Or at least make a notification about it...

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

I pass the C problem with great difficulty!!!Why python can't pass the C problem????

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

Interactive Forces :)

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

I don't know how many dislikes this will get but, is it normal if you start problem D when 1 hour 10 minutes is left and still not able to fully come up with a solution which has a logical background. Even if after 10 minutes my intuition said something to do with graph cycles, I was not able to come up with a logical solution to base my intuition. Does it happen to everyone and how you fix it? Doing more problems doesn't logically seems correct for solving problem D or is it? :')

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

I loved problem D but I couldn't even think that it's graph and cycles xD, please anyone suggest to me good problems similar to this D.

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

can anyone tell approaches of problem 2 xor palindrome

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

    Hints:

    Consider the indices $$$i=1,2,\dots,\big\lfloor\frac{N}{2}\big\rfloor$$$.

    If $$$s_i=s_{n+1-i}$$$, then we must use either $$$0$$$ or $$$2$$$ ones at these indices.

    If $$$s_i\ne s_{n+1-i}$$$, then we must use exactly $$$1$$$ one to flip one of these two bits.

    Furthermore, if $$$N$$$ is odd, then we can flip the bit in the middle if we want to.

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

Can someone pls tell why my C failed on system testing?

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

why this code by java get TLE ? 222937329 but this code by c++ get AC 222942899

They are exactly the same code

MikeMirzayanov

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

The problem C said, The game ends when Bob cannot make a move or after 2*n+1 moves (in which case Alice's move will be the last one).

This code got the wrong answer during the contest as I wrote code according to the 2*n+1 move.

And after the contest, this one gets ac as I write code according to 2*n+2 move. Why does this happen?

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

E2 can be done in maximum of 51 queries ,right? Why is the constraint 57 then?

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

My O(n) code for B got rejected in PyPy but got accepted in python, same exact code . Look into my submissions: https://mirror.codeforces.com/submissions/jagan028

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

Back to back IND vs pak match and back to back contests

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

Worst Cf round ever encountered. No announcements made during the ongoing contest to clarify various confusions in the statement.

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

Feels like C was forcefully made an interactive problem.

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

bruh

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

is it just me or E1 and E2 are very easy??

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

constructive algorithms x7

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

Just upsolved E1 and E2, they both seem much much easier than the normal E of Div2, Anyone else who thinks the same?

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

MikeMirzayanov salyg1n geranazavr555

I registered to this contest when I was 2100+, so I was labeled as out of competition. The rating is not updated for me. Can you fix this?

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

Maybe problem E2 is a bit easier than D?

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

i'm wondering why my solution to div2 d cannot pass the pretest#2 on the 568th input.

my solution:

  1. add edges: from i to b[i]

  2. check if every i is in a loop case: i is in a loop if the length of the loop is not k, "no" case: i is not in a loop

update: i know.

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

Can someone explain how can't a be converted to b in examples test case 2 of b=[2,4,3,1] ,,,, using a=[3] and then a=[1,2,4] ? fk this shit.

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

.

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

Video Editorial for A — E2 I hope it will Helpful for Newbies and Pupils ... LINK TO YOUTUBE

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

green_gold_dog ace5 bashkort salyg1n

screw this contest!! who the hell wrote the C problem ?!! the game ends after 2*n+1 MOVES so why do I have to take the input after n+1 moves for ALICE ???!!!! i hope the author starts learning simple ENGLISH !! ruined the whole contest for me !

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

wheres the editorial?

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

So, no editorial for this contest?

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

wants minus contribution

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

wants minus contribution

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

When will editorial be out?

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

RIP editorials

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

Can anybody give some hints for F?

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

I feel that the order of E needs to be swapped with D, both in terms of the difficulty of thinking about it and the difficulty of implementing it in code. I just started writing E after the contest, and realized that the difficulty of thinking about E is really not too high.

You can find this gap in the two codes I submitted: E2 D

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

In problems C, I try to use the scan rather than cin to get the output of Bob. But I get the Idleness limit exceeded :) Can someone tell me why can't use scan?

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

Interesting problems! I love it!!!

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

div2D. how to prove that if there is a cycle of length x!=k, then the answer is NO? thanks in advance

ps: actually, that's not the main question. i just can't find mistake in my thoughts: it's obviously that we must have at least one cycle of length k. also, for every V that is not in cycle, we can place it to the right place using vertices that lie in cycle of length k. now consider vertices that are in cycle of length x!=k. for such vertices we can cut cycle by some edge and add some fake vertices and edges (that will fill the space for vertices that are in cycle of length k, because the last move is operation with cycle of length k and we don't care about such 'fake' numbers) so that our new cycle has length k or 2*k. thus the necessary and sufficient is just to have at least one cycle of length k. where am i wrong?

pps: nvm got it thanks <3

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

E2 can be actually done in 51(49+2) operations instead of 57.

If n=2500 and k=50, then it takes n/k=50 operations.

Otherwise, my submission E2 handles something like n=2498 and k=50 in 51=49+2 operations.

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

Why so few div2 contests this month? I can see only 2 div2 on calender for this month.

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

Nice problems imo!

I liked that they had cute solutions with short implementations, and the proof difficulty is very appropriate.

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

@MikeMirzayanov

My old Codeforces ID, Mussic has been blocked by Codeforces.

When I try to log into it, it shows me the message "Disabled by Administrator" due to "significantly coincident" matching of my solution for submission 222923273, 1867A - green_gold_dog, array and permutation and 222980969, 1867C - Salyg1n and the MEX Game of this contest.

I can swear that I have neither copied any of my solution from anyone, nor shared my own solution with anyone.

The questions was very straight forward and and did have some standard ways of solving, like using storing the pair of vectors. So, the matching was purely coincidental and inevitable.

Kindly remove the restrictions on the Codeforces ID: Mussic, as it contains months of my hardwork.

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

I want to clarify that my solution matched with some one according to system but I don't think except the template anything has matched. Your solution 222949914 for the problem 1867C significantly coincides with solutions subodh.r/222945531, Mr.Roamer/222949914. This are the 2 solutions. And the template we both used is available here https://youtu.be/8ymiMHQPgZY Pls review the solutions if possible. I apologise for the delay in doing this comment.__