Cod sursa(job #2885428)

Utilizator lungubiancaBia Lungu lungubianca Data 5 aprilie 2022 23:28:53
Problema Patrate2 Scor 20
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.29 kb
#include <bits/stdc++.h>

using namespace std;
ifstream in("patrate2.in");
ofstream out("patrate2.out");

int fact(int n) {
   if ((n==0)||(n==1))
   return 1;
   else
   return n*fact(n-1);
}

int main()
{
    int n;
    in>>n;
    out<<pow(2,n*n)*fact(n);
    return 0;
}