Cod sursa(job #3155472)

Utilizator biancaivascuBianca Ivascu biancaivascu Data 8 octombrie 2023 14:39:11
Problema Patrate2 Scor 30
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.56 kb
#include <iostream>
#include <fstream>

using namespace std;
#define MaxCif 3533
int nrcif;
/*void power(int b, int k)
{
  int t, i;
  if(k==0)
  {
    v[0]=1;
    nrcif=1;
    return;
  }
  power(b, k-1);
  t=0;
  while()

}

void fact(int n)
{

}*/
int main()
{
    ifstream in("patrate2.in");
    ofstream out("patrate2.out");
    int n, i, fact=1, x, putere=1;
    in>>n;
    for(i=1; i<=n; i++)
    {
      fact*=i;
    }
    x=n*n;
    while(x>0)
    {
      putere*=2;
      x--;
    }
    out<<fact*putere;
    return 0;
}