APL (Dyalog Unicode), 33 32 bytesSBCS
{h⍵+1 0}+h←(⊢≡31 30|⊢)×21 2∨.≥-\
in: a pair in descending order
out: 2=ongoing, 1=ended, 0=invalid
tests stolen from Adám's answer
{h⍵+1 0}+h←(⊢≡31 30|⊢)×21 2∨.≥-\
in: a pair in descending order
out: 2=ongoing, 1=ended, 0=invalid
tests stolen from Adám's answer