SHENZHEN I/O

SHENZHEN I/O

Ei tarpeeksi arvosteluja
DIV 2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
5.415 KB
25.9.2024 klo 5.38
1 muutos ( näytä )
Kuvaus
Just divide a number by 2.

I mean how hard could it be?
10 kommenttia
Moose 6.6. klo 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.6. klo 7.56 
I got 8/70.6k/15 not particually good (especially compared to other people) but easy to understand solution.
Verdammte Heinz 6.11.2024 klo 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.11.2024 klo 19.57 
Solved in 6 / 70603 / 12 and 10 / 668 / 18
Scoptlie 14.10.2024 klo 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  [tekijä] 11.10.2024 klo 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.10.2024 klo 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  [tekijä] 26.9.2024 klo 7.45 
So far I have 6/631/17 or 6/50511/13