Cod sursa(job #1413461)
Utilizator | Data | 1 aprilie 2015 21:28:06 | |
---|---|---|---|
Problema | Nunta | Scor | 30 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<cstdio>
using namespace std;
int main()
{
int x=0,y=1,z,k;
freopen("nunta.in", "r", stdin);
freopen("nunta.out", "w", stdout);
scanf("%d",&k);
k++;
while(k--%1332028)z=(x+y)%666013,x=y,y=z;
printf("%d\n",x);
}