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 AC
Exec Time 73 ms
Memory 61796 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 20
Set Name Test Cases
Sample sample00, sample01, sample02
All 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 AC 73 ms 61740 KB
case04 AC 51 ms 61608 KB
case05 AC 62 ms 61744 KB
case06 AC 58 ms 61688 KB
case07 AC 57 ms 61712 KB
case08 AC 58 ms 61604 KB
case09 AC 58 ms 61736 KB
case10 AC 60 ms 61660 KB
case11 AC 50 ms 61704 KB
case12 AC 57 ms 61796 KB
case13 AC 57 ms 61684 KB
case14 AC 59 ms 61696 KB
case15 AC 57 ms 61724 KB
case16 AC 57 ms 61584 KB
case17 AC 55 ms 61712 KB
case18 AC 58 ms 61604 KB
case19 AC 60 ms 61728 KB
sample00 AC 55 ms 61776 KB
sample01 AC 58 ms 61772 KB
sample02 AC 48 ms 61712 KB