Cod sursa(job #1564670)
Utilizator | Data | 9 ianuarie 2016 20:57:24 | |
---|---|---|---|
Problema | Nunta | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
#include <stdio.h>
using namespace std;
FILE*f=fopen("nunta.in","r");
int main()
{
unsigned long long a=0,b=1;
unsigned short n;
fscanf(f,"%d",&n);
fclose(f);
while (n>0)
{
n--;
b=a+b;
a=b-a;
}
FILE*f=fopen("nunta.out","w");
fprintf(f,"%ull",b);
fclose(f);
return 0;
}