Skip to content

Instantly share code, notes, and snippets.

@monhime

monhime/ABC178C.gyp

Created Sep 13, 2020
Embed
What would you like to do?
ABC178 C問題 解答
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
You can’t perform that action at this time.