Adibov's blog

By Adibov, history, 6 years ago, In English

Hello there :)

In past contest(Codeforces Round #519 by Botan Investments) in Problem D i wanted to hack a solution and i wrote a code that make a text file and when i submitted that file, I found that it can't be more than 256 KB so i wrote this (My code) code for generating test and i get this error Validator 'validator.exe' returns exit code 3 [FAIL Expected EOLN (stdin)]. I don't have any idea what is it, so could you help me?

  • Vote: I like it
  • +9
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it +9 Vote: I do not like it

You must follow the input format very strictly, for example, not putting spaces to the end of the line and ending the testcase with a newline.

  • »
    »
    6 years ago, # ^ |
      Vote: I like it -8 Vote: I do not like it

    Thank you, i just lost 100 points by this trick. :(

    • »
      »
      »
      6 years ago, # ^ |
        Vote: I like it +16 Vote: I do not like it

      AFAIK 100 points are decreased only when a test is valid, but the hack was unsuccessful. No points are taken when you submit an incorrect test or generator.

      • »
        »
        »
        »
        6 years ago, # ^ |
          Vote: I like it +6 Vote: I do not like it

        I mean if i knew this trick i could get 2 successful hacking attempt.