Search found 2 matches

by ankur_vjy
Sat May 31, 2008 6:22 pm
Forum: Volume 103 (10300-10399)
Topic: 10334 - Ray Through Glasses
Replies: 19
Views: 12745

Re: 10334 - Ray Through Glasses

i cross checked some of the input cases and they seem to work.
I m implementing a Big Integer and producing fibonacci numbers
But i keep getting WA . please help


#define pb push_back
#define vi vector<int>

void init (vi &num, string s) {
if(s.size()%3==1)
s = "00" + s;
else if (s.size()%3 ...
by ankur_vjy
Thu Jan 24, 2008 8:56 pm
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 59991

i keep getting compilation error. where am i wrong ?



#include<iostream>
#include<cmath>
#include<vector>

using namespace std;

#define MAX 1500

class BigInt {
string str;
int sign;
int len;
public:
BigInt(BigInt &b) {
str.resize(MAX);
fill(str.begin(),str.end(),'0');
str=b.str;
sign=b ...

Go to advanced search