Cod sursa(job #3155488)

Utilizator TheAndreiEnache Andrei Alexandru TheAndrei Data 8 octombrie 2023 14:58:46
Problema Patrate2 Scor 30
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.32 kb
#include <iostream>
#include <fstream>
#include <math.h>

using namespace std;

ifstream fin("patrate2.in");
ofstream fout("patrate2.out");

unsigned long long pw=1, fact=1;

int main()
{
    int n;
    fin>>n;

    pw=pow(2, n*n);
    for(int i=2;i<=n;i++)fact*=i;
    fout<<fact*pw;

    return 0;
}