Skip to content

Instantly share code, notes, and snippets.

@curegit
Last active September 5, 2020 07:17
Show Gist options
  • Save curegit/5510343e3e3ba53801204e624a85dd15 to your computer and use it in GitHub Desktop.
Save curegit/5510343e3e3ba53801204e624a85dd15 to your computer and use it in GitHub Desktop.
min max で3つの値の真ん中を求める
def mid(a, b, c):
return min(min(max(a, b), max(b, c)), max(c, a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment