Search found 1 match

by e_ahmed
Wed Mar 11, 2015 6:14 pm
Forum: Volume 100 (10000-10099)
Topic: 10077 - The Stern-Brocot Number System
Replies: 10
Views: 9500

Re: 10077 - The Stern-Brocot Number System

whats wrong with my code? gets WA but matches the in/outs in this forum

#include <iostream>
#include <stdio.h>
#include <cmath>
#define verysmall pow(10,-9)
using namespace std;
double N1,N2;
string s="";
int recur(double m,double n,double m1,double n1)
{
double numerator=m+m1;
double ...

Go to advanced search