Search found 4 matches

by zubi
Sun Dec 13, 2009 12:57 pm
Forum: Volume 6 (600-699)
Topic: 636 - Squares (III)
Replies: 7
Views: 4637

636 - Squares

I dunno why im getting WA :(

#include <iostream>
#include<math.h>
using namespace std;

long long x,t,res,lsd,base=3,num,maxi;


long long convert(long long base)
{

long long count=0,res=0;

while(t!=0)
{ lsd=t%10;
res+=(lsd*(pow(base,count)));
t/=10;
count++;
}

return res;

}

long long ...
by zubi
Tue Mar 27, 2007 10:47 am
Forum: Volume 9 (900-999)
Topic: 962 - Taxicab Numbers
Replies: 16
Views: 12209

here, i have calculated taxicab numbers btwn the ranges

u say calculate the taxicab numbers ... till what point do u want me to calculate?

in any case wont it come time limited exceeded anywyas?
by zubi
Mon Mar 26, 2007 9:07 am
Forum: Volume 9 (900-999)
Topic: 962 - Taxicab Numbers
Replies: 16
Views: 12209

i didnot understand, could you elaborate a little bit. What do you mean

thanks for the reply..
by zubi
Sun Mar 25, 2007 5:51 pm
Forum: Volume 9 (900-999)
Topic: 962 - Taxicab Numbers
Replies: 16
Views: 12209

962 - Taxicab Numbers

Hey, this is the first question i attempted *properly* in online judge.. im gettin time limit exceeded.. any hints?time showed 10.035 seconds..

#include<iostream>
//#include<stdlib.h>

using namespace std;

main()
{

long x,y;
int i,j,l;
int count=0;
int balls=0;

while(cin>>x>>y)
{ balls=0;
for ...

Go to advanced search