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

Автор BatusaiX, 12 лет назад, По-английски

Recently I was reading the Google Code Jam 2013 Qualification Round 2013 Contest Analysis written by Onufry Wojtaszczyk and David Arthur. In the section related to the Problem C Fair and Square, they said how if you generated the Fair and Square numbers with a generator, you should also include the code of the generator in your submission.

I was kind of surprise... so I decided to re-check the rules:

"A valid submission for a problem consists of (1) the output file generated by the contestant and (2) all source code the contestant used to generate that output file."

I was wondering who else forgot to include the generator in his code?

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

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

For me, I pre-compute all 39 Fair and Square numbers inside the source code that will answer the test cases it takes only 3-4seconds.

in other word, the generator that they want us to include is inside the code that will answer the test cases.

so there is nothing to include more than this source code.

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

I removed the generator from my source code. I wasn't aware of that rule.