This is a challenge for the GURUs and well beyond me

I have a list of scores....if the competitor post two scores in a row higher than certain number they are automatically upgraded to the next grade.

example

score required to move from B grade to A grade is 580

so

two scores of 580 in aroe of better results in upgrade, however 3 scores like 580 plus 579 plus 580 does not.

to further complicate things I have three levels
A Grade 580
B Grade 566
C Grade 546

This process has been managed entirely manually up til now ...I hope to take us into the 21st century

Your thoughts would be appreciated

tks
Bill