What I've learned in my first few submissions

Правка en1, от jmjatlanta, 2022-05-22 19:16:34
  • clang++ uses the main return value as the exit value. Always set it to 0. Doh!
  • Initialize variables (always a good habit). clang++ doesn't always do that for you. (Isn't that part of the standard? I guess not.)
  • Read the description carefully. Make sure you are doing what they are asking (position != score)
  • It is very possible that the example inputs pass, but the logic is wrong. Make sure your results are the answer to what is being asked. Just because the results are as expected does not mean you are done (What are the chances? Better than you think!).

Most of those items are obvious, but these are the things that make the scores non-competitive. And fixing them are easier said than done. I attempt to complete the task rapidly instead of accurately. I will continue with the 800's until I improve in those areas.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский jmjatlanta 2022-05-22 19:18:18 23 Clarification
en1 Английский jmjatlanta 2022-05-22 19:16:34 882 Initial revision (published)