jonathan-chen10's blog

By jonathan-chen10, history, 7 weeks ago, In English

Hi! I'm a rookie programmer, and I just want to try my hand at competitive coding here at Codeforces. I've read that in contests, you are supposed to "hack" other people's solutions to reveal weaknesses in their code. Does this mean coders should build their code to handle cases which may break the preconditions? For example, if the problem has pure numeric input, should users take the time to handle exceptions for non-numeric input values?

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

7 weeks ago, # |
  Vote: I like it +17 Vote: I do not like it

Hacks are required to satisfy all conditions in the statement. You don't need to worry about handling cases which don't satisfy those conditions.