Nella lunga moltiplicazione , dopo aver moltiplicato i numeri, ti rimangono i prodotti parziali, in questa sfida otterrai quei prodotti parziali.
Poiché la moltiplicazione lunga è lunga, per compensare il codice dovrà essere il più breve possibile.
Esempi
34, 53
102, 1700
48, 38
384, 1440
361, 674
1444, 25270, 216600
0, 0
0
1, 8
8
specificazioni
- Input / Output può essere in qualsiasi formato ragionevole come array, stringa separata da virgola (o qualsiasi altro delimitatore che non è una cifra), elenco, argomenti di funzione, ecc.
- I prodotti parziali devono essere in ordine crescente.
- Se un prodotto parziale è
0
, è possibile scegliere se produrlo o meno.
Questo è code-golf, quindi vince il codice più breve in byte!
12, 102
? La maggior parte delle risposte sembra tornare 24, 0, 1200
.
24, 0, 1200
sta bene. Lo specificherò nel post