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