Created
September 13, 2020 23:01
-
-
Save monhime/80f36b559a1de49d299d6c77bd0b2003 to your computer and use it in GitHub Desktop.
ABC178 C問題 解答
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
import sys | |
def input(): return sys.stdin.readline().rstrip() | |
def main(): | |
n = int(input()) | |
mod = 10**9+7 | |
print((pow(10,n,mod)-2*pow(9,n,mod)+pow(8,n,mod))%mod) | |
if __name__=='__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment