Last active
May 20, 2020 06:21
-
-
Save dhpradeep/7e525d78a753e6c95fb80c845e49ccd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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