Created
August 5, 2023 06:36
-
-
Save modos/8d3c2ce553872d210f9cb7fc9429ee3b to your computer and use it in GitHub Desktop.
جوج
This file contains 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
def main(): | |
input() # ignore n | |
cells = get_inputs(int, ' ') | |
for i in range(1, len(cells) - 1): | |
if cells[i] <= cells[i - 1] or cells[i] <= cells[i + 1]: | |
continue | |
print("Ey baba :(") | |
return | |
print("Bah Bah! Ajab jooji!") | |
def get_inputs(data_type, separator): | |
inputs = input().strip().split(separator) | |
return [data_type(item) for item in inputs] | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment