Cod sursa(job #2885872)

Utilizator lungubiancaBia Lungu lungubianca Data 6 aprilie 2022 18:32:59
Problema Patrate2 Scor 100
Compilator py Status done
Runda Arhiva de probleme Marime 0.23 kb
import math

fin = open("patrate2.in", 'r')
fout = open("patrate2.out", 'w')

n = int(fin.read())

if n == 1:
    fout.write(str(2))
else:
    fout.write(str(pow(2,n*n)*math.factorial(n)))

fin.close()
fout.close()