I submitted a code for problem A in Codeforces Round #645(Div 2): Here it is which passed the pretests
Then 2 minutes later I submitted another code for same problem: Here it is which also passed the pretests but my points reduced from 220 to 170 for that problem
I experienced this first time so just wanna know whether this rule is legit or not, like what if a person is not sure if the code would pass the main tests successfully or not. So he might wish to submit another code.
Please share your thoughts in the comments below