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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
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.