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

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

1 раунд FHC в этом году пройдёт в субботу 17 января, в 9 вечера по Московскому времени.

Эта и прочая информация есть здесь. Во второй раунд пройдут первые 500 участников, а также все, кто наберёт столько же баллов, сколько и участник на пятисотом месте.

1 раунд продлится 24 часа, и это будет не виртуальный контест, который ты начинаешь в любой момент в течение этих 24 часов, а полноценный 24часовой контест и это весьма неординарное решение. Понятно, что организаторы хотели, чтобы все смогли найти удобное время порешать задачи. Надеюсь, проблемсет будет таким, чтобы состав участников второго раунда не очень зависел от того, кто сможет порешать пару часов, а у кого — весь день свободен. Возможно, предполагается, что будет определённый набор задач, доступный для большого количества участников, гораздо большего, чем 500, но гораздо меньше, чем 500 человек смогут решить что-то ещё.

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

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

А штрафное время будет влиять на проход в следующий раунд в случае, если я набрал не меньше баллов, чем все люди в топ-500, но штрафное время хуже(сам я не в топ-500, допустим)?

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

I've been wondering — why do we need send output file AND source code? Why not only source code?

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

These rules seem slightly weird. Regardless of problem difficulty, if there are at least 500 participants with lots of free time, the round turns into "advancers == people who solved everything". And if there are hard problems in the problemset, this gives huge advantage to people with lots of free time.

I wonder how do they come up with such rules, and did they have any meaningful discussion (because discussion would definitely make this problem obvious).

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

    Well, last year it turned out fine. The 4 tasks weren't too hard, but they had some corner cases, so lots of people failed some. Still, everyone who did any 2 tasks (except for the easiest two, that wasn't enough) passed to the next round. Even just the hardest task alone was enough to pass.

    Yes, either of the scenarios you mentioned are possible and is highly undesirable, but I hope that organizers are aware of that as well.

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

    Yeah, our 24-hour rounds are a little bit different. They're kind of a stepping stone between the qualification round where you merely need to solve something, and the actual timed rounds.

    The idea is to make sure that there's another round in which all time zones can compete comfortably. We aim to make the problems at a difficulty that doesn't require all of them to be solved to advance. Right now it looks like 60 or 75 points will be the qualification cutoff.

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

who can hack facebook in this round this is important

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

(I will glad to see the remarks about translation mistakes)

Not a native speaker, but I think you're missing some articles. Maybe this makes it better:

FHC Round 1 starts in January, 17, at t̶h̶e̶ 18.00 UTC.

See this and other information here. The top 500 finishers will advance to Round 2, as well as any contestant who gets the same number of points as the 500th contestant.

Round 1 will last 24 hours. This is not a virtual contest, when you can choose moment when you start during these 24 hours, but 24-hour contest of full value. It is an unusual decision. It is clear that organizers want all participants to find a convenient time to solve the problems. I hope the problemset will be completed in such a way that how much time the participant can spend to solve the problems, 2 hours or 24, will not have a big impact to his result. Perhaps it is assumed that a certain set of problems will be solved by a large number of participants, much more than 500, but very few people will be able to solve something else.

(I will be glad to see the remarks about translation mistakes)

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

    Translation is pretty OK though I'm somewhat puzzled by:

    This is not a virtual contest, when you can choose moment when you start during these 24 hours, but 24-hour contest of full value. It is an unusual decision.

    I thought it is usual way of conducting Round 1 over several last years (i.e. like Qual but 1 day instead of 3), but probably I'm missing something.

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

      Some contests open for a long window, but each participant can only use a part of it. If I recall correctly, this is similar to USACO. The contest is open for around 72 hours to let participants choose their most convenient time, but upon starting, they only have 4 hours to solve the problems. Compare to this Facebook Hacker Cup round where the entire 24-hour window is also the entire time to solve problems.

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

To the experienced Facebook Hacker Cup people, what can we expect from Round 1 problems? About the same difficulty as a Div 2 round in Topcoder/Codeforces? Slightly more difficult than the Qualification Round problems?

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

dis like me pls

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

Best of luck to everyone participating!!

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

Is participation in the qualification round required to participate in round 1? I didn't realise it would be held so early!

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

А если мы здесь будем обсуждать перевод и неоднозначности условий, это будет нарушением правил?

UPD будет нарушением. в правилах параграф 12 гласит, что дисквалифицируют за такое: Communicating or publishing information concerning the content of the problems, or solutions to the problems, with other competitors, either directly or indirectly, before the end of the Round.

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

    "content of the problems" — вроде это содержание задач. Мне кажется, имеются в виду только обсуждение по существу. То есть, пояснить, что в точности написано в условии можно, а переформулировать условие уже нельзя.

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

..

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

не могу зайти на олимпиаду :(

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

"Autocomplete":

NOTE: The input file is about 10-20MB

правильно ли я понимаю, что инпут надо скачать за <<6 минут? А что если подключение к интернету очень плохое? Не хотелось бы получить 0 только из-за этого))

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

I upload both output and source of first problem
simultaneously when I tried to click submit my lab suddenly freezes with unexpectable behaviour from windows :( :(

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

I guess contestants with slow Internet connection already have some special feelings about those 20mb-large input files...

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

    My internet downloads 20 mb in 18 minutes, I have a great problem... xD

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

    Probably the best solution is to allow participant download encrypted input archive at any moment and display password when he starts 6-min timer.

    This doesn't work for 18mb output, though. But I don't remember tasks with large output on FHC before.

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

      For outputs, jury can just ask to upload some cryptographically secure hash of the output file.

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

        If the output is (almost) unique.

        But there still will be problems with different endlines, extra spaces, #'s etc

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

          Ask for hash in 6 minutes and for the actual output in unlimited time. All such problems are trivially solvable in cryptography.

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

            Nice idea, agreed

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

            This is getting too complicated, at least compared to the solution: just don't ask for large outputs.

            Are there even programming problems that require huge outputs and aren't extremely technical? I don't remember any.

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

              Sure there are such tasks. For example these 4 tasks from my rounds on Codeforces:

              321C - Ciel the Commander, 388B - Fox and Minimal path, 472E - Design Tutorial: Learn from a Game, 472F - Design Tutorial: Change the Goal

              They are all about construct a valid solution, so the output is far from unique.

              And, well, there is always a solution by cryptography: we can use interactive proof system -- I remember there are methods to transmit few bits to check if x makes f(x) = true for a function f.

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

                You're misunderstanding. I'm asking about problems that require && huge outputs, not allow || non-verysmall outputs.

                The difference being: your examples don't really go beyond 2-3 MB of output size (not even my code on 472F, and considering how sloppy I usually am when such constraints are loose...). That's roughly an order lower than 20 MB. 30 minutes vs 3 minutes of uploading? That's a huge difference.

                Random query/update problems would be examples as good as yours, but that's not what I'm looking for. (Specific IPSC-styled problems aren't either.)

                I was wondering about problems which have output size comparable to the 20 MB that were the problem this time. Even by including several large cases in a single input file, the point is that it's really huge per one execution of the code, and ideally, that it actually matters.

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

                  Oh, I see. But if there are 20 test cases there will be huge amount of bits to upload, right?

                  "Random query/update problems would be examples as good as yours" -- I will argue this a bit: for this kind of problem, we can just ask the hash of the output. But for my examples, this will not work.

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

    I know this doesn't scale, but just a trivial zipping the inputs reduces the size from ~19MB to ~3MB. I guess organizers just didn't consider the possibility that someone doesn't have fast internet connection.

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

      Judging by the bandwidth that the facebook mobile app needs, it's safe to say that facebookers ignoring the possibility of bad internet connections is not very unusual.

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

    Yeah, we obviously made a mistake with the input sizes in this round, and it won't happen again. For this round we're letting people email us their solutions if the download doesn't finish in time.

    We like iterating and trying new things, but obviously this wasn't a good choice :)

    In the end everybody should end up with the right score though.

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

      Does it mean just before the deadline (before an hour or before a few minutes), because I don't see any changes in the scoreboard and would like to understand that it's the wrong solution/answer, or the scoreboard hasn't changed yet. Thank u!

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

      How do you justify that a person using this "send-solution-by-email" was really not be able to download, not a person that exceeded the 6 minute timit limit and used it as a hack?

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

        We have logs showing the download times, and we still require that people submit their source code which we can check manually.

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

          I had to do the e-mail thing because really my lap-top couldn't download and process the whole input thing in time, after that I kept working on my pc, when I got the input file on the mail, I sent my source code and output, and screenshot of that job being done in 6 seconds. I really couldn't think of better way to prove that I didn't have something like WA or my program was exceeding time limit, hope this should be fine.

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

          How exactly do you plan to use the logs to tell you if a contestant has tampered with the source code after the 6 minute timer ? By how much time has passed between the moment he downloaded it and the moment he contacted you ? That doesn't seem very reliable.

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

          I have used File Input/output (freopen) in my manual submissions.does this affect my result while you use a batch to run ? by the way,after send my feedback request,i go out to have my dinner .....So i send my source codes a period of time later...does this affect?My source codes can finish tasks in several seconds,but the mail time is not following closely to the download time.

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

      How to email to you my solution for task Autocomplete? The download process for me took more than 6 minutes. I submitted feedback a few hours ago but I didn't receive any answer!

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

      I'm interested to know how you will compile and run the manual submissions for the last problem. Will you use the default stack size or you will increase it? Will you use the C++ optimizer or no? In all cases, it will be totally unfair, because many contestants failed to submit the correct output because they couldn't increase the stack size. And if you are going to keep the default stack size, what if who sent the solution manually was aware of this and prepared his machine to run with a large stack?

      I wasn't affected by the stack size issue, and I wasn't affected by the the large inputs. And I might be qualified by just 60 points, but I believe this round should be canceled and make another one next week or so. I don't see any way to make it a fair round.

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

        We're using a large stack, and I agree that this may give a few people points they otherwise would not have received. We'll be using the 500th place cutoff before considering manual submissions (should they be different), so anybody who would have qualified before considering manual submissions will still qualify.

        I don't think this should be a huge concern to the eventual top 100 who will advance from Round 2. If there is anybody who did not legitimately succeed in Round 1, their chances of ending up in the top 100 in Round 2 are extremely slim (in my opinion). That said, we have records of all of these manual submissions, so if any such people do make the top 100 in Round 2, we can make sure they're well audited, and we can always make provisions for a couple more advancers from Round 2.

        I know that a lot of people don't have ambitions for the top 100, but do have winning a T-shirt in mind (like me in GCJ every year). We can probably expand the range of competitors that receive T-shirts as well so nobody feels that they were beaten out of a T-shirt by some illegitimate competitor.

        I definitely don't like the situation any more than you. It's a mistake we won't repeat. Running a new round introduces a different sort of unfairness in that we've already announced the schedule, and people may have planned for it. Adjusting the schedule would be unfair to anybody who would be unable to compete in a make-up round. Another alternative is tossing Round 1 and advancing everybody to Round 2, but that's just more false positives.

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

          Good. I agree that this is the right thing to do at this point.

          Any estimate on when the results will be up?

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

          Do you plan to give T-shirts for top500 + top500 after excluding people with manual submissions?
          And, anyway, it would be great to know stats about how much people got AC with manual submissions(and got 75+ pts).

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

            There are about 725 competitors going to Round 2. I would estimate that we added about 100 ACs to Autocomplete, and about 40 for Corporate Gifting. The number of people that advanced only after considering their manual submissions is probably around 50-70.

            We're increasing the number of T-shirts for Round 2 to 550 so nobody should feel that they failed to get a T-shirt because of somebody who sent manual submissions.

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

              First of all, thank you for the problemset — it was good yet not ideal.

              Secondly, if rules already changed so many times (more T-shirts, more advancers to the next round, manual submissions), why not to change it one more time and set manual cut-off to be equal to number < 75 points? Let's say, 40 points — then in total only 1944 contestants will advance.

              Such decision will have several advantages:

              • No more complaints about Stack Overflow issues.
              • No more complaints about manual submissions.
              • Several strong competitors who were finalists in previous year will advance.
              • Stronger competition for T-shirts — if there will be 550 T-shirts and now 731 person advanced, then there's basically no competition for T-shirts at all, right? No competition leads no motivation.
              • Facebook Hacker Cup gets more popularity because so many people will not be annoyed by unfairness.

              Anyways, emails with final results were still not sent out so there's still possibility to make a lot of people happier and make competition more fair.

              Thank you for the attention.

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

              Hi Wesley, Just wanted to check if you guys had a chance to look into the logistics of the T-shirts yet. I didn't make it to round 3 but I qualified to win a T-shirt (a first for me!) and I am a bit too excited about it! :P

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

    It was unfair, I spent almost 20 minutes to download the input file, close to 1 minute to open the file plus running time of my code, resulting in a Time Exceeded.

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

Открыл Б. Получил stack overflow на тесте жури. Не смог исправить. Обида.

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

    Для С++ (g++) под виндой (под линуксами размер стэка не ограничивается отдельно, насколько мне известно) можно изменить ограничение на стэк можно путём добавления следующего ключа (цифра лепится в байтах по желанию): -Wl,--stack,9001

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

what is the time limit of the questions in the contest? I am not talking about the duration of the contest, but the time limit of every problem.

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

Не смог найти в правилах. Можно ли использовать заранее написанный шаблон для решения задач и прочий pre-written код?

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

<бабах>

Кто-то знает почему изменение соответствующей строки в advanced настройках при создании таски в CHelper не увеличивает размер стека? Т_Т

</бабах>

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

What is the time limit of the questions in the contest? And i am not talking about the duration of the contest, but the time limit of the problems.

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

I have solved the second question. I want to download the input file , BUT my internet connection is poor. I'm afraid that the 6 min time limit will pass before i get to download the input file. its about 20 Meg.

Not Fair :(

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

Remove all expired time and change 6 min to 15 min ;)

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

Facebook should know that internet speed is not good in many countries. I heard that many coder got timeout but couldn't finish downloading the inputs. This is totally unfair.

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

    Actually, in my case, I had to solve at mid night because of downloading the input =))

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

    Locally solved all 4 questions, but could submit only solutions of problem 1 and 3. Due to huge sizes of input files of problem 2 (12.4 MB) and 4 (18 MB), the 6 minute timer expired for ever in downloading of input file itself and hence I couldn't upload the solutions and output files. (can't say if they are actually correct before system testing)

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

I passed to Round 1, I solved the first problem, but lost the submission time. I'm a loser, I already know :( . The next year I hope to be more preparated for this event.

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

Sorry.

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

As it has been mentioned already, an input file for one of the problems is almost 20 MB in size. I find this unfortunate, as this puts contestants with slow Internet access at a significant disadvantage (and there are many people with slow Internet access, for some of them, downloading a 20 MB file will take much more than 6 minutes).

Unlike Facebook, Google seems to have considered the problem of slow connections, so input files in Code Jam never exceed 200 KB in size (their problem preparation guide is worth reading). If they need to supply a large input, they generate it using a PRNG, as in this problem.

A suggested alternative approach is to let the contestants download input files in advance in password-protected archives and then provide the passwords instead of input files. This approach is used by IPSC, for example.

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

Скажите, люди добрые, как лечить переполнение стека на g++ на ubuntu?

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

My god! I nearly had a heart attack!

I coded a solution, checked it locally, and it worked OK with the small cases. So then I proceeded to download the input file. When I ran it, my program crashed. "Damn! What's wrong!?" I thought. I immediately realized it was the stack size on my local compiler, which was too small. Then I rushed to Google and searched for a way to increase the stack size. I tried one, it didn't work. I kept on searching, found another one, tried it..... didn't work. Only 1:30 mins left by that time, I was getting really desperate. Finally, with less than a minute left, I found another linker option, tried it out and it miraculously worked! I submitted the problem with only 40 seconds left. Now I know the next time I have to try out the bigger cases as well before downloading the input file.

Let's hope it was not all in vain and I get correct answer for that problem!

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

Странная система... зафейлил одну задачу, смотришь в топ500 все со 100 баллами и дорешиваешь остальные в надежде что большая часть из них сфейлится(

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

Will I get WA if I use file input/output?

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

When will see results? Right after round ending?

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

Может, пусть, пока не поздно, они добавят хоть одну задачу не со второго дива, чтоб можно было нормально отобрать? Как вы считаете, друзья? Наверняка, некоторые из вас знают оргов лично)

UPD Второй див, не минусуйте, плз.

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

some people might love the 6 minutes timer kind of submissions, until unless they come across situation like: Download inputs -> run the code -> minor bug -> correct it(while praying timer doesn't goes off) -> again run the code -> HURRAY correct output -> try to submit -> KABOOM...Timer expired (few second back) :(

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

    When I downloaded input for last problem and run it I got Stack Overflow error and spent a some time searching how to increase it in Java, and then there were some errors with stack size >= 256 Mb, but luckily it worked with 128 Mb and I did submit it 10 secs before time expired :)

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

BTW, It would be cool to see in scoreboard problems failed due to time limit to better understand current situation, wouldn't it?

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

Guys, how did you solve 4th problem?

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

закончилось! как решать четвертую?

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

    Главное доказать, что если какой-то работник выбрал подарок номер k, это означает, что в графе не меньше, чем 2k вершин. Это понятно, потому что если он выбрал подарок номер k, это означает, что он не мог выбрать подарок с меньшим номером, а значит, его подчинённые или начальник уже выбрали номера с 1 по k - 1, а это значит, что, по индукционному предположению, в графе есть как минимум 1 + 2 + 22 + ... + 2k - 1 + 1 вершина.

    И это замечание позволяет решать задачу за n·log(n) динамикой по дереву.

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

    А можно просто считать динамику по поддеревьям, которая возвращает два лучших (по стоимости) цвета сына. Чтобы ее пересчитывать, мне пришлось воспользоваться персистентным деревом отрезков. Код.

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

      Возможно, я набагал, но мне не пришлось использовать дерево отрезков. Код

      Для каждой вершины сортируем потомков, что занимает сумму степеней вершин на их логарифмы. Поскольку логарифмы <= log N, а сумма степеней вершин — O(n), суммарное время O(n log n).

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

        Я понимал, что можно сделать и так. Но при этом мне показалось, что получится много случаев, а дерево отрезков я напишу быстрее и без багов:)

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

      Так и я вычислял два лучших номера (точнее, я сохранял лучший номер и две лучших величины). С этим каждая вершина вычисляется за O(log(n)) + O(количество сыновей вершины), безо всяких деревьев.

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

        А зачем тут O(log(n))? Разве не просто за O(кол-во сыновей)?Ведь оптимальные два номера вершины явно не больше чем число сыновей+2. Тогда и суммируется в O(n), а не O(n log(n)).

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

          Действительно. Но я об этом не подумал и считал ответ для всех подарков от 1 до log(n) и находил два оптимальных из них, так как O(n log(n)) было вполне достаточно.

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

What is the solution of 40pt problem? I could not get it may be because not solved too much graph problems. Have surrounded around bfs/dfs, types of tress , and vertex coloring but could not come up with solution. All idea were wrong I think. And I think only one who solved all 4 problems will reach 2nd round.Congratulations to them.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится
This process will take a while, so we won't be showing the results of the contest for at least another day or so.

https://www.facebook.com/hackercup/posts/901120689920120

Мда.

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

    а кто-нибудь понимает, почему нельзя было сразу сверять ответы, а результаты показать сразу по завершению тура? если проблема в читерах, то почему бы их не отлавливать после предварительных результатов?

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

      Там написано, что они руками тестируют решения тех, кто не мог загрузить большой инпут.

      И хотят показать результаты сразу для всех.

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

Irrelevant, I wrongly assumed that large files are the same.

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

Note to self: 1<<20 is smaller than 1e7.

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

What is the answer for the 3rd problem's input: 1-0

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

Why thinking bottom-up is so much harder than recursive DP :(

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

Almost 1000 people answered all four problems.... looks like you can't make any single mistake in order to go to the next round...

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

    Last years showed near 50 percent wrong submission and two any problems were enough.

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

    Submitted on != answered correctly.

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

      I know... but given that there are 1000 people...

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

        If only 499 don't fail on at least one of the 25pt problems, 75 will be enough to go to the next round.

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

          In my opinion, the sample tests for the two 25pt problems seem pretty strong. Especially the last test case for the third problem. Also, the Trie and DP implementations seems pretty standard as well. I don't think the fail rates would be high for these two problems.

          I guess most failed submissions would be on the last problem because of the weak samples and more corner cases. But I still wonder the fail rate could reach 40 to 50%....

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

            One test: 1-0.

            I found that one when I manually tested my solutions (strategy) and I think a lot of DPs can fail on it.

            Autocomplete doesn't have a truly large test and, while the samples warn about one word being a prefix of another, they're not that strong. It will probably have a higer AC rate (discounting possible download fails), but failing it means losing as many points as when failing Sports, further increasing the number of people with exactly 75 points.

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

              I also thought about this testcase. It's both stressful and stressfree, right?

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

              Eh, it's kinda bad if the difference between passing into Round 2 or not is in handling that corner case, to be honest, it could be included in sample tests.

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

                You have 24 hours and are free to use them however you want. I tested my solutions manually, using bruteforces, checked if they don't fail on large random tests etc. It's about an hour or two more, but finding that missing case was worth it. At this point, anyone can pass as long as they deserve it (can solve the problems) and aren't careless.

                (If you don't have the time — that's your choice of time management.)

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

                  Nothing about the format selecting people basically based on how much time they had available, then?

                  I thought you were the guy complaining about how topcoder was supposed to be more about thinking and less about avoiding dumb mistakes.

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

                  There's a HUGE difference between 1.25 hour and 24 hour contests.

                  You don't see me complaining about tight time limits or this troll problem (find the missing piece of information) in Codechef Long contests. It's the same thing — there's a place for everything. Just as short contests aren't the place for overly technical problems or little given info, long contests aren't a place for no hard problems.

                  Just imagine that you assign a score to each contest — the chance of getting a good result. That chance depends on the quality of samples, syllabus, feedback, the problems' intended difficulty distribution, name what you want — but also contest duration. You can't cast judgement without taking into account a lot of these things, and that's what I did in my recent rant against the recent low success rates of TC problems.

                  Tl;dr if SRMs were 5 hour long, I would shut up.

                  UPD: And no, "I don't have enough time because I'm doing something else" is not a valid complaint, since you got something out of doing that something else. There were like, 3.5 hours intersecting with other programming competitions (1.5 out of which was the Cookoff server crashes).

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

                  Well I ain't saying that it's okay to make mistakes like one I mentioned, but sometimes you just skip that corner case, by accident(it surely happened to you a lot of times, maybe before you became that good), the pass to Round 2 shouldn't be that hard achievement, and some really silly mistake can take it away from you, if the 0-case got included into pretests, everyone with correct C solution would have all the points required, like in D task, they included the test where bottom-up strategy didn't work and it prevented a lot of possible wrong answers.

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

                  If you notice, I actually started out saying that many people failing this could get them and more people to round 2, since 75 points (for example) would be sufficient. We don't know the results yet; it would seem that I have a full score, but I can still fail and... well, I did my reasonable best (I checked my solutions a lot, but didn't spend the whole 24 hours on it), but there's still a possibility of failure to deal with and it's kind of silly to attribute it to thinking "it's just round 1, it will be easy to pass". Last year, user:WJMZBMR failed the qualification due to trying just one problem and getting it wrong. That's also negligence.

                  We get such lessons sometimes.

                  And 500 isn't much, that's like passing from GCJ round 2. Except there are time tiebreakers there (and the problems are harder).

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

              According to you, what should be the correct answer for this testcase should it be 1-1 or 1-0.

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

      I'm guessing that many people will fail on C and some will fail on D. It seems hard to fail on A or B. I'm not sure if 75 points will be enough to qualify; I'm curious to find out.

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

Please note that we will not accept any manual judging requests after the round has ended.

How did some contestants guess that they should submit their code for manual judging?

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

    There was a notification for majority of the round:

    If you're having trouble downloading the input for Autocomplete or Corporate Gifting in 6 minutes, please submit a feedback request by clicking "Give Feedback" at the bottom of any problem page.

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

      "Feedback request" doesn't mean "manual judging". In particular, it doesn't say anything about submitting just the code, which is the main problem here.

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

        I assume that this meant, please write to us and then we will explain to you what to do. If they made a public announcement "if you had problems, please send your code to this e-mail", I fear that they would receive enormous amount of non-legitimate submissions, which would have taken ages to process correctly.

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

          Yes, that's possible, and could be the answer to Rubanenko's question. Under "manual judging", I imagined just submitting the code without the output, since judging these could be made a lot more automated than a few admins answering a lot of mails.

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

Послушайте историю невероятного успеха/провала (нужное подчеркнуть).

Решил я 4 задачу. Написал решение, проверил на тестах из условия, ещё потестил, внимательно перечитал код. И решил посылать. Скачал тест (всем известных проблем у меня не возникло, так как интернет у меня быстрый). Запускаю своё решение — и оно валится! Я покрываюсь испариной и начинаю искать баг. Как ни странно, баг нашёл, программа валилась на создании массива векторов vector <int> son[n] (кстати, что в этом плохого?). Я заменил на vector < vector<int> > son(n, vector<int>(0)); и за 40 секунд до конца всё заработало. Я возликовал и вставил нужные окошки output file и source file. И тут мне пришлось в голову, что надо проверить, работает ли исправленная программа на примере из условия. Зачем? Ведь, во-первых, этот фикс не мог ничего испортить, а во-вторых, я бы всё равно не успел ничего исправить. Но я привык перепроверять работоспособность программы после любых изменений, даже если очевидно, что точно ничего не могло испортится. Я стал создавать другой тестовый файлик, и когда создал, посмотрел на страницу. Оставалось 2 секунды! Я в панике схатил тачпад и потянулся к кнопке "послать" и даже нажал на неё, но было уже поздно — было написано time expired.

Некоторое время я бился головой об стол. Затем посмотрел на страницу результатов, и увидел там у себя галочку. Потом посмотрел на страницу с задачей. Там всё ещё было написано "time expired", но и "Last valid submission at * ago" тоже было написано.

Я замешательстве.

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

i have sent a clarification due to submit issue in last 10 minutes but no answer tell now?!!

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

Let's judge our solutions in Facebook Hacker Cup 2015 — round 1: http://codeforces.me/blog/entry/15864

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

It will be a long day at Menlo Park. :)

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

Last problem is same as one of the boi 2003 problems. I assume you expected few accepted from last problem since it was the hardest one.

By the way why limit of N is 200000. Anybody get hurts if it was 50000 or something? You could have get rid of 20MB issue.

What I am trying to say is from my point of view Facebook hacker cup is the worst online competition I participated in this year. I have never encountered interesting problems, just technical situations!

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

    Except from looking at the solution, the expected solution at BOI (Baltic OI, for the reference) 2003 was O(N^2). Which eliminates the need for understanding that you can limit the numbers you are using, which is exactly what makes the task interesting and challenging, in my opinion. Also I highly doubt that a lot of people knew exactly the same statement was used there (I didn't, and it was from my region, although before I competed). Including the organizers. Coming up independently with exactly the same task isn't too difficult.

    As for N = 50000, I believe O(N^2) could pass with these restrictions.

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

      You are wrong. Just because constraint of N is 10000 you can not say expected solution was O(N^2). You are judging like in 2003 we had same computers. 10 years ago computers were much more slow. Also official solution of the problem is O(N).

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

        All I can see regarding the solutions for BOI 2003 is the archive from the former Lithuanian IO website. My claim that the intended solution is O(N^2) was from the fact that there is a quadratic array and I assumed was used for DP. I was wrong. Inside it is a "solution" for the task, which uses constraint <= 1000, stores the graph in O(N^2) memory and assumes we won't use number greater than 3, which is incorrect. I have no idea about the origins of this archive, it looks like it's rather unofficial but I cannot find anything else. Still, to do a quadratic DP, we actually need to store all of the values, and they had only 64 MB of memory, so yeah, likely not O(N^2).

        I claim that you're also possibly wrong, though. For O(N), the restriction is way too small (they had N <= 10^6 restriction in one of the other tasks). If you can show any proof that the official solution of that problem was O(N), please kindly do so. I believe it was O(N log N), in this case.

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

          As tom pointed out upper bound of colors is not log N it's 5. So we can assume it as constant factor. Official solution uses 3 colors too. So why do you think complexity of solution is O(N log N). It is obviously O(N).

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

            If the problem in BOI is exactly the same, for my input of FBHC the results changed when I increased the number of colors until 20 (e.g between results using 5 or 6 colors, 6 and 7 colors, and so on), some other people needed 15. So I think around 20-25 should be the minimum number of colors to be sure it is correct, which is approximately to log2(200000). Also a friend found a thesis manuscript about the subject proving that it was O(lg n), I'll try to find it to link it here.

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

              It's obvious that log n is enough. But I'm not sure it is necessary. Is there a proof that we need at least log n colors?

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

                Unfortunately I cannot find the paper I mentioned, but if 3 colors were enough for the other contest with lower limits and at least 15 are needed for this one with higher limits then the number of colors seem to depend on N and not be constant, but I am not sure how to prove the exact growth rate.

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

                One obviously can construct an example where k colors are required for any given k. Just start from 1, and on the k'th step attach lots of constructions for k - 1, k - 2, ..., 1 to a new vertex.

                Besides, your arguments like "As flashion pointed out upper bound of colors is not log N it's 5. So we can assume it as constant factor" are ridiculous. It almost seems like you have no idea what is a rigorous mathematical proof.

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

            Let me translate what you said:

            "As tom pointed out, on his input data his answer doesn't change if he uses only 5 colors. So we can assume that if we have N vertices, amount of colors used is O(1)".

            I'm not sure if there's any point in continuing this if you're making arguments like that. Also you keep mentioning official solution without ever providing a link to one. Writing "obviously" doesn't make one right.

            I'm not saying that you're wrong, I can imagine that the actual bound might be different, but you need to provide valid argumentation for your points, otherwise this whole conversation is a complete waste of time.

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

              Here is link to the solutions Link There is no proof tough.

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

                No, this is an archive (which I have posted a few comments ago *), and as I mentioned a few comments ago *, this archive doesn't look like an official solution, since its author is a Lithuanian (whether BOI 2003 was organized by Estonia, perhaps things have changed recently, but as far as I know (and I was on the organizing team of BOI 2012) other countries submit tasks only, whether actual task selection, test generation and solution implementation are left to the organizing country). He also participated in online contest of BOI 2003 and scored 0 on this task.

                (*) Are you even reading replies to your comments?

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

            Imagine you have n trees that you need 1<= i <= n : i colors for painting those trees with min cost.

            Lets form the tree with n+1 colors with min cost:

            You get the root node.

            you will connect to it ((n+1)+1) nodes with cost 1,

            You will connect to it ((n+1)/2+1) nodes with cost 2. ... you will connect to the root: ((n+1)/i+1) nodes of min cost:

            The root will have n different colors connected to it. So the root need to be painted of the color n+1.

            What about try to swap colors? You can figure out that is is more expensive. With this I conclude that you may need variable colors for painting the tree with min cost. I haven't prove that you need lg n colors. A friend did research and found an algorithm O(n) in time but anyway you need variable colors for painting it with min cost.

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

    It was also given at CERC 2 months ago as a problem on testing session. And its significantly harder version was present in snarknews new year's contests (problems -> http://newyear.snarknews.info/files/2014/prob_p.pdf ) (that fact implies also that this was given on some Russian ACM-ICPC style contest)

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

I've added the round to the Gym: 2015 Facebook Hacker Cup, Round 1. Feel free to submit your contest solutions in practice mode to get expected verdict right now.

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

For problem 4, this paper explains a simple O(n) algorithm — http://www.public.asu.edu/~halla/papers/OCCPWG96.ps

My implementation — http://codeforces.me/gym/100579/submission/9468814

This problem on uva is pretty similar http://uva.onlinejudge.org/external/113/11307.html

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

Problem #3 is a problem dating back to ~1880, with a very short closed solution:

"In combinatorics, Bertrand's ballot problem is the question: In an election where candidate A receives p votes and candidate B receives q votes with p > q, what is the probability that A will be strictly ahead of B throughout the count?"

http://en.wikipedia.org/wiki/Bertrand%27s_ballot_theorem

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

Solution to problem 4 was dp + dfs.

Here is mine accepted solution of it in codeforces gym. http://codeforces.me/gym/100579/submission/9474632

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

In the 3rd problem "WinningSports" for the case of x-0 the number of stress-free win should be 1 and stressful win should be 0 or both should be 1.

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

... Then, Do you think that 60 points is enough to advance to Round 2?

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

Guys... ranking has been changing... I hope it's final migration of manual submissions

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

Интересно, а как квалифицируется попытка послать source code у людей, которые не успели скачать тест за шесть минут, если программа работает правильно, но 5 минут 55 секунд?...

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

UPD: While 500th place got 100 points, if manual submissions are omitted, 500th place have 75 points, so as promised by organizers, the cutoff will be 75 points. It's a reasonable cutoff, allowing contestants to fail one of three easier tasks, so my original comment below is a rant about what could've happened. Still, I'd like to organizers to remember that in the future, to avoid having rounds with cutoff of full score, as it would've happened if not for the whole saga with 20 MB inputs.

Since there are now 1140 people with pending 100 points, I believe the most likely scenario is that the cutoff will be 100 points — I don't believe there is a case so tricky that more than half of the people will fail something. Don't really think that even selecting top 500 before adding manual submission will help the issue here. In case it's miraculously not 100, everything said below is irrelevant and I apologize. I also apologize for technically speculating on the cutoff, however I believe that it's the most likely scenario and would like to express my opinion before official results are released, especially since the organizers are reading Codeforces.

The cutoff of 100 means that the organizers screwed up big time and turned this round 1 into "whoever doesn't make a silly mistake" contest. With that in might, I find the organizers claim:

"I don't think this should be a huge concern to the eventual top 100 who will advance from Round 2. If there is anybody who did not legitimately succeed in Round 1, their chances of ending up in the top 100 in Round 2 are extremely slim (in my opinion)".

rather hilarious. Yep, guys, if you made one tiny mistake in one of the four tasks (and keep in mind, this is not Code Jam, where you at least can be semi confident in your code by small test case), your chances of getting to top 100 are extremely slim in their opinion. Setting aside all input data size disaster, I believe the organizers should admit that they screw up qualification round, potentially eliminating lots of strong candidates in early round and at least set the cutoff to 61, essentially allowing people to go through with bugs in A and (B or C).

Before comments claiming I'm just rage posting start to flow in, just want to mention that I myself am passing all the tests at Codeforces, so I expect to get a 100. Which doesn't eliminate my opinion above that this round failed to fairly select 500 participants. Some people were worried even before the round due to the format, however last year Round 1 didn't suffer from any of these problems and distribution was really fair despite it being 48 hours, so I still believe it's possible to have a fair elimination round with this format, it's just difficult to pull it off.

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

    In this case I will be a saaaad panda with 90 pts.

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

    You were heard. :)

    "The manual submissions have all been entered, so the scoreboard now shows the pre-judging results. Before the manual submissions, 500th place had 75 points. But afterwards, the top 500 all had 100 points! In the interests of maximal fairness, we'll be using the pre-manual submissions cutoff of 75 points for advancement. We'll be revealing the judged solutions in about an hour, so stay tuned!"

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

      Well, they promised that they'll use pre-manual submissions cut-off beforehand. So yeah, cut-off ended up being reasonable purely because of the problems with downloading times. In essence, they avoided a fail by having another fail.

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

        We were hoping for a cutoff of 60 or 75 when we made the problem set, so we definitely misjudged the difficulty of the set. Last year I think the cutoff ended up being 40 so I guess we overcorrected. Let's call it binary search :)

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

    it's possible to have a fair elimination round with this format, it's just difficult to pull it off.

    And you'd think someone who showed clear inexperience would pick one of the "reasonably easy to get right" format options... This is just asking for trouble.

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

    While you do have a point, overall your comment is way too aggressive IMO. I understand that one can be very frustrated because of some troubles with a contest (I myself did such a mistakew in the past, aggressively criticizing contest because of some issues, and then re-reading my own comments and being ashamed of them), but try to put yourself in the shoes of organizers: they've spent lots of their time preparing the contest, and now participants post comments like this one. It must be very demotivating.

    IMO the critics should be mild and constructive. This time, there were two issues:

    • Large inputs. I wouldn't even blame FBHC organizers for this: if you look at recent products build in Bay Area, most of them suffer from this problem (i.e. they're not slow-connection-friendly). I think the whole industry would benefit a lot if there is a mandatory "dial-up day" in the whole Bay Area once per month :) With bandwidth 56Kbits/s for everyone, so that developers experience their glorious creations over slow connection.

    • Round structure: 24h, cutoff is the score of the 500th person => tiny mistake leads to failure. Indeed this was pointed out before the contest, and indeed many strong participants and finalists of the previous years did not advance (e.g. niyaznigmatul, Jacob). Yes, this was a mistake, and people should learn from such mistakes. But stating something like "organizers claims are hilarious" is a bit too much IMO — we should be respectful to organizers.

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

      I have tried to be fair and did not make claims that it was "worst online competition" as some people did in this thread. As I mentioned in the beginning, I no longer have such a strong view of the situation, since the situation would be much worse than if the cutoff would have been 100 points.

      Still, I have the same position on that quote, and I can't really see anything disrespectful in pointing out that their claim was hilarious. I rather find it disrespectful from the organizers to release this quote under any circumstances with or without imo clause. In this particular case, when the task selection was inappropriate for the purpose under the given format, I found this quote to be funny as well, since it was clear that some really strong participant would be applicable to this (when at least D was definitely going to be mandatory). So, turns out that wjomlex made an indirect statement that ACRush and niyaznigmatul in his opinion have extremely slim chances of getting into top 100. Which is obviously not true, and obviously wjomlex wouldn't ever made this statement in this form. This is why one needs to be careful about what he says and how it can be interpreted before publishing it, especially if he represents one of the biggest programming competitions in the world.

      And I didn't blame organizers for large inputs, since I can understand that this issue might be completely overlooked by accident. Not thinking about the fact the given problemset might quite possibly be solved completely by more than 500 people is much less understandable. I haven't also heard any apologies or reflections on problemset or format in the end. For all we know, the organizers might think that the problemset was reasonable under this format.

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

        Ah, I think my comment was misconstrued. For ease, let me repeat it here:

        "If there is anybody who did not legitimately succeed in Round 1, their chances of ending up in the top 100 in Round 2 are extremely slim (in my opinion)."

        By "did not legitimately succeed", I mean anybody that managed to get into Round 2 because their manual submission was accepted even when they wouldn't have succeeded themselves under normal circumstances. As people have pointed out, there are likely a few manual submissions that would have not been ACs because of stack overflows if we weren't handling them.

        I definitely didn't mean "anybody who failed to advance to Round 1 would definitely have no chance advancing from Round 2". That would be silly. I've been in this situation before when I failed to advance from Round 1 of Hacker Cup because I was modding by 0xfaceb00c as an integer, and not as a long :P

        As mentioned in a comment above, we did overestimate the difficulty. We were aiming for 60 or 75 to be the cutoff. Would we have adjusted the cutoff if everything went well and >= 500 people scored 100? That's tricky. On one hand, following the rules seems decent. But I'm pretty consequentialist, and I think that lowering the cutoff to 75 anyways would be a better plan in such a situation.

        60 was definitely the cutoff I was rooting for before we started. This was my first time helping build a problem set for a 24-hour round and I think we ended up with something that would have been pretty decent in a 3-hour round, so now I'm better calibrated on this front.

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

          Thank you for your clarification. I do get what you meant now and it indeed makes sense. I apologize if I offended you due to my misinterpretation of your quote.

          In any case, one of the solutions I suggest if you want to keep 24h rounds in the future is to adopt Code Jam's approach to long rounds and avoid selection by rank and just define the cutoff yourselves, stating that everyone who gets X points advances to Round 2.

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

          I can easily see a very good coder using the loophole to fix the stack overflow, so I still don't agree 100% with the quote. But as Swistakk pointed out below, you handled this issue in the best way possible, so that was a positive point.

          I think for the ideal cutoff you would need 3 problems to pass (so A+B wouldn't pass, but A+B+C would, and D is there for some buffer room). One of the issues was that you picked easy problems, but the biggest problem is that you picked a format which does not allow you to misjudge the difficulty. Hopefully we'll see some improvements in that front next year.

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

Daaaaaamn. Cutoff is 75 ;____;. I'm so sad :<.

That problemset was too easy to fairly choose 500 people :(.

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

    Fully agreed. A textbook trie exercise (I can't even call that a problem), followed by an amazingly obvious DP.

    How did they think this would work to select 500 people? Just look at the problemset for Code Jam Round 2, which was a lot harder to select the same amount of people with a much smaller duration.

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

      Maybe this problem set is easy for you but I see a lot of people failing the first try of few problems here

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

      registei ca só pra dizer que vc ta falando MULEKADA. Fácil pra vc, não para milhares de pessoas.. Seja mas HUMILDE quando FALAR em PUBLICO...

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

        It's obvious that people that didn't train for these kinds of contests would not find the problems easy. I did not mean to imply otherwise.

        However, precisely because difficulty is such a relative term, it needs to be properly calibrated for the event in question. You wouldn't use the same standards to select members for the running team in your school and to select runners for the Olympics. Similarly, a round that proposes to select only 500 people from the whole world and in which more than 500 solved all problems is definitely too easy. My and your relative skills have nothing to do with that.

        Now that you found this awesome website, maybe you can train harder for Hacker Cup 2016? :)

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

    At least I am not sad at all, because for me it means just losing a t-shirt:)

    But still it looks like organizers screw up this time. Lot of guys who usually participate in onsite rounds of such competitions — haven't qualified at all.

    And GCJ looks much better in picking top-contestants for late rounds, comparing with this edition of FHC. FHC don't have to copy GCJ contest rules, but maybe they should look for some ideas there. I don't know actual goals of FHC. On the one hand, good performance can give additional motivation for beginners, increase popularity of competitive programming and so on. On the other hand, I don't think that they really want to see some random folks in next round, instead of Endagorion, ACRush, niyaznigmatul...

    I think they should provide some "not div2" problems next year (at least like last year... or maybe even a bit harder; not just 4 textbook exercises), if they want stronger field in Round 2. Last year netkuba got 55 points in round 1 (failed both B and C) and later got #18 at Finals; niyaznigmatul was #4 in Final round with 55 points in round 1 (only A and D submitted). RAVEman got 7th place in Final with only 40 points in Round 1 (A and C; failed B and D). andrewzta is ranked 6th in Final with 60 points in Round 1 (B and D; failed A and C).

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

      Best algorithm for goal "picking top-contestants for late rounds":

      sort(contestants.begin(), contestants.end(),
        [] (const Contestant& lhs, const Contestant& rhs)
          { return lhs.rating > rhs.rating; });
      
»
12 лет назад, скрыть # |
 
Проголосовать: нравится +111 Проголосовать: не нравится

The only good thing so far about FB Hacker Cup is that it has shown us to appreciate Code Jam.

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

Apparently, in the first problem, a lot of people decided to combine 2 steps of "finding primes" and "use them to calculate the number of prime divisors for every number" into a single step by using the same approach as in Sieve of Eratosthenes and forgot that unlike in sieve we do need to consider primes greater than sqrt(N) in the second step.

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

The manual submissions weren't fair at all. There are people who claimed they didn't have time to submit in the feeback form when, in truth, they suffered from stack overflow and modified the solution before sending it by email, while other people resigned themselves with this and didn't cheat. I don't think Facebook had the means to check whether such a feedback form was a valid complaint or a scam. At least they tried to compensate by taking the pre-manual-submissions cutoff, otherwise I'd call this entire round a joke.

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

    True, but anyone who went to Round 2 like that won't get t-shirt or advance even more, so nothing bad happens, and they even set the number of points to advance without manual submissions, so noone gets anything bad because of the manual submissions, right?

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

      There are people in the top 500 who have pulled this off and will get a T-shirt. And advancing to round 2 is a reward in and of itself, which has been denied to some and granted unfairly to others.

      EDIT: My bad, I now understand that the top 500 people in round 2 will receive T-shirts. Still, my second argument holds.

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

    Once bad stuff happened, what they did with that mess was pretty wise. Taking premanual cutoff was a very good decision.

»
12 лет назад, скрыть # |
← Rev. 4  
Проголосовать: нравится +46 Проголосовать: не нравится
In all cases, it will be totally unfair, because many contestants failed to submit the correct output because they couldn't increase the stack size. 
Открыл Б. Получил stack overflow на тесте жури. Не смог исправить. Обида.
yes the same for me; my timer expired because I couldn't fix that damned stack overflow error in time! This is completely UNFAIR!!

Ребята, вы серьезно? Это же соревнование по программированию, а не по математике. "Поставить стек побольше" -- нормальная процедура, ничего сверхъестевтенного.

Можно было же локально потестить, ограничения дали.

Можно было за 6 минут гуглануть и тыкнуть.

Зато теперь многие знают, как работает ulimit, какие макросы надо писать в вижаке и как его менять в Джаве. Пользы явно больше, чем гипотетическая футболка.

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

    С++-онисты могли не сразу догадаться, что падает из-за stack overflow (пример — Jacob), Javaи (даже при том, что джава пишет, в чём именно проблема) тоже могли не справиться с проблемой. И это примеры очень опытных и умных участников.

    Честным решением было бы сделать cutoff = (первая задача) + (третья задача) (т.е. не затронутые большими файлами), но видимо организаторы не хотели толпу зергов во 2ом туре.

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

Как обычно, FHC не смог не оказаться саксом и пройти без косяков.

Я по D не успел за 6 минут даже инпут загрузить (компании, претендующей на лидерство в IT, сложно было догадаться зипник приложить?), написал им, мне ответили — отправьте что есть туда-то, мы подгрузим в табличку результаты тестирования решения. Отправил. Конечно же, ничего не подгрузили, на мои комментарии не отреагировали. Получи чувак -40 баллов и иди в ж..у, если у тебя интернет медленный. Ну, спасибо, учтем-с на будущее.

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

    Мне кажется, можно было этот комментарий написать и на английском, учитывая, что в этом топике есть представитель FB, который отвечает на вопросы, извиняется за ситуацию и выше уже отписывался на подобные заявления, что "мой клар проигнорили", там выяснилось, что товарищ забыл прочитать ответ. А так просто грязью полить, в чем смысл?