Skip to content

Instantly share code, notes, and snippets.

@dhpradeep
Last active May 20, 2020 06:21
Show Gist options
  • Save dhpradeep/7e525d78a753e6c95fb80c845e49ccd4 to your computer and use it in GitHub Desktop.
Save dhpradeep/7e525d78a753e6c95fb80c845e49ccd4 to your computer and use it in GitHub Desktop.
list=sorted(input().split());val=input();print(list.index(val)if val in list else -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment