Cod sursa(job #721271)

Utilizator w3.playerCostescu Ionut w3.player Data 23 martie 2012 15:23:36
Problema Patrate2 Scor 0
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("patrate.out");
	outf << x << '\n';
	outf.close();
	return 0;
}