SHENZHEN I/O

SHENZHEN I/O

Ikke nok vurderinger
DIV 2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
5.415 KB
25. sep. 2024 kl. 5:38
1 ændringsbemærkning ( vis )

Abonner for at downloade
DIV 2

Beskrivelse
Just divide a number by 2.

I mean how hard could it be?
10 kommentarer
Moose 6. juni kl. 21:30 
Got 8/705/19 trivially, I suspect you can use dst to increase throughput but it remains to be seen whether its actually more efficient giventhe pre-processing necessary
NoobDancer100 2. juni kl. 7:56 
I got 8/70.6k/15 not particually good (especially compared to other people) but easy to understand solution.
Verdammte Heinz 6. nov. 2024 kl. 11:34 
Optimized the low power version for costs to 8 / 705 / 19 . As I could not optimize it further checked the solution from Shigawire, nice one! I only considered taking two lowest digits and multiply those at the same time, but did not think about taking the two higher ones.
Verdammte Heinz 5. nov. 2024 kl. 19:57 
Solved in 6 / 70603 / 12 and 10 / 668 / 18
Scoptlie 14. okt. 2024 kl. 8:33 
@shigawire Oh that's a very clever way to do it! Using the simple IO pin basically for extra storage is something I wish I had considered as I was stuck on eliminating the need for the dat register . I much appreciate your sharing, and thanks for the fun puzzle.
shigawire  [ophavsmand] 11. okt. 2024 kl. 7:21 
@Scoptlie : Mostly it relies on using simple IO to make sharing intermediate values cheap between 2 MC4000s. and that the instructions:
mov <src> acc
dgt 0
can be replaced with
dst 0 <src>
if you know that acc is less than 10


(Screenshot of the 6/631/17 solution )
Scoptlie 9. okt. 2024 kl. 12:05 
This one is driving me mad. The best I can manage after many attempts is 8/705/19 . I'd be curious to see the 6/631/17 solution.
shigawire  [ophavsmand] 26. sep. 2024 kl. 7:45 
So far I have 6/631/17 or 6/50511/13