Cod sursa(job #711506)
Utilizator | Data | 12 martie 2012 11:42:28 | |
---|---|---|---|
Problema | Patrate2 | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<fstream>
#include<iostream>
#include<cmath>
using namespace std;
ifstream fin("patrate2.in");
ofstream fout("patrate2.out");
long long int x;
int n;
int main()
{
fin>>n;
x=pow((double)2,(double)(2*n-1))*pow((double)n,(double)2);
fout<<x;
return 0;
}