Skip to content

Instantly share code, notes, and snippets.

@modos
Created August 5, 2023 06:36
Show Gist options
  • Save modos/8d3c2ce553872d210f9cb7fc9429ee3b to your computer and use it in GitHub Desktop.
Save modos/8d3c2ce553872d210f9cb7fc9429ee3b to your computer and use it in GitHub Desktop.
جوج
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