Skip to content

Instantly share code, notes, and snippets.

@modos
Created July 13, 2022 21:20
Show Gist options
  • Save modos/83ba80be6564cf44de9c289b8f9838e5 to your computer and use it in GitHub Desktop.
Save modos/83ba80be6564cf44de9c289b8f9838e5 to your computer and use it in GitHub Desktop.
تربیت بدنی سنگین
a,n=map(int,input().split())
x=pow(a,a)
y=pow(x,x,n)
print(y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment