Search found 160 matches

by _.B._
Sun Aug 14, 2005 4:55 am
Forum: Volume 108 (10800-10899)
Topic: 10882 - Koerner's Pub
Replies: 13
Views: 6015

Ouch!

Ouch!, forgot to take some comments away after correction :o From low = obligatorios + (a[0] / 2); // + (a[0] % 2); to low = obligatorios + (a[0] / 2) + (a[0] % 2); Well, had other mistake. By the way, I considered data faulty if: - Higher value is > than 100. - Lower value is < than the intersectio...
by _.B._
Sat Aug 13, 2005 4:46 am
Forum: Volume 108 (10800-10899)
Topic: 10882 - Koerner's Pub
Replies: 13
Views: 6015

I/O needed.

Greetings!
Any I/O for spare?
No idea why the WA :o

Thanks in advance!
by _.B._
Mon Aug 08, 2005 3:08 am
Forum: Volume 3 (300-399)
Topic: 396 - Top Dog
Replies: 5
Views: 2838

Thanks.

Greetings!
Thanks again for the help, Daveon, but still WA :o
I think I'll re-code this problem whenever I find time for it.
Tedious problem :-?

Keep posting! :D
by _.B._
Thu Aug 04, 2005 11:41 pm
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 30577

Limits. Re: I got WA too :'(

Greetings FAQ! For this problem I considered all words to be <= than 200 chars long, and no more than 50000 words in Andy's Dictionary (maybe a lot less than that would work). Quick Sort did the work, and just don't print the repeated words. Remember all words must be lowercase. Ah!, and either toke...
by _.B._
Tue Aug 02, 2005 4:54 am
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 24969

Exactly!

Thanks daveon!
That was exactly what I was looking for!

Keep posting! :D
by _.B._
Sun Jul 31, 2005 2:41 am
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 24969

10033 > Interpreter > Need I/O.

Greetings!
Won't bother you asking to read my code for this problem (this time :wink:), but will ask you to tell me where to find critical I/O for this problem.
Too many WAs already! :evil:

Thanks in advance! :D
by _.B._
Sat Apr 30, 2005 10:50 pm
Forum: Volume 3 (300-399)
Topic: 396 - Top Dog
Replies: 5
Views: 2838

396 - Top Dog

Greetings! I need help with this problem ( http://acm.uva.es/p/v3/396.html ). I get the right output for the sample input, and TRIED to consider EVERYTHING this problem says :o I'm getting WAs. What did you have to consider to get this problem ACed?? Any critical I/O for this problem? Thanks in adv...
by _.B._
Thu Mar 31, 2005 4:10 am
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

Re: [binary]10[/binary] questions.

Working with 16 bits will be fast on a 16 bit machine, 32 bits on a 32 bits... The problem is because the code mixes signed and unsigned integers. The standard says that "if either operand is unsigned int, the other is converted to unsigned int." (quote from K&R C 1988 edition, section A.6.5)... Th...
by _.B._
Sat Mar 19, 2005 5:04 am
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

:eR

Greetings! Thanks for the answer! But still don't get it :wink: Don't know why the length must be negative. And thought that working with 16 bits variables should be faster than working with 32 bits ones. I guess my "Computer Architecture" classes are not that advanced yet 8) , but working in my ASS...
by _.B._
Fri Mar 18, 2005 6:38 am
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

[binary]10[/binary] questions.

Now I have 2 questions: 1- Why is it that when I use unsigned int for longitud in my in_square function I get a WA?? (by using int I get it ACed). bool in_square(objects objeto, bool &borde, sint x, sint y) { unsigned int longitud = objeto.length; borde = false; if(x > objeto.x && x < (objeto.x + lo...
by _.B._
Fri Mar 18, 2005 5:50 am
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

ACed :)

Greetings! Thanks a lot sumankar and Adrian! I got some freaking error :o I changed the double to long long, and still got WA, but that gave me the idea to change: //typedef unsigned int usint; typedef long usint; //typedef int sint; typedef long int sint; And got it ACed :lol: Finally!! Going to lo...
by _.B._
Thu Mar 17, 2005 5:32 am
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

:O

Greetings!
How do you know, when this function returns true, that the point lies on the circle and not inside it?
Both functions return true if the point is inside a figure, and will make borde = true if the point is on the edge of a figure.

Any ideas why the WAs?

Thanks in advance!
by _.B._
Tue Mar 15, 2005 5:20 am
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

Code.

Well, I'm tired of WAs again :evil:
Any help?

Code: Select all

// Bernardo E. L
by _.B._
Mon Mar 14, 2005 12:56 pm
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

Please, take a look.

NOTE: Thanks sumankar. Changed code: added borde = false, but still WA :o

Greetings!
Here's part of my code for this problem. Any ideas?

Code: Select all

Code posted below.
by _.B._
Mon Mar 14, 2005 8:01 am
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 10870

Nada.

I'll have to post my code to see if anyone can help me, because I am using: unsigned int r, g, b, divisor; r = (double(r) / divisor) + .5; g = (double(g) / divisor) + .5; b = (double(b) / divisor) + .5; and got WA, after your example, changed it to: r = (double(r) / double(divisor)) + .5; g = (doubl...

Go to advanced search