Qualified's blog

By Qualified, history, 4 years ago, In English

I have been seeing this used in people's codes and wondered what are the uses of this in Competitive Programming? I am genuinely curious.

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

»
4 years ago, # |
  Vote: I like it +13 Vote: I do not like it

it forces your code to throw an exception if you have an input error. so for example, if you were reading a number up to $$$10^{18}$$$ into an int, it would cause your code to get an RTE instead of WA. it helps to figure out what's wrong when you get a WA verdict vs. an RTE.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Can you share link to the submission?