Search found 32 matches

by Jewel of DIU
Mon Aug 01, 2005 8:22 am
Forum: Volume 105 (10500-10599)
Topic: 10579 - Fibonacci Numbers
Replies: 8
Views: 4729

10579: Fibonacci Input/Output Needed

I have got WA in this problem. I want to know where is my fault.
Can anyone give me some Input-Output?
by Jewel of DIU
Thu Jun 16, 2005 12:32 pm
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 30626

10815: RTE Why?

Hai, I have got RTE(Invalid Memory Reference) Can anyone tell me why my code got RTE? Here is my code # include <stdio.h> # include <string.h> # include <stdlib.h> # include <ctype.h> char dic[10000][205]; char inp[205]; int main() { int l,i,j,n=0; char buff[205]; while(scanf("%s",&inp)==1) { PARSE ...
by Jewel of DIU
Wed Jun 09, 2004 3:57 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31139

Now I have got AC :) .
Thank you Sohel Bhai.
by Jewel of DIU
Sun Jun 06, 2004 4:41 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31139

401Why WA??

Here is my code for prob 401, It causes WA.
[c]
#===========#
CUT AFTER AC
#===========#
[/c]
by Jewel of DIU
Thu May 27, 2004 4:28 am
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 31747

use 1000000 as array size.
by Jewel of DIU
Wed May 26, 2004 9:00 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 31747

Try this input:
abbbbc abccccccccccc
Output:
No

But Yours is Yes.
Fix this, Then u will may got AC.
For further help you can mail me with ur code at:
nazmul_acm@yahoo.com

Wish u best of luck.
by Jewel of DIU
Tue May 25, 2004 9:01 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 31747

You Have to use at least char array size of 1000000.
Use long as variable instead of int

Because pointer doesn't support that size.
Then u will not got RTE.
by Jewel of DIU
Tue May 25, 2004 8:39 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43277

Thank You Adrian.
I thought inclusive is only for max.
I wanna use change[strt] == change[end]
for only check the change of bit .
by Jewel of DIU
Mon May 24, 2004 7:16 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43277

Suppose i=5,j=2 So, min(i,j)=2 max(i,j)=5 min < range < [ max ( inclusive) ] 2 < range <= 5 Am I Wrong ? [c] if(strt>end) { temp=strt; strt=end; end=temp; /* max */ strt++; /* min */ /* "min<" min++ */ } if(str[strt]==str[end]) printf("Yes\n"); /*min < range < [ max ( inclusive) ] */ [/c]
by Jewel of DIU
Mon May 24, 2004 6:09 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43277

10324 Wa. Help plz

Hi I dont know why my program got WA.
Would you plz check my code?
[c]
\#### CUT AFTER AC ####/

Adrian ur right
[/c]
Hurry plz...
by Jewel of DIU
Sat May 08, 2004 5:35 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45605

Thanx

Thank u very much for ur help. My program gives Wrong output for ur 1st input. I fixed the prob and got AC.

BTW, I think ur from BUET. Do u know UTTAM? He tells me abt u.
by Jewel of DIU
Wed Apr 28, 2004 5:37 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45605

673: WA help plzzzz

My prog is ok. But i have got wa plz help me.

My Input
[c]7
([])
(([()])))
([()[]()])()
)
()
)(
([)][/c]
My Output
[c]Yes
No
Yes
No
Yes
No
No[/c]

Are my output ok? :cry: :cry: :cry:
by Jewel of DIU
Sat Mar 20, 2004 3:34 pm
Forum: Volume 101 (10100-10199)
Topic: 10126 - Zipf's Law
Replies: 36
Views: 8770

Shamim Bahi, I didn't find any mistake in there.
What can i do?
I change my that portion of code with that. but the result is same.
[c]
char inp[100];
while(scanf("%d",&n)==1)
by Jewel of DIU
Sat Mar 20, 2004 11:25 am
Forum: Volume 101 (10100-10199)
Topic: 10126 - Zipf's Law
Replies: 36
Views: 8770

My program is now ok for ur test case. But i got wa again.
If u have enough time then pls look through my code.
Or if u can't then give me more test case.
by Jewel of DIU
Tue Mar 16, 2004 10:13 pm
Forum: Volume 101 (10100-10199)
Topic: 10126 - Zipf's Law
Replies: 36
Views: 8770

10126: Zipf's Law ---- WA

I got WA in this prob. But I couldnt find any prob in my code. Can anyone help me? Here is my code [c] # include <stdio.h> # include <stdlib.h> # include <string.h> # include <ctype.h> char zipf[10001][100]; int sort_function( const void *a, const void *b) { return( strcmp((char *)a,(char *)b) ); } ...

Go to advanced search