Search found 286 matches

by mamun
Sat May 06, 2006 8:49 am
Forum: Volume 4 (400-499)
Topic: 410 - Station Balance
Replies: 41
Views: 16096

It's a special judge program. Your outputs are legal.
by mamun
Fri May 05, 2006 11:02 am
Forum: Off topic (General chit-chat)
Topic: save us..
Replies: 4
Views: 2239

Fist link of the 2 threads in question in emotional blind's post is not that bad. It's humourous and also belongs to the appropriate subforum. After all, people in general (if not all) likes fun. But I'm really shocked to see thread at the second link. This is the first time I've noticed it and didn...
by mamun
Thu May 04, 2006 10:52 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 90688

According to your implementation your array size should be 3000+.
by mamun
Thu May 04, 2006 6:37 am
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 18609

Both of you've done almost the same thing for input. Instead of flushing the input buffer just write
scanf("%d\n", &lines);
by mamun
Wed May 03, 2006 7:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 18609

Re: ashik's code is allright in my machine

eyeabhi wrote:our code does not give proper output on some other machines...
some other machines, interesting! Problem with ashik's code is probably parsing the input. If you still have problem then post your code with code tags.
by mamun
Tue May 02, 2006 9:59 am
Forum: Volume 102 (10200-10299)
Topic: 10299 - Relatives
Replies: 57
Views: 15335

You can improve your euler phi calculation. Instead of trying with all the prime numbers, try with the prime numbers that are <= sqrt(num).
by mamun
Sat Apr 29, 2006 2:16 pm
Forum: Volume 105 (10500-10599)
Topic: 10508 - Word Morphing
Replies: 35
Views: 12608

Your approach is alright. Are you sure you're getting OLE?
by mamun
Mon Apr 24, 2006 3:31 pm
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 22476

Re: 469...why TLE???

asif_rahman0 wrote:so funny thing is i m gettign TLE.
Not so funny :P

Last line of the input may not be an empty line but EOF marker. Handle that properly.
by mamun
Thu Apr 20, 2006 8:57 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 50875

smilitude wrote:if(a1.host==b1.host) return ;

Is this statement wrong ??
No.

What's your problem now? Invalid memory reference or something else?
by mamun
Thu Apr 20, 2006 8:44 am
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 34509

I'm just a bit curious about the increment you said above... I'll try another approach... You can get (or already got) AC with your same code if you just remove that i++ ie. change for ( i = 0, j = 0; dataIndex[i] != '\n' && dataIndex[i] != '\0'; i++ ) to for ( i = 0, j = 0; dataIndex[i] != '\n' &&...
by mamun
Wed Apr 19, 2006 11:12 pm
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 34509

for ( i = 0, j = 0; dataIndex != '\n' && dataIndex != '\0'; i++ ) You are incrementing i in the loop block. So don't do it here. I don't think that's an issue, ... But well, it is. Test the code with input like 2 3 1 2 32.0 54.7 -2 3 1 2 32.0 54.7 -2 and you'll see the reason. I'll describe it if a...
by mamun
Wed Apr 19, 2006 3:05 pm
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 34509

for ( i = 0, j = 0; dataIndex != '\n' && dataIndex != '\0'; i++ )

You are incrementing i in the loop block. So don't do it here.
by mamun
Tue Apr 18, 2006 11:10 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3758

I just copied and pasted your posted solution and got AC.
So what's the problem?
by mamun
Wed Apr 05, 2006 3:51 pm
Forum: Volume 101 (10100-10199)
Topic: 10127 - Ones
Replies: 32
Views: 13218

Code: Select all

do{
   Input
   ...
   Output
}while(EOF);
Your code prints something unnecessary after reaching EOF.
by mamun
Thu Mar 30, 2006 10:06 pm
Forum: Volume 6 (600-699)
Topic: 628 - Passwords
Replies: 14
Views: 9899

Your timing is better than mine. But maybe a loop (no recursion) should have been much better. I used 2D array for each line of output (password) - containing either a word or a digit character. Call the password generator function with the first character of the rule. If it's # then store a word in...

Go to advanced search