Cod sursa(job #711503)
Utilizator | Data | 12 martie 2012 11:41:18 | |
---|---|---|---|
Problema | Patrate2 | Scor | 0 |
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 double x;
int n;
int main()
{
fin>>n;
x=pow((double)2,(double)(2*n-1))*pow((double)n,(double)2);
fout<<x;
return 0;
}