Skip to main content
added 67 characters in body
Source Link
Veskah
  • 4.1k
  • 13
  • 29

PowerShell for Windows, 4848 47 bytes

-1 byte thanks to mazzy

$args|%{$a+=(++$i%4+1)*$_$a+=++$i%4*$_+$_}
$a+10*($args|sort)[0]

Try it online!Try it online!

PowerShell, 48 bytes

$args|%{$a+=(++$i%4+1)*$_}
$a+10*($args|sort)[0]

Try it online!

PowerShell for Windows, 48 47 bytes

-1 byte thanks to mazzy

$args|%{$a+=++$i%4*$_+$_}
$a+10*($args|sort)[0]

Try it online!

Source Link
Veskah
  • 4.1k
  • 13
  • 29

PowerShell, 48 bytes

$args|%{$a+=(++$i%4+1)*$_}
$a+10*($args|sort)[0]

Try it online!