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

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

Привет, Codeforces!

<almost-copy-pasted-part>

Привет! Во 15.12.2020 17:35 (Московское время) начнётся Codeforces Round #690 (Div. 3) — очередной Codeforces раунд для третьего дивизиона. В этом раунде будет 6 задач, одна из которых разделена на две подзадачи. Задачи подобраны по сложности так, чтобы составить интересное соревнование для участников с рейтингами до 1600. Однако все желающие, чей рейтинг 1600 и выше, могут зарегистрироваться на раунд вне конкурса.

Раунд пройдет по правилам образовательных раундов. Таким образом, во время раунда задачи будут тестироваться на предварительных тестах, а после раунда будет 12-часовая фаза открытых взломов. Мы постарались сделать приличные тесты — так же как и вы будем расстроены, если у многих попадают решения после окончания контеста.

Вам будет предложено 6 задач и 2 часа на их решение.

Штраф за неверную попытку в этом раунде (и последующих Div. 3 раундах) будет равняться 10 минутам.

Напоминаем, что в таблицу официальных результатов попадут только достоверные участники третьего дивизиона. Как написано по ссылке — это вынужденная мера для борьбы с неспортивным поведением. Для квалификации в качестве достоверного участника третьего дивизиона надо:

  • принять участие не менее чем в двух рейтинговых раундах (и решить в каждом из них хотя бы одну задачу),
  • не иметь в рейтинге точку 1900 или выше. Независимо от того, являетесь вы достоверными участниками третьего дивизиона или нет, если ваш рейтинг менее 1600, то раунд для вас будет рейтинговым.

Задачи на этот раунд были придуманы MikeMirzayanov и подготовлены мной Supermagzzz и Stepavly

Спасибо MikeMirzayanov за платформы и координацию нашей работы. Спасибо Sho, kocko, brian, Crazy_hedgehog, manta1130, Rox, Gassa за помощь в подготовке и тестировании раунда.

Удачи!

</almost-copy-pasted-part>

UPD: Разбор опубликован

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

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

It seems that the preparation of div3 rounds is less and less fit into vovuh's schedule. It will be great if Supermagzzz and Stepavly work together and they will take the initiative. Please support them!

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

My chance for becoming expert :D

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

Finally, the almost-copy-pasted-part joke is back.

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

My chance for becoming pupil.

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

Thanks to Supermagzzz and Stepavly for preparing the div. 3 contest.

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

Hoping that the problem statements would be as short as possible. Also my chance for not to go back to pupil.

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

Why there are 2 Hello?

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

"You will be offered 6 problems (one of them is split into two subtasks)"

Will the 2 subtasks count as 1 or 2 in the score?

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

Thanks a lot for this DIV3 contest! Supermagzzz && Stepavly

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

Hoping, that I don't mess this round up with silly and lengthy implementations.

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

Hoping to see good problems, Supermagzzz and Stepavly, thanks for this round.

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

Hope difficulty level of problems will increase smoothly.

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

Having a rating of 1601 is good thing or bad thing before a DIV 3 contest?

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

While I like vovuh's div3s a lot, it'll be a breath of fresh air to have new writers! Hope you guys have a nice round prepared for the contestants !

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

Note the sub-tasks, it can make or break your round. Waiting for the distribution to see whether its C1, C2 or D1, D2.

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

i am a newbie and these contests are very much helpful :)

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

First competetion for me on codeforces can I try ?

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

This contest I will be pupil.

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

Please have more Div 3 Rounds!.

This is not just good for beginners since (Div 2 and Edu Rounds can be a bit overwhelming) but also good for Codeforces since the amount of people registering(and participating) in Div 3 Rounds is the highest.

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

So just a doubt regarding the question involving subtasks, if we solve both the subtasks it will be counted as solving 2 separate questions, right? (Since this is a Div3 round so each question has equal weightage, hence the number of solved problems matter.)

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

    Yes if you are confident its better to do the harder one first. That way you will save time, against doing them one by one.

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

Whenever I see a div-3 round announcement, the first name comes to my mind is vovuh :)

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

All the best to everyone in div. 3..... Hoping to see good problems, Credits to Supermagzzz and Stepavly!!!!

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

MY chance of becoming Newbie.

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

Good luck everyone!

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

I hope i do better in this round since its division 3 ....i dont know i am just not able to solve the third question in div 2 and sometimes even the second one.....i guess div 3 is for noobs like me and they should organize it more

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

exicted for the div 3 contest , hope the problems are good

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

good luck guys .. happy coding!

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

Finally, div4

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

While the problems were fine, I think E and F should be more difficult than this.

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

Its a very very good round. Thanks a lot to authors and their team for it. Keep going!

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

My worst round, which I enjoyed.

Great Problems, but I don't know what happened to me or test cases are very tricky. I have tried to solve from A — F but only A and C passed the test case.

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

What was the idea behind the different input and output in E1 and E2? You could fix k = 2 and m = 3 and still write them into the input, and I find it unfortunate that my solution with modulo didn't work in E1, but did in E2. The last sentence of the problem statement, "You must output the exact value of the answer.", is in my opinion contradicting to "you DON'T NEED to output the answer by modulo.", especially when the word "NEED" is written in caps.

Usually, you can just submit the hard version also for the easy problem.

Edit: I enjoyed the contest besides that, thanks for it!

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

Great problems

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

How to solve D?

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

    soryy, it should be D.

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

      You can edit the first comment. UPD(MY EDIT) : The user editted.

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

      if all the elements are equal and the total sum of the array is S, then you can find what all the numbers will be equal to. For any array size N, it will be (S / N). Simulate to check if its possible to convert all of them into (S / N) and print.

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

      Try all the prefix sums possible in the array. Complexity is O(n^2), it works since n is 3000.

      for (prefix sum: [1...i]) {
         how many moves to make all elements equal to the prefix sum from i+1..n ?, if it is 
         possible? Answer is minimum moves from all possible prefix sums.
      }
      
»
3 года назад, # |
Rev. 3   Проголосовать: нравится +34 Проголосовать: не нравится

E1 was available on GFG. Similar idea of E2

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

On problem E (easy version)

What if the input is all ones (1 1 1 1 ...) (length 10^5). Choose 3 from 10^5 would be very huge. Is there something I missed?

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

    It just $$$\dfrac{10^5 * (10^5 - 1) * (10^5 - 2)}{6}$$$, around $$$1.6 * 10^{14}$$$ and still fit in long long.

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

    Iterate through the array to choose one element to fix. Notice that there are (n-i) choose 2 ways to pick the other two elements in this case. The answer will just be $$$\displaystyle\sum_{i=1}^{n-2}{n-i \choose 2}$$$, which should fit in a LL.

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

Nice round, but why don't you just write k and m in the input of E1 for convenience? It took me about 10 minutes just to realize how I went wrong in E1 although I got AC in E2.

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

Nice contest. I enjoyed the problems very much. Thanks!

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

Hey. Could someone let me know why I received RE on problem E1. https://codeforces.com/contest/1462/submission/101345065

I tried looking for a mistake but I couldn't find how I received run time error. Everything was correct until this test case. If someone could let me know why that would be awesome :)

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

    Your long long is overflowing. 10^5! is huuuge.

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

    Integer overflow is there in your code while calculating factorial.

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

    In test five, I believe your program is finding $$$\dbinom{200000}{2} = \dfrac{200000!}{2! \cdot 199998!}.$$$ This is probably giving an integer overflow.

    You can just compute $$$\dbinom{n}{2} = \dfrac{n(n - 1)}{2},$$$ so there wouldn't be any overflow.

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

How to approach F? I tried scanline with coordinate compression. Failed test case #2

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

The problems were so cool !

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

Thank you for the fun problem set! It felt like an AtCoder ABC :). D was really nice. EF could've been a little tougher.

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

I found E1, E2 and F easier than I thought.

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

    I had been trying $$$F$$$. First I tried Fenwick Tree, messed with the implementation there. Then I moved to a simple binary search solution, messed there too. Just saw your solution for $$$F$$$, it's along the same lines of what I was thinking during the contest. You've written it pretty elegantly I must say. Thanks.

    Just up-solved it, now regretting my stupidity during the contest...

    PS: I agree that the complete set was pretty easier than I expected.

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

Is multiset is too slow for 2e5? or I had something wrong in my code for problem F: Your text to link here...

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

I have hard coded all the answers for problem C. And then gave solution in constant time.

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

WOW! Easy but Interesting problems.

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

почему в контесте нет задачи на теорему двух китайцев??

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

Very cool contest, First time I solved five problems.

Thanks, Supermagzzz and Stepavly

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

From the participant's perspective, the differences between E1 and E2 are quite significant. For someone who has just solved E2, they have to spend a few minutes revising their code, removing modulo from all the computations and deleting some lines about reading the input format. On the other hand, I see the value of having this subtask, since someone can solve E1 and not know how to solve E2.

Issues involving subtasks seem to be quite frequent, and cause unnecessary trouble. Besides situations where input/output format differ, there are also situations where there is a queue and one has to decide whether to submit to both versions without seeing the verdict of one. There is also an issue if the author does not include all tests of the easy version in the hard version, and you can fail system tests on only the easy version.

If the system was able to give you points for both versions of a problem when you submit only to the hard version, I think this would solve a lot of issues.

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

    Btw Time Limits of E1 and E2 were different, and some people were hacked on E1 not E2 by Tl..

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

      I've now done over 100 successful hacks on E1,E2 and F combined, with E1 being by far the easiest to hack because of the lower TL. Almost all of my hacks come from TLEing solutions with slow IO with the most basic of max test hacks. For some reason E1,E2 and F all had $$$t \leq 2 \cdot 10^5$$$ but there were no test cases with a large $$$t$$$ inside the system.

      I really think that allowing $$$t \leq 2 \cdot 10^5$$$ is completely unnecessary to begin with. Having something like $$$t \leq 10^4$$$ or $$$t \leq 5 \cdot 10^4$$$ makes much more sense. But if for some reason the problem setters want $$$t=2 \cdot 10^5$$$ then they should at the very least put in a test with $$$t=2 \cdot 10^5$$$. It really isn't fun to solve a problem, just to have it get TLE hacked because of slow IO.

      Worth noting is that this time around I caused unexpected verdict 3 different times when hacking (unexpected verdict means that my hack broke one or more of the internal solutions). So not only was there not a single $$$t = 2 \cdot 10^5$$$ test case in the system, their code also somehow failed for $$$t = 2 \cdot 10^5$$$. So they didn't test for large $$$t$$$ internally either. What even was the point of allowing $$$t=2 \cdot 10^5$$$ in the first place?

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

        I am very disappointed about how unprofessionally Codeforces contests were prepared recently. I will switch to competing in TOKI and Codechef.

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

Why didn't this 101339626 work?

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

    Check the value you assigned to mod variable, it should be "1e9 + 7" not "1e9*7".

    Feeling sad for you.

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

D was the nicest one!

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

Thanks Supermagzzz and Stepavly for a great contest. I think I will go to Pupil after this contest =))))

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

This felt like Div 4

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

This felt like Div 4

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

Could someone please tell me why this solution for E1 is surpassing the time limit. In my opinion it should run in O(n). (https://codeforces.com/contest/1462/submission/101338165)

Am I missing something??

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

    You are creating a vector of size 300000 for every test case. 2e5 * 300000 is a lot. It should work if you replace the 300000 with n+1 as it's given that 1 <= Ai <= n.

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

censored

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

Can somebody find why my solution to problem E1 link gives TLE

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

I like this Contest.

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

What's the hack for E1? I want to know why my O(n) is giving TLE.

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

    Instead of iteration on 1 to n, you could have tried iteration on set of array nos to avoid unnecessary nos which are not present in array...

    Initialisation of array of 10^5 size in each test case is wrong..

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

      Oh shit. my bad. Didn't even looked at number of test-cases.

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

        But still it's stated that sum of n over all test cases does not exceed 2.10^5.

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

          Yeah. but I am traversing the whole of the 10^5 array for every test case making it 10^10 in the worst case. I should have traversed only those elements which are in the list.

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

            It's actually your m[] array of 200000 size at the start of each testcase..

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

              Does it matter whether it's 10^5 or 2*10^5?

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

                No...

                It's no of test cases × 200000 (Initialising whole array to 0)..

                Instead you could have used map to store frequency...

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

Can anybody plz tell me how to know on which case my submission got hacked?

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

The tests seem to be kinda weak — many solutions were TLE-hacked

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

Giving this contest made me feel like Div 4's were back on the site.

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

i have created a fact arrary which stores the factoril of number and I used it to calculate nCR

why this code is giving tle for E2 O(nlogn) solution....
  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Just change all 200000 with n in solve func

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

      ya i got accepted but i am mot getting one thing that 200000 is not so big to give TLE can u explain plz

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

        You iterate 200000 in every testcase so your complexity is t*200000*c

        (c = complexity for every iteration in for loop, t = numbers of testcases)

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

I solved 2 questions in the div3 contest yesterday. and also this is my first contest my submission list shows that I have submitted 2 questions. but my contest list shows no items and my rating is also null. can anyone help me

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

    The final standings has not come yet. It will be updated soon.

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

Why F is easier than E2?

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

i need help with E1 problem. Close Tuples (easy version). I still don't understand why the result is 15 sets? With the number 1,2,3 we can form 10 sets. With 2,3,4 we can create 4 sets. With 3,4,5 we get 1 set and 4,5,6 more. This would give 10 + 4 + 1 + 1 = 16 : (

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

    yes, but one over count....

    in case (1 2 3)=10, we count (2,2,3)tuple

    in case (2, 3, 4)=(3 not 4);// here double count of (2,2,3) tuple with same position

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

Why does my O(N) Code in E2 gets TLE?

Is this the power of frequent use of modular and long long type

EDIT: index mistake for the n<m case.

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

где мои +1е9 к рейтингу??

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

E1 was easier than D problem.But overall we enjoyed solving another good contest.Thanks Mike,Supermagzz and Stepavly.

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

I streamed my virtual participation of this contest, as well as explaining solutions afterwards: https://www.youtube.com/watch?v=_6nyLsqM5Ec

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

When the ratings will be updated??

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

Is this contest rated?

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

Hello. Is this contest rated or not?

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

Hello . Good job ! when will the ratings change ? 19 hours have passed since round 690, but the ratings have not changed yet. and it's so bad...

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

The logic of question D is easily available on Internet. So I haven't cheated, I used the code of dividing the Array into K subarrays such that all subarrays have same sum and than iterated K fron n to 1 and this was my logic. Any sort of matching in the code is completely a coincidence but I am not a defaulter and have hiven test with complete honesty. So I request Codeforces to give me my points back for this contest

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

I hope the rating changes are brought about faster in this round! Thanks Mike.Expect more of Div 3 rounds!

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

Hey, can anyone help me with realizing how this solution can be TLed https://codeforces.com/contest/1462/submission/101328873. Is it because of Java sort , or i just made a mistake ? Thanks for attention/

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

Я получил сообщение, что моя посылка 101299306 на задачу D совпадает с посылкой 101301240, но при решении этой задачи я не пользовался никакими источниками.

Действительно у нас идентичные по смыслу и структуре кода решения, даже имена некоторых переменных совпадают. Я нигде не публиковал своего решения и отправил решение раньше, чем Basilhijaz. Тем более Basilhijaz участвовал вне конкурса и поэтому мы не договаривались и не общались во время контеста, потому что в случае договорённости его посылка не имеет смысла. Я не знаю как подтвердить, что ни я, ни Basilhijaz не публиковали своих решений во время контеста.

Надеюсь это досадное совпадение не приведёт к банам.

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

Hi, I got a message that my solution AAAwesome/101289887 to problem B of the contest is similar to that of sul3/101270264 and asmans/101276379 and that is why I have been disqualified from the round.

My solution was pretty simple. I just coded it so that my code just checks that if the digits of 2020 are in the end or the start or a few in the start and a few in the end. My code would give the output on that basis. I could have probably thought of a much better implementation, but because it actually had a pretty small number of combinations of arranging the digits of 2020, I went with my code.

I am not surprised that other people thought of implementing their code in a similar way. After getting the message, I saw that the others had used different functions for their implementation for the same, so there is no way I copied them and also there is no way for me to check someone else's code while the contest is still running.

I request Codeforces to count my submissions because I haven’t cheated. P.S.: I don't know if this is the right place to post this, if this isn't then please tell me where I should.

This is the message I received: Attention!

Your solution 101289887 for the problem 1462B significantly coincides with solutions sul3/101270264, asmans/101276379, AAAwesome/101289887. 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://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.

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

Respected Codeforces, I have valid proof that the basic code for Question D was published prior to the contest on gfg. I have not cheated by any means and I request to code forces to recheck my submission and give me my valid ratings Here I attach the link to that gfg problem, https://www.geeksforgeeks.org/check-if-it-possible-to-partition-in-k-subarrays-with-equal-sum/ You can refer it by yourself and confirm that I have not cheated and the source was freely available on the Internet and the match with other contestants is just a coincidence.

Thank You

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

Hello, I received a message saying my solution to Problem D 101301240 and Targas's solution 101299306 to the problem are quite the same. And thus we both have been disqualified.

Both Solutions might be very close, but we don't share the same exact code. I didn't share my solution anywhere, neither Targas did. We also don't know each others, so we don't have any way to communicate. We're not even friends on codeforces(I will add him after this coincidence as he thinks in the same way I do).

I think it's unfair to accuse people for cheating just for thinking in the same way and writing codes that are similar but not the same.

Your efforts for making the checker of copying are appreciated but I just figured out it needs some more work.

Thanks for the great round and problems!

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

    Your solutions look very similar. In addition, you already participated out of competition. Let's not do anything. Unless you are a cheater, lightning rarely strikes the same point twice. You are unlikely to encounter such system behavior.

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

I did not receive a message for rating update, as earlier i used too. Can someone explain this? I am new to Codeforces.

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

Все видели? Я решил на 6 задач больше, чем Ильдар Гайнуллин!

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

"Attention!

Your solution 101277221 for the problem 1462B significantly coincides with solutions soham_mittal/101273272, complexroots/101277221. 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://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."

This was such a direct question which just involved some if/else statements checks. Also I used Python and this could be the reason for two or more similar answers. I have NOT done any violation or any illegal activity.

What do I do now?

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

Vaibhav Garg

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

    I don't see much common between GeeksforGeeks implementation and your and Piyush_7399 codes. But your and Piyush_7399 codes look the same.

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

I received messages from codeforces that my solutions for problem B and D match with solutions of some other contestants. I did not adopt unfair means. Also I am pretty sure there was no leakage of code. The similarity may be found because of the templates I used which are readily available in internet. Hopefully I did not violate any rule of Codeforces by using them because they were available in the internet even before the contest. Please look into this matter.

Thank you.