Cod sursa(job #774246)
Utilizator | Data | 3 august 2012 22:14:10 | |
---|---|---|---|
Problema | 12-Perm | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <fstream>
#define LE 100000
using namespace std;
ifstream f("12perm.in");
ofstream g("12perm.out");
int a[LE],i,n;
int main()
{
f>>n;
a[1]=1;a[2]=2;
for(i=3;i<=n;++i)
a[i]=a[i-2]*2;
g<<a[n];
f.close();g.close();
return 0;
}