Skip to main content
2 of 2
-1
ngn
  • 15.3k
  • 2
  • 43
  • 87

APL (Dyalog Unicode), 33 32 bytesSBCS

{h⍵+1 0}+h←(⊢≡31 30|⊢)×21 2∨.≥-\

Try it online!

in: a pair in descending order

out: 2=ongoing, 1=ended, 0=invalid

tests stolen from Adám's answer

ngn
  • 15.3k
  • 2
  • 43
  • 87