Search found 19 matches

by dreadlord
Wed Dec 17, 2008 9:59 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 33413

Re: 272 -WA-Plz help to debug it!!!

sazzadcsedu wrote:thanx to dreadlord.

infact it was a stupid mistake.
[...]
You're welcome.

Sometimes, the most stupid mistakes are the ones that make us to waste more time (that's my own experience).

Now it's time to try a new problem :wink:

--Dread
by dreadlord
Tue Dec 16, 2008 11:43 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 33413

Re: 272 -WA-Plz help to debug it!!!

sazzadcsedu wrote:whats wrong with my code!!!!!
i got wrong ans!!

Code: Select all

[...]
		if(count%2)
		 {

	 	 printf("~~");
		  count=0;
		 }
 [...]
 
I find the printf line rather worrisome. What are exactly those characters you're printing? I see a couple of tildes, not ``

--Dread
by dreadlord
Sun Jun 22, 2008 11:29 am
Forum: Volume 1 (100-199)
Topic: 125 - Numbering Paths
Replies: 56
Views: 5096

Re:

Hello, Can somebody post an input and output ? Thanks ! I would also appreciate it if someone were able to post some IO cases, and in particular some one for which my program gives WA. I've tried with the sample IO and also with the ones I found in these forums, and in all cases my program gives th...
by dreadlord
Fri Jun 20, 2008 5:29 pm
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 15660

Without storing already calculated numbers...

I tried with a straight-to-the-problem solution, i mean i made a procedure that returns 1 if a given number is ugly and 0 otherwize. Well as you can suppose the result needs a lot of time. The function is that: [...] If some one can find a way to speed this up. I will be greatfull for help. Thanks ...
by dreadlord
Tue Jun 10, 2008 4:18 pm
Forum: Volume 1 (100-199)
Topic: 193 - Graph Coloring
Replies: 93
Views: 19481

Re: How can i solve the problem 193

Hi there, I agree with people that claims that this problem is really hard to solve in general given the problem description constraints. Any of you has got an algorithm (deterministic, I mean, not based on random node choices that may or not lead to the actual solution) that solves this problem for...
by dreadlord
Fri Jun 06, 2008 12:46 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 169005

Re: If you get WA in problem 100, read me before post!

printf ("Hello, world\n"); I've thought that a possible method to improve efficiency in this algorithm could be to store not only cycle values for numbers as they are being computed, but also the maximum of each one of the input intervals. This could help to save time if further intervals may be dec...
by dreadlord
Thu May 29, 2008 10:44 am
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 33413

Re: 272 -WA-Plz help to debug it!!!

hahahaken wrote:At last, I got AC, totally 7 tries, THANKS for everyone who has helped me b4
[...]
*CHEERS!* :lol:

Now it's time to try a new problem :wink:

You're welcome,

--Dread
by dreadlord
Wed May 28, 2008 5:59 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 33413

Re: 272 -WA-Plz help to debug it!!!

[...] One claims that just replace all " with `` and ' ' and you can get AC, [...] Yes, just replace that, but also remember to leave unchanged the rest of characters. Are you sure you do so? Do you believe that your program copies to the output all input characters others than ", including blanks ...
by dreadlord
Wed May 28, 2008 5:56 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 33413

Re: 272 -WA-Plz help to debug it!!!

Where should the below code added and what's the purpose? I know how to output the spaces but I still don't manage to output line by line, I can just output a single continuous line, what else should I add? cout << "<<" << s << ">>"; Let's see, hahahaken... :roll: That line is not only unnecessary ...
by dreadlord
Wed May 28, 2008 12:36 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 33413

Re: 272 -WA-Plz help to debug it!!!

I have edited my code and submit a few times, but still wrong anssssss..., here's the lastest one, pls help :cry: P.S. I've referred to the AC codes posted above, I think mine is similar to that, but I don't know what's wrong with mine P.S.2 I have discovered that the single quotes should remain th...
by dreadlord
Tue May 27, 2008 4:14 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 33413

Re: 272 -WA-Plz help to debug it!!!

This problem is extremely easy if one thinks in term of characters rather than lines. WARNING: One program that gets AC follows (maybe not the best one in execution time, but AC). Do not read it if you still feel this problem as a challenge. Removed. Looks like it's not a good practice at all to pos...
by dreadlord
Fri May 23, 2008 1:18 pm
Forum: Volume 2 (200-299)
Topic: 228 - Resource Allocation
Replies: 0
Views: 1034

228 - Resource Allocation

Hi, there. This problem description says that values n and k (respectively, number of options for programmers and budget for a given programming division) will be greater than or equal to zero. I find that allowing any (or both) of these values to be zero this rather confusing for several reasons: 1...
by dreadlord
Fri May 23, 2008 12:03 am
Forum: Volume 9 (900-999)
Topic: 932 - Checking the N-Queens Problem
Replies: 18
Views: 9105

Re: 932 - Checking the N-Queens Problem

Hi friends, someone have inputs and outputs AC to this problem? thanks in advance. Hi, adelar. It's not a very large set of I/O, but could be helpful, so I drop them right here. Input: 8 0000X000 X0000000 0000X00X 00000X00 00000000 000000X0 0X000000 000X0000 8 X0000000 000000X0 0000X000 0000000X 0X...
by dreadlord
Thu May 22, 2008 1:10 pm
Forum: Volume 9 (900-999)
Topic: 932 - Checking the N-Queens Problem
Replies: 18
Views: 9105

Re: 932 - Checking the N-Queens Problem

Hope you'll get AC soon :D Well, after modifying my program to consider more than one test case, I got AC. It's certainly annoying to get stuck in one problem just because its description is clearly incorrect and confusing... :x I shall complain about this. Regards, and thank you again for the tip,...
by dreadlord
Wed May 21, 2008 7:19 pm
Forum: Volume 9 (900-999)
Topic: 932 - Checking the N-Queens Problem
Replies: 18
Views: 9105

Re: 932 - Checking the N-Queens Problem

RC's wrote:I use like this to handle the input

Code: Select all

...
Hope you'll get AC soon :D
Thank you for the tip and your good wishes.

Go to advanced search