Cod sursa(job #721277)

Utilizator w3.playerCostescu Ionut w3.player Data 23 martie 2012 15:28:44
Problema Patrate2 Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <fstream>
using namespace std;
int n,x=2,i;

int main()
{
	ifstream inf("patrate2.in");
	inf >> n;
	inf.close();
	if (n!=1)
		for (i=1; i<n*n+1; i++)
			x*=2;
	ofstream outf("patrate2.out");
	outf << x << '\n';
	outf.close();
	return 0;
}