Title |
User |
Message |
Date Posted |
Re: Error on the wiki page |
LOLWHATOMGBBQ |
Sorry, didn't know there was one. |
May 15, 2015 - 12:55:04 am UTC |
Re: Error on the wiki page |
bbi5291 |
Couldn't you have posted this on the talk page for the wiki article? Anyway, I fixed it. |
May 14, 2015 - 11:02:22 pm UTC |
Error on the wiki page |
LOLWHATOMGBBQ |
Correct me if I'm wrong, but I believe there is an error on the wiki page that links to this problem. http://screencloud.net/v/kTdp In both cases the if statement should say "if d[j] ≤ i" rather th... |
May 14, 2015 - 2:36:13 am UTC |
UHG! |
canyonblue77 |
It only took 79 tries!!!!! Ouch that was painful, made me take a break for a few weeks... but I got it! |
Apr 02, 2015 - 1:29:32 am UTC |
Ambiguity |
Sanzee |
I think description should include"you can use a club multiple times". It may be obvious for people who know golf but not for everyone. |
Jun 28, 2014 - 11:23:21 am UTC |
Re: Re: overflowing... |
dr3w |
got it. thanks |
Sep 17, 2009 - 8:36:52 pm UTC |
Re: overflowing... |
bbi5291 |
All right, I've looked at your submission more closely. The output says: terminate_called_after_throwing_an_instance_of_'std::bad_alloc' __what():__std::bad_alloc_ bad_alloc is an exception thrown whe... |
Sep 17, 2009 - 7:59:11 pm UTC |
Re: Re: overflowing... |
dr3w |
makes sense. so (if t > dist) break; ? |
Sep 17, 2009 - 7:19:42 pm UTC |
Re: overflowing... |
bleung91 |
int t = state[j] + j; notice how that can overflow your state array. check to see if t is in bounds in your if statement. |
Sep 17, 2009 - 6:55:34 pm UTC |
overflowing... |
dr3w |
This problem's fairly easy, but I'm not sure why I'm runtime-error'ing, although I suspect an overflow. Can one of the admins tell me what I'm doing wrong please? |
Sep 17, 2009 - 6:11:51 pm UTC |