SHARE
TWEET

Untitled

a guest Dec 8th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n=int(input())
  2. if n==1:
  3.     print(10)
  4. else:
  5.     print((n*pow(5,n,123457)+4*pow(5,n-1,123457))%123457)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top