Search found 6 matches
- Fri May 26, 2006 1:37 pm
- Forum: Volume 3 (300-399)
- Topic: 332 - Rational Numbers from Repeating Fractions
- Replies: 83
- Views: 34378
- Fri May 26, 2006 1:36 pm
- Forum: Volume 3 (300-399)
- Topic: 332 - Rational Numbers from Repeating Fractions
- Replies: 83
- Views: 34378
332 WA ??
hi i am getting wrong answer in this question , can somebody tell me
where am i going wrong ?
here is the code ..
#include<cstdio>
#include<iostream>
#include<cmath>
#include<string.h>
#include<stdlib.h>
using namespace std;
long long Gcd(long long a , long long b)
{
if(b==0)
return a;
else ...
where am i going wrong ?
here is the code ..
#include<cstdio>
#include<iostream>
#include<cmath>
#include<string.h>
#include<stdlib.h>
using namespace std;
long long Gcd(long long a , long long b)
{
if(b==0)
return a;
else ...
- Tue May 23, 2006 10:44 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10226 - Hardwood Species
- Replies: 121
- Views: 56198
10226 TLE ???
i am still getting TLE in this question . Can somebody help me sort out
this problem ..
here is the code
#include<iostream>
#include<stdio.h>
#include<map>
#include<string>
using namespace std;
int main(void)
{
map<string,int>Plant;
int Tcases=0,Cnt=0;
double num;
char str[40];
scanf(" %d ...
this problem ..
here is the code
#include<iostream>
#include<stdio.h>
#include<map>
#include<string>
using namespace std;
int main(void)
{
map<string,int>Plant;
int Tcases=0,Cnt=0;
double num;
char str[40];
scanf(" %d ...
- Tue May 23, 2006 4:23 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11001 - Necklace
- Replies: 38
- Views: 23178
- Fri May 19, 2006 7:05 pm
- Forum: Volume 3 (300-399)
- Topic: 357 - Let Me Count The Ways
- Replies: 90
- Views: 17706
357 Wrong Answer Dont know why ?????
Can somebody where am i going wrong ?
I keep getting wrong answer ..
#include<stdio.h>
#include<iostream>
#define MAX 30500
long long array[30500]={0};
long long coin[]={1,5,10,25,50};
int main(void)
{
long long cents=0;
array[0]=1;
array[1]=1;
for(long long i=0;i<5;i++)
{
for(long long j=1 ...
I keep getting wrong answer ..
#include<stdio.h>
#include<iostream>
#define MAX 30500
long long array[30500]={0};
long long coin[]={1,5,10,25,50};
int main(void)
{
long long cents=0;
array[0]=1;
array[1]=1;
for(long long i=0;i<5;i++)
{
for(long long j=1 ...
- Mon May 15, 2006 11:37 am
- Forum: C++
- Topic: sorting a double Array using <algorithm>
- Replies: 3
- Views: 2497
sorting a double Array using <algorithm>
I am facing problem in sorting a double array . Can somebody help me ?
This is the Code i wrote but its giving error
#include<iostream>
#include<algorithm>
#include<stdlib.h>
using namespace std;
int Comparison(const char *s1 , const char *s2)
{
if(strcmp(s1,s2)>1)
return 1;
else
return 0 ...
This is the Code i wrote but its giving error
#include<iostream>
#include<algorithm>
#include<stdlib.h>
using namespace std;
int Comparison(const char *s1 , const char *s2)
{
if(strcmp(s1,s2)>1)
return 1;
else
return 0 ...