//Developer : ruhul1995  Time : 00:58 AM Date : 23/11/2017 //how to optimize this code..... i want the program to execute value of 10 power 6 and give the value for fibanacci and factorial...please help include<iostream>define MOD 1000000007using namespace std; const int MAX = 2 * 1000000; long long int f[MAX] = {0}; long long int fib(long long int n) { / Declare an array to store Fibonacci numbers. / long long int f[n+1]; long long int i; / 0th and 1st number of the series are 0 and 1/ f[0] = 1; f[1] = 1; for (i = 2; i <= n; i++) {
} return f[n]; } long long int fact( long long int n) {
} int main() {
} asked 23 Nov '17, 01:02

Bro please... The contest is still live. Don't ask questions related to live competitions here. And moreover you posted your whole code of a live problem. answered 23 Nov '17, 02:13

can you format the code