Search found 38 matches

by aakash_mandhar
Sat Jan 24, 2004 10:19 am
Forum: Volume 101 (10100-10199)
Topic: 10183 - How Many Fibs?
Replies: 66
Views: 25535

I found the mistake and corrected it.. Thanks anyways :)
by aakash_mandhar
Wed Jan 21, 2004 2:43 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 53803

Thanx

Thank you scruff..
That was a pretty silly mistake to do on my part...

Thx a lot..

Aakash Deep Mandhar

:D
by aakash_mandhar
Wed Jan 21, 2004 2:32 pm
Forum: Volume 103 (10300-10399)
Topic: 10305 - Ordering Tasks
Replies: 59
Views: 23039

Can anyone plzzz tell me what is wrong with this code.. Or atleast a case where it does not work.... [cpp] # include<iostream.h> # define MAX 101 int a[MAX][MAX],i,j,d[MAX],x,y,n,m,dc; int main() { while(1) { cin>>n>>m; if(n==0 && m==0) break; dc=0; for(i=1;i<=n;i++) { d =0; for(j=1;j<=n;j++...
by aakash_mandhar
Mon Jan 19, 2004 9:13 pm
Forum: Volume 101 (10100-10199)
Topic: 10183 - How Many Fibs?
Replies: 66
Views: 25535

10183 WA Help

HI I solved 495 using the similar method. But now i am getting wa.. I tested or the case of a==b and a being fib no also.. can anyone plz help me out.. [cpp] # include<iostream.h> # include<string.h> # include<stdlib.h> char *aa[501]; char a[1000],b[1000],c[1000]; char s1[1000],s2[1000],s3[1000]; in...
by aakash_mandhar
Wed Jan 14, 2004 6:24 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 34870

Thanx

Thx Bug!
I was really frustrated coz factorial of negative number :o .. Thx


Aakash
by aakash_mandhar
Tue Jan 13, 2004 1:51 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 53803

Why WA

My code given below gives the same op as acc for the ip given below but can anyone tell me what is the error.. Maybe some presentation fault a space here or there or a newline character here or there.. Plz help [cpp] # include<iostream.h> # include<string.h> int a[25][25]; int n; int pos[25],top[25]...
by aakash_mandhar
Mon Jan 05, 2004 8:26 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 24259

There seems to be a problem with my code.. cant find out what.. Plz Help me out. Thx in advance I guess problem is with accepting blank lines.... Please help can anyone compare answers with his ac and lemme know .. Thx.. [cpp] # include<stdio.h> # include<string.h> int a[1000],count; int sol[1000]; ...
by aakash_mandhar
Mon Jan 05, 2004 7:20 pm
Forum: Volume 6 (600-699)
Topic: 697 - Jack and Jill
Replies: 21
Views: 6991

tried that..
Can u send me a case where it does not work...

Thx
Aakash
by aakash_mandhar
Mon Jan 05, 2004 7:18 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 31888

Taken care of A a B b

HI shamim,
I guess my code takes care of that.
for 'A' to 'Z' value is 2*str
for 'a' to 'z' value is 2*str+1

So that cares of interleaving i guess..

So could u plz send me a test case where the output is wrong..

Thx
Aakash
by aakash_mandhar
Mon Jan 05, 2004 12:53 am
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 31888

WA Help SOS SOS

What is wrong with this code.. I thought this is a cool logic to generate next higher number.. Plz help Thx in advance [cpp] # include<iostream.h> # include<string.h> char str[10000]; int a[10000]; int i,n,temp,len; int nt; int j; int main() { cin>>nt; while(nt--) { cin>>str; len=strlen(str); for(i=...
by aakash_mandhar
Mon Jan 05, 2004 12:50 am
Forum: Volume 3 (300-399)
Topic: 386 - Perfect Cubes
Replies: 53
Views: 8576

AC

Thx for the help..

I have removed my id from the post..
Thx again

Glad you liked the logic. :)
by aakash_mandhar
Sun Jan 04, 2004 10:21 pm
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 14439

WA Help

Can anyone tell me what is wrong with the code.. Thx in advance... [cpp] # include<iostream.h> int a[10][10]; int b[10][10]; int m,n,i,j; int x,y,x1; int nom; char ch; int main() { while(1) { cin>>m>>n; if(m==0 && n==0) break; nom=0; cin>>x>>y; x--;y--; for(i=0;i<m;i++) { for(j=0;j<n;j++) { ...
by aakash_mandhar
Sun Jan 04, 2004 10:13 pm
Forum: Volume 6 (600-699)
Topic: 697 - Jack and Jill
Replies: 21
Views: 6991

697 WA Oops just cant get it

I did the changes as u said but still got WA. Can you post the part of the code which handles the terminating condition <1.0 coz it says a sngle line having number less than 1. I am unable to handle the case.. Plz help Do i get te same outputs as your AC solution.. Thx.. [cpp] # include<iostream.h> ...
by aakash_mandhar
Sun Jan 04, 2004 8:13 pm
Forum: Volume 6 (600-699)
Topic: 697 - Jack and Jill
Replies: 21
Views: 6991

697: What is wrong

Can anyone tell me what is wrong.. Need help badly. It gives a wa but i have tested with the inputs given in this page... Thx in advance.. [cpp] # include<iostream.h> # include<math.h> # include<stdio.h> double PI=acos(-1); double UP,D,L,B,P,DOWN,V,R; double TIME; double ROUNDS,i; double DINC; int n...
by aakash_mandhar
Tue Dec 30, 2003 8:00 am
Forum: Volume 8 (800-899)
Topic: 850 - Crypt Kicker II
Replies: 77
Views: 38657

I got WA help..

I got WA help.. [cpp] /* @JUDGE_ID: xxxxxxxx 850 C++ "No special algo:)" */ # include<stdio.h> # include<string.h> char ori[85]="the quick brown fox jumps over the lazy dog"; char sub[26]={0}; int i,done; char count; char a[100][85]; int main() { int nt; scanf("%d",&...

Go to advanced search