viliml's blog

By viliml, 5 years ago, In English,

Hi! I'm new here, and I don't really understand hacks, what they are, how to hack, what to hack, who is the defender, what does he do, how to become one, etc. Simply said, I know nothing about hacks!

 
 
 
 
  • Vote: I like it  
  • -2
  • Vote: I do not like it  

»
5 years ago, # |
Rev. 3   Vote: I like it +9 Vote: I do not like it

I'm new here

Welcome to codeforces :)

what they are

hacking is to give a testcase that makes a solution to a participant fail(i.e Wrong Answer,runtime error, time limit exceeded)

who is the defender

the owner of the code that you try to hack

what does he do

he do nothing ,if his solution is absolutely correct then no one can hack his code

how to hack

On the dashboard, click the padlock icon for locking a problem (Note, that you can not send your solution for a problem after locking it). Then go to room results, where you can see roommates codes for the problems you've already locked (you can see a certain solution by double clicking on it in the room results table). After you've opened someone's solution, you can consider it and then hack it. When hacking a code, you're entering some testcase on which that code is most likely going to fail (it may be wrong answer, or running out of time/memory limit). When you want to enter a large testcase, you can send test generator instead of typing it. Test generator must be your program which produces a file with a testcase in it. After hacking a code, you can see hacking results. There are two possible outcomes: "Successful hack" — it means the code failed, and you're rewarded with 100 points for that. Otherwise, it's "Unsuccessful hack" (the code did not fail) and you get minus 50 points for that.

quoted from jskhirtladze

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

    Thank you very much for explaining!

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thankz for the Explanation got a clear understanding on what a successful hack is and what an unsuccessful hack is and got to know how can one do it in contests thanq.

  • »
    »
    21 month(s) ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    what if i want to know the test case that hack my solution is there anyway i can check it?

    thank you however. your article is really clear.

    • »
      »
      »
      21 month(s) ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      You can check it after the contest is over Open the contest and choose Hacks tab

      Or simply check your submission from your profile

»
5 years ago, # |
  Vote: I like it -22 Vote: I do not like it

It's penetrating into someone else's computer.

:/

»
13 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I Could not hack solutions for rooms other than mine ? Is it true?

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

if i do not lock my code , than it is not hackable . am i right ??? or is it hackable ?? ( i am beginner )

  • »
    »
    5 weeks ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    If you dont lock your code than you cant hack other solutions, but your solution can be hacked by other participants.