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!
# | User | Rating |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
Name |
---|
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
Thank you very much for explaining!
Welcome
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.
You can check it after the contest is over Open the contest and choose Hacks tab
Or simply check your submission from your profile
Does the hacks during open hacking phase give the points too?
It's penetrating into someone else's computer.
:/
if i do not lock my code , than it is not hackable . am i right ??? or is it hackable ?? ( i am beginner )
If you dont lock your code than you cant hack other solutions, but your solution can be hacked by other participants.
tnx. but unfortunately i unliked your comment . :-(
After viewing the test case on which my code was hacked,the test case showed same output when I tried it on one of the correct solutions.Are there any other possible reasons of a code getting hacked ?
maybe your computer is working tooooooo well and it passed the data but it got a "time limit exceeded" on the judging computer of Codeforces. Just like the time limit is 1000ms, and your program ran for 950ms on your computer but failed on Codeforces' computer, maybe it ran for 1001ms on Codeforces :(
Ya it is Time Limit Exceeded Thank you so much
urwelcome
or maybe some unexpected Runtime Error or Memory Limit Exceed, etc.
What kind of contest can be hacked? It seem like it include Educational round
Div.4, Div.3 and Educational rounds include 12-hours hacking stages after the end of the contest.