Search found 6 matches

by Ankur Handa
Fri May 26, 2006 1:37 pm
Forum: Volume 3 (300-399)
Topic: 332 - Rational Numbers from Repeating Fractions
Replies: 83
Views: 19435

the code is working for all of the test cases given here ..
by Ankur Handa
Fri May 26, 2006 1:36 pm
Forum: Volume 3 (300-399)
Topic: 332 - Rational Numbers from Repeating Fractions
Replies: 83
Views: 19435

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 return G...
by Ankur Handa
Tue May 23, 2006 10:44 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 37444

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",&Tcases);...
by Ankur Handa
Tue May 23, 2006 4:23 pm
Forum: Volume 110 (11000-11099)
Topic: 11001 - Necklace
Replies: 38
Views: 16856

hi everyone i am getting wrong answer for this question . I have tried many times but everytime i got wrong answer my program is working for all of the test cases given in the forum , can anybody tell me where am i going wrong . My logic is if V is divisible by 2*V0 then print the number V/(2*V0) el...
by Ankur Handa
Fri May 19, 2006 7:05 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7116

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;j<MAX;j+...
by Ankur Handa
Mon May 15, 2006 11:37 am
Forum: C++
Topic: sorting a double Array using <algorithm>
Replies: 3
Views: 2073

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; } int mai...

Go to advanced search