Posted July 23, 2015
disi
Bandit
disi Sorry, data for given user is currently unavailable. Please, try again later. View profile View wishlist Start conversation Invite to friends Invite to friends Accept invitation Accept invitation Pending invitation... Unblock chat Registered: Jun 2012
From United Kingdom
rtcvb32
echo e.lolfiu_fefiipieue|tr valueof_pi [0-9]
rtcvb32 Sorry, data for given user is currently unavailable. Please, try again later. View profile View wishlist Start conversation Invite to friends Invite to friends Accept invitation Accept invitation Pending invitation... Unblock chat Registered: Aug 2013
From United States
disi
Bandit
disi Sorry, data for given user is currently unavailable. Please, try again later. View profile View wishlist Start conversation Invite to friends Invite to friends Accept invitation Accept invitation Pending invitation... Unblock chat Registered: Jun 2012
From United Kingdom
Posted July 23, 2015
adding the results brings it down to 203 cycles.
PeterWade
New User
PeterWade Sorry, data for given user is currently unavailable. Please, try again later. View profile View wishlist Start conversation Invite to friends Invite to friends Accept invitation Accept invitation Pending invitation... Unblock chat Registered: Jun 2012
From United Kingdom
Posted August 24, 2015
I must be missing something fundamental about this problem. It keeps saying my solution is wrong but I can't figure out why.
What I think I should be doing is sending a 1 when In.1 goes from 0 to 1, a 2 for In.2 etc. I've stepped through my code. All the inputs start at 0 and on step 6 In.4 goes to 1. I keep on stepping, it takes a while for the result to get through but on step 12 I send the number 4 to Out. This is the first thing I have sent to out, and it is marked as wrong!
In.4 is the first input to change, so if it doesn't want 4 as it's first output, what does it want?
edit - Finally worked it out with a bit of trial an error. It wants a zero written to out if none of the inputs has gone to 1. It doesn't actually say that in the specification.
What I think I should be doing is sending a 1 when In.1 goes from 0 to 1, a 2 for In.2 etc. I've stepped through my code. All the inputs start at 0 and on step 6 In.4 goes to 1. I keep on stepping, it takes a while for the result to get through but on step 12 I send the number 4 to Out. This is the first thing I have sent to out, and it is marked as wrong!
In.4 is the first input to change, so if it doesn't want 4 as it's first output, what does it want?
edit - Finally worked it out with a bit of trial an error. It wants a zero written to out if none of the inputs has gone to 1. It doesn't actually say that in the specification.
Post edited August 28, 2015 by PeterWade
skeletonbow
Galaxy 3 when?
skeletonbow Sorry, data for given user is currently unavailable. Please, try again later. View profile View wishlist Start conversation Invite to friends Invite to friends Accept invitation Accept invitation Pending invitation... Unblock chat Registered: Dec 2009
From Canada
Posted December 30, 2016
I solved this one in 358 cycles, 6 nodes, 43 instructions and thought that was pretty good. I basically have each input node detect when an interrupt occurs and output the interrupt number to the next node, or output zero. The next node outputs its own interrupt number or what it reads in from the node(s) to the left or right. They funnel from 1->2->3<-4 then down from 3 to the output. I thought it was clever, but evidently not clever enough if people are getting down near 203 clock cycles. :)
I'll have to take another stab at optimizing it. (I was careful to quickly skip over any code dumps in the thread so as to not taint, and probably wont try it again for a few days or more).
I'll have to take another stab at optimizing it. (I was careful to quickly skip over any code dumps in the thread so as to not taint, and probably wont try it again for a few days or more).