Search found 38 matches

by r2ro
Sun Sep 28, 2014 2:52 pm
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 7092

Re: 207 - PGA Tour Prize Money

I found my mistake...It was a very stupid one indeed.

Thanks for your help, brianfry713. :)
by r2ro
Sat Sep 13, 2014 6:58 am
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 7092

Re: 207 - PGA Tour Prize Money

Here's my updated code.

Code: Select all

Accepted
by r2ro
Fri Sep 12, 2014 6:34 am
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 7092

Re: 207 - PGA Tour Prize Money

Hi brianfry713, first of all, thanks. Now, apparently I see my issue, but I want to know how you approached it. The outputs of my program and your program are exactly the same except for a particular test case 1 371327.50 1.9000 1.2000 1.4000 2.1000 1.4000 1.3000 1.5000 1.5000 1.2000 1.4000 0.7000 1...
by r2ro
Thu Sep 11, 2014 5:05 am
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 7092

Re: 207 - PGA Tour Prize Money

Hello, thanks. I've attempted to solve this again, and I made some changes with the input. (It seems that the money was one space too far to the left) Input: 2 289383.00 2.5532 2.5037 2.4567 2.4440 2.3822 2.3659 2.3177 2.2960 2.2951 2.2941 2.2624 2.0618 2.0533 2.0399 1.9831 1.9433 1.9419 1.9186 1.91...
by r2ro
Sat Aug 23, 2014 4:04 pm
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 7092

Re: 207 - PGA Tour Prize Money

Code: Select all

Accepted
This gives me WA
by r2ro
Thu Aug 21, 2014 6:01 am
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 7092

Re: 207 - PGA Tour Prize Money

Hi everyone,

I'm trying to solve this problem but I keep getting WA. I've tested my code with the sample input and outputs here and they seem to match. Anymore test cases?

I'm willing to post my code if it would help.
by r2ro
Fri Jan 13, 2012 5:13 am
Forum: Volume 11 (1100-1199)
Topic: 1103 - Ancient Messages
Replies: 5
Views: 11182

1103 - Ancient Messages

So there is only one user out of the 17 who attempted this problem who failed to get this problem correctly. Sadly, I'm that one user. :oops: Could anyone please verify the output of the following test cases? 6 2 00 7c 44 7c 30 00 6 25 0000000000000000000000000 0000000000000000000000000 00001fe00000...
by r2ro
Fri Nov 06, 2009 1:10 pm
Forum: Volume 117 (11700-11799)
Topic: 11715 - Car
Replies: 14
Views: 4830

Re: 11715 : Car problem

Well, why are your conditional statements only if n == 1?
by r2ro
Fri Oct 30, 2009 4:14 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 32297

Re: wrog answer in triangle wave

You are printing too much new lines.
by r2ro
Fri Oct 30, 2009 3:56 am
Forum: Volume 2 (200-299)
Topic: 203 - Running Lights Visibility Calculator
Replies: 22
Views: 5918

Re: 203 - Running Lights Visibility Calculator

Okay, I am not really certain if the reason for my WA is because of how I would format the output, or not. Maybe it has something to do with my bearings or not. Someone please verify my output? Input Sample Test Data Set 1 4 Ownship 0.0 0.0 90.0 10.0 Windswept 10.0 10.0 135.0 8.0 Footloose -5.0 6.0 ...
by r2ro
Thu Oct 29, 2009 12:12 pm
Forum: Volume 2 (200-299)
Topic: 203 - Running Lights Visibility Calculator
Replies: 22
Views: 5918

203 - Running Lights Visibility Calculator

I have tried to solve this problem out... Although, the only thing left in my code right now (Which is still WA) is the calculation of bearings correctly. I am very uncertain as to how the bearing can be calculated, although it should begin from the other ships towards your ship. fy = fAbs (own_ship...
by r2ro
Wed Oct 28, 2009 1:17 am
Forum: Volume 116 (11600-11699)
Topic: 11630 - Cyclic antimonotonic permutations
Replies: 2
Views: 2164

11630 - Cyclic antimonotonic permutations

This problem does not look that difficult, although it is strange why no one has solved it yet.

Anyway, I am bothered by this statement:

"In case there are multiple solutions, you may print any one."

How do you determine if there is more than one solution given an integer N?
by r2ro
Wed Oct 28, 2009 12:57 am
Forum: Volume 117 (11700-11799)
Topic: 11721 - Instant View of Big Bang
Replies: 12
Views: 6232

Re: 11721 - "Instant View of Big Bang"

My approach was rather similar to yours; - Alter the order of each edges, and then perform Bellman-Ford to identify all nodes w/ negative cycles. - Nodes w/ negative cycles are explored and extracted and traversed through in the graph - All Nodes that have been traversed through are pushed into a qu...
by r2ro
Tue Oct 27, 2009 2:07 pm
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 19629

Re: 136 Ugly Number Presentation Error

Code: Select all

printf("The 1500'th ugly number is %d.\n",ugly[1499]);
There you go. Remove your code afterwards ;).
by r2ro
Tue Oct 27, 2009 12:29 pm
Forum: Volume 117 (11700-11799)
Topic: 11713 - Abstract Names
Replies: 13
Views: 4925

Re: 11713 Abstract Names getting WA

My Accepted code outputs the following:

Code: Select all

Yes
Yes
Yes
No
No

Go to advanced search