Pagini recente » Cod sursa (job #1719595) | Atasamentele paginii Ture Impiedicate | Cod sursa (job #1812259) | Cod sursa (job #3243075) | Cod sursa (job #1812087)
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
ifstream fin("patrate2.in");
ofstream fout("patrate2.out");
unsigned long long n,x;
unsigned long long fact(int x)
{
unsigned long long rez=1;
for(int i=1;i<=x;i++)
rez=rez*i;
return rez;
}
int main()
{
fin>>n;
x=pow(2,n)*pow(pow(2,n-1),n)*fact(n);
fout<<x;
return 0;
}