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

Автор albertg, 9 лет назад, По-русски

Доброго времени дня, сообщество Codeforces! С радостью объявляю, что 27 ноября в 19:35 по Москве состоится Codeforces Round #382 для участников из обоих дивизионов.

Автор этого раунда — я (albertg). Я из Армении, и пока единственный армянский автор раундов на данный момент. (Прошу прощения у Edvard) Этот раунд для меня является вторым и, надеюсь, не последним :) и последним. Как обычно, хочу сказать спасибо координатору Codeforces Глебу Евстропову (GlebsHP) за помощь при подготовке раунда, Михаилу Мирзаянову (MikeMirzayanov) за отличные платформы Codeforces и Polygon. Еще хочу благодарить super_azbuka за идею задачи.

Как обычно, участникам обоих дивизионов будет предоставлено 5 задач и 2 часа на сдачу решений. В этом раунде мы поможем Остапу Ибрагимовичу Бендеру добраться до Рио-де-Жанейро. Желаю всем удачи и удовольствия. Разбалловка будет объявлена незадолго до начала соревнования!

UPD1: Господа присяжные, заседание начинается! Разбалловка в div1 750-750-1500-2000-2500, в div2 500-1000-1750-1750-2500.

UPD2: Опубликован разбор.

UPD3: Если у кого-то вопросы по решениям задач (хотя это видимо мало кого интересует) пишите, пожалуйста мне лично. Буду отвечать.

UPD4: Прошу читать этот пост

UPD5: Опубликован разбор задачи div2E/div1C.

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

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

Clashing with another contest
One of them (HR preferably), please reschedule, so we can participate in both.

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

Who is Ostap Ibrahim Bender ?

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

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

"В этом раунде мы будем помогать Остапа Ибрагимовича Бендера добраться до Рио-де-Жанейро."
Значит нужно ожидать задачку на граф :)
UPD: wasted.

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

normal time again

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

Is it rated?

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

Its fu*king rated..! Dont ask is it rated or not !

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

Предпоследняя строчка — написано "помогать Остапа Ибрагимовича...", а ведь лучше будет "помогать ОстапУ ИбрагимовичУ ..." Или я что-то не понял?

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

5 problems round again! Wish it to be an interesting round~: )

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

Hey, I'm new to codeforces. Can you please explain me what is Division 1 and division 2? Thanks.

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

Названия обычных анонсов:

Анонс Codeforces Round #3XX

Название этого анонса:

Codeforces round #382

Возможно, стоит исправить?

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

Again....5 problems!!!

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

18:35

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

Perfect time for me

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

какие книги можно читать по граф c++

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

Codeforces always helped me to improve my thinking capability , thank you codeforces :)

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

Объясните, почему много людей спрашивают "Is it rated?"?

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

The comment is hidden because of too negative feedback, click here to view it

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

Petr has register for DIV 1. He must be aiming to get his second spot. Wish it to be exciting round!

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

I hope I can help Ostap Ibrahim Bender to not reach Rio de Janeiro.

Life is not the best right now here :P

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


Ostap Bender is a fictional con man who appeared in the novels The Twelve Chairs and The Little Golden Calf written by Soviet authors Ilya Ilf and Yevgeni Petrov.

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

Я из Армении, и пока единственный армянский автор раундов на данный момент.

А я веган, кстати, приятно познакомиться:)

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

So we should expect graph theory problems in this contest.

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

After a long time :D Back to home , codeforces ! The love! <3

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

Is it rated ?

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

Hello.
This is my first contest.
Wish me good luck.
Also every Punjabi add me.
Jai babe di

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

Score Distribution?? Not declared yet, 17 minutes left

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

Разбалловка будет объявлена незадолго до начала соревнования! Ну можно по быстрее.

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

Where is scoring?

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

This scoring will be posted just before the contest!

So the contest is gonna be delayed again?

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

At least I don't have to worry about system test (and can sleep early)

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

A=B=C=D<E

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

That sad moment when you're certain of your solution but it won't pass and you can't find where is the error

rip rating :/

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

How to solve Div1 C and D?

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

How to solve Div2 C? Every time I see a problem about any kind of paired tournament I become sad.

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

Can anyone explain how to Div 2 D? I did it greedily where I took the largest prime less than n where n-x >= 2 and then continued to take the smallest prime under that number until I got to 0.

But it seems that way is wrong. Did I miss the correct way entirely?

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

    Two words: Goldbach Conjecture

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

    I used Goldbach's conjecture, though my solution was hacked.

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

    why less than n? If n itself is a prime number then the answer would be just 1. I didnt get the solution but this might be your mistake.

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

    I used this. I hope this passes system tests.

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

    Hint: Every number can be written as sum of 3 or less primes. So check if it is possible to write as 1 or 2 primes, if not it must be 3.

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

      So that's what it was. When I input 2,000,000,000 I got 4 but I couldn't find a set of primes that made it sum in 3. Could I ask how you came up with that? Did you already know that you could express the numbers that way or did you just think about it?

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

        That is not true, 2000000000 can be written as a sum of 2 prime numbers. Following is a list (all of them are primes):

        8388739 + 1991611261 = 2000000000
        37749343 + 1962250657 = 2000000000
        33554977 + 1966445023 = 2000000000
        4194403 + 1995805597 = 2000000000
        41943721 + 1958056279 = 2000000000
        73 + 1999999927 = 2000000000
        8388811 + 1991611189 = 2000000000
        20971789 + 1979028211 = 2000000000
        29360533 + 1970639467 = 2000000000
        20971807 + 1979028193 = 2000000000
        12583099 + 1987416901 = 2000000000
        127 + 1999999873 = 2000000000
        29360449 + 1970639551 = 2000000000
        139 + 1999999861 = 2000000000
        4194511 + 1995805489 = 2000000000
        4194439 + 1995805561 = 2000000000
        223 + 1999999777 = 2000000000
        37749421 + 1962250579 = 2000000000
        16777711 + 1983222289 = 2000000000
        20971957 + 1979028043 = 2000000000
        4194637 + 1995805363 = 2000000000
        33555217 + 1966444783 = 2000000000
        12583297 + 1987416703 = 2000000000
        29360257 + 1970639743 = 2000000000
        8389063 + 1991610937 = 2000000000
        25166023 + 1974833977 = 2000000000
        4194583 + 1995805417 = 2000000000
        8389111 + 1991610889 = 2000000000
        379 + 1999999621 = 2000000000
        12583237 + 1987416763 = 2000000000
        25165843 + 1974834157 = 2000000000
        20971651 + 1979028349 = 2000000000
        41943883 + 1958056117 = 2000000000
        12583183 + 1987416817 = 2000000000
        25165909 + 1974834091 = 2000000000
        16777441 + 1983222559 = 2000000000
        41943919 + 1958056081 = 2000000000
        4194739 + 1995805261 = 2000000000
        8389261 + 1991610739 = 2000000000
        577 + 1999999423 = 2000000000
        33554503 + 1966445497 = 2000000000
        12583561 + 1987416439 = 2000000000
        20972311 + 1979027689 = 2000000000
        16778077 + 1983221923 = 2000000000
        29361067 + 1970638933 = 2000000000
        4194871 + 1995805129 = 2000000000
        37748791 + 1962251209 = 2000000000
        12583609 + 1987416391 = 2000000000
        33554593 + 1966445407 = 2000000000
        20972437 + 1979027563 = 2000000000
        20972449 + 1979027551 = 2000000000
        20972473 + 1979027527 = 2000000000
        25166719 + 1974833281 = 2000000000
        16777729 + 1983222271 = 2000000000
        41943439 + 1958056561 = 2000000000
        4194217 + 1995805783 = 2000000000
        8388571 + 1991611429 = 2000000000
        
  • »
    »
    9 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    My solution (apparently correct) was based on Goldbach's conjecture. The answer was always going to be 1, 2 or 3.

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

    Yeah it's wrong. There is Goldbach's conjecture which says that every even integer can be expressed as the sum of 2 primes and every odd integer can be expressed as the sum of 3 primes. But in some cases we can use less primes, take it as an simple exercise.

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

    If the number is prime, return 1 (all prime numbers obviously have a tax value of 1, and this is key to the following algorithm). Otherwise, if it's even, then the Goldbach conjecture follows (every even number >2 is the sum of two primes) and you can return 2. If that is not the case, then check if n-2 is prime. If so, then the number is the sum of two primes (2 and another prime) and you can return 2. Otherwise, it is the sum of a prime and an even number (which itself is the sum of two primes), and you can return 3.

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

    Greedy is flawed here. I initially thought it can be solved with greedy. Later, found that it fails if n == p+1, when p is a prime, greedy algo will try to split it as {p,1} but in the description it was given each of split elements should be greater than 1.

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

Div2 B hack?

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

Any idea of prestest 5 of C ?

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

Loved the idea behind problem D div. 2 (B div. 1).

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

steps to perform well on codeforces contest , steps 3 & 4 are enough in this contest i think :/ ....

UPD : you'll need step 2 also , but you should read all the old problems on spoj ..

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

Товарищи, поделитесь, пожалуйста, мыслями: как в DIV1-A можно было за три минуты догадаться, что там числа Фибоначчи?

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

    Я до сих пор не понимаю, откуда там числа Фибоначчи =)

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

      Пусть dp[x] — минимальное кол-во игр, нужное для того, чтобы один из игроков сыграл x игр. Чтобы достичь минимума для dp[x + 1], нужно, чтобы игрок, сыгравший x игр, сыграл с игроком, сыгравшим x — 1 игру. Таким образом, dp[x + 1] = dp[x] + dp[x — 1].

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

    Нужно найти как можно более глубокое дерево игры с какминимум n листьями, в котором для любой внутренней вершины разность глубин ее двух поддеревьев не больше 1. Понятно как такие деревья строить: чтобы у корня была глубина k к нему нужно подвесить детей глубины k-1 и k-2 (это лучше чем k-1 и k-1 потому что в k-2 меньше листьев). Такие деревья фибоначи получаются. Я, кажется, где-то видел такую конструкцию; кажется, в контексте сбалансированных бинарных деревьев поиска; поэтому сразу было понятно, что числа фибоначи.

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

    Ну если мы выиграли х — 1 партий, то выгоднее всего сыграть с кем-то, кто сыграл х — 2 партию.Тогда для количества раундов х количество человек, нужных для партии, равно с(x) = c(x — 1) + c(x — 2). c(1) = 0, c(2) = 1

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

One hell of a tricky contest!

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

How do you solve C? I was so certain my solution was going to pass but it didn't :( I think many others struggled on it as well.

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

This was a hacking contest. 1 integer input problems for C,D. "7" and "9" were hack cases for D.

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

I've attempt to hack div2 A using the following test input, on the codes that did not handle negative indices (for example, 22533346):

5 4
TG...

However, they output correctly. Is there something I have mistaken?

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

hack.JPG

At first: Thank you for hacking :D.

A few minutes later: Sorry for hacking :(. I don't want to lose my rating (significantly).

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

Solved D for the first time! I hope it will pass system test. :)

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

Dooms Contest :/ GG Rating

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


I wonder how this guy might be feeling after hacking 5 solutions for D and getting hacked back by one of those users.

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

I'm sorry to tell, but truth should not be concealed : Awful problems on C and D (they don't deserve their intended points) :(

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

I got disappointed with my result in this contest. I am pretty sure I have become better in algorithms as I usually practice in TopCoder. According to the new rating in Codeforces, I got moved to Div2. Then, I decided to participate in this contest to reach div1 here, too. Generally, I have difficulty with these kinds of problems since instead of thinking about algorithms, I am forced to find corner cases. I don't really like these kinds of problems though I have the great respect for the author.

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

i used this code for problem C i got WA in pretest 7 any idea ?

while(n>1){ if((n%2)==1){ans++;}; ans++;
n>>=1; }

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

else A&B(div1) problems were fun.

thanks.

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

My friend just told me that he solved C and D (Div.2) by finding other peoples' codes on ideone. This is so unfair -_-

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

How to solve Div 2 E ?

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

Did anyone used prime numbers to solve D?

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

Problem D/B be like:

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

problem D can anybody google it

this is unfair

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

in problem C:

"Don't miss the unusual constraint for k."

is just a lie :|

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

Hope I can jump to div1 for the second time.

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

Div.1 A I wonder how many people could google this http://www.spoj.com/problems/TENNIS1/ during the round.... -_-

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

I've actually learned something new from this contest, thanks!

1) Google exactly the problem statement because apparently... you might get lucky (same author, same statement)

2) After #1 is done... you know what to do next

3) If everything fails, try checking other people's code on ideone.com because apparently... well, you got the idea

Go Googleforces!

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

this contest reminds me of april fools day contest :D :D

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

Is it fair to repeat your already existing problems? albertg

http://www.spoj.com/problems/TENNIS1/

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

I don't want to sound rude or anything, but this contest was very bad and in my opinion should be unrated, and I'm not saying that just because I participated badly. The main reason is that problem C was on SPOJ — link and was posted there by the author of this contest! Anyone could just google it. Also D was an ugly problem, and the only way to solve it was to either somehow already known about Goldbach's conjecture, which is not all that well-known, to search it on google which shouldn't be a way to solve a problem, or to guess it, which would be just luck.

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

Div 2 D is just the same with #324 div 2 D. (http://mirror.codeforces.com/contest/584/problem/D)

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

While it's true that the author may have used one of his own problems and this was a mistake, it's important not to consider the entire contest as bad just because one or two tasks were not optimal. It takes a lot of time to prepare these contests, especially for both divisions, so at the end of the day, we are all in the author's debt, not the other way around.

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

    Although I didn't participate but we aren't talking about optimality here. You were an author before and you know it's not an easy task to come with the problems but you also know that it's a huge responsibility, in case it's a dup problem we can excuse him assuming he didn't know it existed but here he was the author and it had been there for 2 years.

    There was no problem solving in Div2 D also just using a well know theorem.

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

    Not really. Authors are paid to create problems for a contest, and if they are reusing one of their older public problems, they are basically cheating.

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

    Лол, я сдал эту задачу в тимусе но не решил в этом контесте :D

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

    Та не, задача, которая находится в гугле в 3 счета и решается за пару секунд — самое то для D.

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

      Я узнал о гипотезе Гольдбаха (точнее, её формулировке) в шестом классе. С тех пор я всё ждал, когда же удастся её применить (сначала на олимпиадах по математике, позже и на информатике).

      НАКОНЕЦ-ТО

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

make it unrated is the most stupid thing CF can do

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

I don't participate in one contest and the freaking problem D can be done with the Goldbach Conjecture , fml.. They should make it unrated, this isn't fair!

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

One of the problems was a straight copy, and the other one was a google search problem. Making this round rated cheapens the value of one's rating.

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

In Div1-D, is it enough to check for each relation if it is contained in exactly one valid permutation?

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

is contest rated?

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

Actually, problem D is the direct application of Goldbach's conjecture. I think this is the 'ABC' in the world of math/number theory.

I remembered that I've learned this when I was really really young, maybe the time when I was a primary student or a middle school student.

Even though, I failed to come up with this quickly in the contest and tried several wrong ideas, wasting my time.

From the view of problem setting, I don't think this problem (as well as C) is good. I think people don't want to train their knowledge of commen sense in problems like D in div2. These problems can be better if they engage more thoughts. As for me, I enjoy harder D, even if I can't solve it.

But from the view of a problem solver, I think div2D is still good problem. It reminds us that we should not forget the most fundamental thing when we are solving hard problems. If tourist competed in this round, I think he would solve div2D easily. We as problem solver should think of how we can deal with such problems quickly under adverse condition instead of complaining about it. Life is not always fair, right?

Anyway, thanks for the problem setters. It is not easy to prepare a contest. And somehow, it is not easy to come up with easy problems. Hope the next round will be better and I can become purple. :)

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

Regarding the repeated problem issue, if I were in charge I would zero out all results from 1A/2C but not unrate the entire contest. The problem lies exclusively in a single question, and yes it is a major problem, but it's not like all of the questions leaked or anything.

Also, some here are saying 1B/2D was "unfair"; I have to say I personally disagree, with the caveat that maybe this wasn't the best problem to have in Div 2 because of this. Yes, 1B/2D relied on some knowledge/research -- but in the end, what harder problem doesn't to some extent? At the ICPC Mid-Central Regionals, one of the hardest problems anyone solved (and, in the end, the one that put my team over the top to go to Worlds) seemed intractable -- until, that is, I realized that the problem of deciding whether a given power level is possible reduces to 2-SAT. Without knowledge of 2-SAT and its reduction to the strongly connected components problem, this problem would be impossible to solve. In addition, most geometry problems have some innate knowledge requirement in order to reach the key insights involved. Maybe this problem was a bit irksome because its knowledge difficulty was above its algorithmic/implementation difficulty, but overall I don't think it was a bad problem (though, again, maybe it should have been replaced with something else for div 2).

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

Look at the code of winner of div2 round. Who uses DPDPDP as a variable? I wish there was no find and replace option built.

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

blokes ya just have butthurt cuz you didnt solve these problems. great contest, well done.

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

Hi. Can anyone help me with div.2 B? My code works fine on my computer, including the first test case. But on codeforces the output is -2 on first test. http://mirror.codeforces.com/contest/735/submission/22553933

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

In my opinion, tests for problem D are not enought. Some accepted solutions are checked only prime numbers to 1e5. I think there are no complete test cases.

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

Why do people use Google during the contest in the first place? And if one uses the argument "everyone else is doing it" then how different is that person from all the other googlers?

Correct me if I am wrong, but the purpose of these contests is to hone one's skills. Although the problem setter made a mistake posting one of his own problems, take into consideration that the author took his time to put this contest together.

Without using Google, I find Div. 1 A&B very reasonable. It definitely took me more time to come up with Div. 1 A but I came up with that so why should I care that someone looked it up online. I didn't even know about Goldbach's conjecture but managed to solve B with some kind of brute force. It seems that the problems were more or less balanced if not for the googlers. But googlers are googlers, why should one compare himself or herself to them.

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

I spent most of time working on problem D... There seemed to be a fancy conclusion as the solution to problem D, but I hadn't got it. Umm... I should improve the level of knowledge.

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

why my code got WA in test 11 Div2B

submission

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

How to solve Div 2 E / Div 1 C?

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

Does anyone know why the problem C of Div.1 use unusual constraint for k?

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

Just googling round)

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

thanks the author for ruining my 2 hours:/

i should have participated in HR ICPC contest :(

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

    All problems there were OLD HR problems :) People Googled/Searched HR archive and submitted :) So, by your logic, you would have complained about HR contest too!

    So the best solution for you would have been shutting down your system for the time being :D

    It's better to stop complaining and learn :)

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

waiting for Edtutorial just to give you your deserved downvote

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

Wow, they actually made it rated.

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

Did anyone take advantage of a problem div1A being googlable? There is no editorial or any comments under that problem. I've just tried to submit a solution there and got ERROR — so I guess it wasn't possible to test one's solution by submitting a problem there. The only possible issue I see is that someone may have already read that statement. There is a tag "hidden" though and maybe it means that a problem isn't showed in the global list of problems. Still, maybe someone managed to find it in some way before, but it doesn't look like a likely scenario.

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

Codeforces really wants me in div1 :)

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

well, the round is rated for both division, same shity problem for the same author and with the same statement
everything is fine , don't you think that at least we own you an apology ?

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

THIS IS RIDICULOUS!!

Most contestants are complaining that problem A Div.1 is repeated with the same statement and the same author & problem B Div.1 can be googled easily and all we can get is IGNORANCE..

I downvoted the contest, it should be UNRATED!!

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

I wonder if albertg will write an editorial for Div1/A or he'll just post the Quora link.

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

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

This contest is just terrific!

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

now , i think that Edvard is the only Armenian author in codeforces . :3

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

Just for fun: problem with (a bit) similar idea to D2-D / D1-B: https://community.topcoder.com/stat?c=problem_statement&pm=11607

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

I wonder if albertg will write an editorial for Div1/A or he'll just post the Quora link.

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

Let's make the contest editorial post the most downvoted post on codeforces....

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

I'm poor in math; Then I got a 75 ratings decreasing..; Horrible math....; However,This is a Nice round; Thank you! (I'm poor in ENGLISH too.TAT)

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

I thought it would be unrated, maybe I will back to blue when I wake up tomorrow ...

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

I like mathematics so I think C and D were good problems. Maybe it was too easy to copy them from google but beside that they were interesting and challenging.

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

albertg Here is a list of "Things to Do":
1. Apologise CF community for your behaviour and laziness to not even change the problem title.
2. Request Mike to make this round unrated.
3. Live with the curses of people affected by this round.

CF should have not make this round rated. I will definitely move to AtCoder, Codechef, Hackerrank and CSAcademy. But now-a-days, frequency of contests has decreased. Can anyone suggest other similar sites that hold frequent contests with their standards maintained and proper and genuine problem setters.
Anyways, here is the link to downvote this guy.
EDIT: Reply to all saying I have only 1 submissions. "This is obviously my secondary account. To all the people ready with questions like, "Why do you need to comment from your fake account? Do u fear to reveal your identity?" I have the answer: "I get downvoted for no reasons from my main account. Plus I need such account to enjoy contests and do not let my div1 rating to go to div2.". Why am I so mad? Because I can't use the coach account and see test cases of gym problems. Plus I am an addictive coder at heart and love my rating. Hope I clear your doubts."

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

    Well if he does 1 and 2, 3 will be invalid since noone will be affected anymore. Also I think CF is good, only that sometimes mess-ups like this happen. We all make mistakes. Although when we make mistakes we shouldn't take this long to make an apology...

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

    "I will definitely move to AtCoder, Codechef, Hackerrank and CSAcademy"

    You have exactly one submission on this site. I wouldn't exactly call that moving...

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

    You participated in 0 contests and you have exactly 1 submission in Codeforces. Moving to other platforms won't affect CF much.

    Why would you want to downvote an editorial? Do you want it to disappear (at least from the "recent actions")?

    That being said, I also think that an author behaved badly.

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

    This is obviously my secondary account. To all the people ready with questions like, "Why do you need to comment from your fake account? Do u fear to reveal your identity?" I have the answer: "I get downvoted for no reasons from my main account. Plus I need such account to enjoy contests and do not let my div1 rating to go to div2.".

    Why am I so mad? Because I can't use the coach account and see test cases of gym problems. Plus I am an addictive coder at heart and love my rating. Hope I clear your doubts.

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

So, Problem C div2 / A div1 apparently is http://www.spoj.com/problems/TENNIS1/

The author is the same btw.

And this problem is hidden from the site because of its unclear statement.

My solution was ceil(log2(n)) which I think is right.

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

Screencast: click

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

Also today’s DIV1 E was actually the same like this problem http://informatics.mccme.ru/moodle/mod/statements/view.php?chapterid=714#1. You just needed to add two more cycles.

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

I think the author wanted to make an Educational Round but accidently published it as a regular round :3

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

One of the worst contests I have ever participated in xS

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

I love math so much and I want every contest be like this (not)

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

I think there is problem with editorial link.

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

Интересно, а что делает координатор на Codeforces?

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

I've read all the comments and very upset about the situation. I told to writer and asked him to describe here how it happened. The situation with 736A - Tennis Championship is very disappointing. I'll announce the decision about the rating as soon as I decide something.

Sorry for the issue.

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

И снова долгие ожидания нового раунда(((

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

Why did this code not get wrong answer on a test like 100000 50000 50000 and with al the numbers equal to 100000 given that 5*10^9 is bigger than maximum int? no overflow

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

Zlobober We need more rounds from you ! :(

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

Hey, can you please explain me the difference between the various problems A,B,C,D,E ? Are they different in difficulty? Or there are just of the same difficulty but based on different topics? Or both? Hope you dont't mind. Thanks :)

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

    They should be ordered by difficulty. I mean A < B < C < D < E. Nonetheless, it is not always so. With respect to the topics, they are usually different, but A and B are often implementation.

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

I demand justice! I solve and solve and no point from C. Also I see it copyd from elsewhere. Make it unranked or I leave site!!1

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

По задаче С второгодивизиона.

Картинка

Почему при Н=12 мы не можем сформировать дерево турнира таким образом? Условно представим, что выигрывать всегда будет левый сын. В даном случае ответ будет 5, в то время, как авторское решение скажет, что ответ должен быть 4. Где я ошибся?

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

" и последним."

Да ладно, че ты так? Крутой раунд, делай еще!)) А косяки случаются, все нормас

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

What am I missing here ? :(

22565660

Problem : 735C - Tennis Championship

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

C. Tennis Championship why i solved it. its seen wrong answer in test case #6

include<stdio.h>

int main() { long long n,ck,x; while(scanf("%lld",&n) != EOF) { if(n==1) { printf("0\n"); } ck=0; x=1; while(x<n){ x=x*2; if(x<n) continue; else if(x==n){ while(n!=0){ n=n/2; ck++; } printf("%lld\n", ck-1); } else{ while(n!=0){ n=n/2; ck++; } printf("%lld\n", ck); } } } return 0; }