davidSC's blog

By davidSC, history, 4 years ago, In English

Do you submit immediately or do you try to make some more tests / check the program more?

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

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

2-3 small cases, edge cases, and 1 to test for TLE.

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

yolo

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

If I think the logic is correct, I submit my solution. And then I get WA on pretest 2

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

Depends on the problem and how confident I am on my solution. Usually you can also do a bit of thinking about whether your solution seems intended. For example Div 2A solutions are usually very short and require some quick observation or math formula.

For harder problems if I'm even just somewhat confident I'll just submit. I tend to use Proof By AC, and it usually works. After getting any WA I debug until I find at least one case which was broken, and then fix that and resubmit.

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

after my code passes the sample cases i go to the next one

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

I get the intuition before submitting, basically if my code is too complex then i don't submit it ( i think why would setter think of such a shitty solution ) and try to reduce it to a simple solution.

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

Think some seconds about what would I do if I get WA. Then do just this for like one or two minutes. If I do not spot a bug in that time, then submit.

The "one or two minutes" is less for simple problems, more for later ones.

»
4 years ago, # |
Rev. 5   Vote: I like it -28 Vote: I do not like it
Deleted
»
4 years ago, # |
  Vote: I like it +25 Vote: I do not like it

I read the next problem

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

It depends on both the problem and the solution. If the problem was very Mathsy and the solution is a few lines I will think about edge cases first and then submit. If the problem required a lot of implementation and my solution looks too ugly I'll just submit and hope for TLE instead of WA.

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

Get WA on pretest 2.

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

I generally submit it once if logic seems fine to me. Even if my logic has no proof, it's intuitive, then I try my luck and submit it for once. If its accepted then fine, and if not, then I again try to figure out the correct logic and look for some edge values.

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

Usually I look at my friends rank list if people who are better than me are getting wrong answer then I look at corner cases,otherwise submit it.

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

If the sample cases were enough for me to solve the problem on paper, I submit immediately, else I test the code also on the cases that I'd generated on paper.

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

I do not test my code, I prove it correct.

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

I try to prove/disprove before coding, think of small edge cases while/after coding and don't submit unless I think that it should pass (sometimes I am wrong). So in case of pretests pass, I move on to next problem.

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

I look over the standings and check whether I am leading or not