Submission #16685114


Source Code Expand

Copy
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()

Submission Info

Submission Time
Task C - Ubiquity
User charter
Language PyPy3 (7.3.0)
Score 300
Code Size 215 Byte
Status
Exec Time 73 ms
Memory 61796 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample00, sample01, sample02
All 300 / 300 case03, case04, case05, case06, case07, case08, case09, case10, case11, case12, case13, case14, case15, case16, case17, case18, case19, sample00, sample01, sample02
Case Name Status Exec Time Memory
case03 73 ms 61740 KB
case04 51 ms 61608 KB
case05 62 ms 61744 KB
case06 58 ms 61688 KB
case07 57 ms 61712 KB
case08 58 ms 61604 KB
case09 58 ms 61736 KB
case10 60 ms 61660 KB
case11 50 ms 61704 KB
case12 57 ms 61796 KB
case13 57 ms 61684 KB
case14 59 ms 61696 KB
case15 57 ms 61724 KB
case16 57 ms 61584 KB
case17 55 ms 61712 KB
case18 58 ms 61604 KB
case19 60 ms 61728 KB
sample00 55 ms 61776 KB
sample01 58 ms 61772 KB
sample02 48 ms 61712 KB