fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int fib(int N) {
  5. if (N > 1) {
  6. return fib(N - 1) + fib(N - 2);
  7. } else {
  8. return N;
  9. }
  10. }
  11.  
  12. int main() {
  13. cout << fib(60) << endl;
  14. return 0;
  15. }
Time limit exceeded #stdin #stdout 5s 5384KB
stdin
Standard input is empty
stdout
Standard output is empty