Cod sursa(job #3210502)
Utilizator | Data | 6 martie 2024 13:18:38 | |
---|---|---|---|
Problema | Al k-lea termen Fibonacci | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.13 kb |
#include <fstream>
auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}