SnokenKeekaGuard@lemmy.dbzer0.com to Lemmy Shitpost@lemmy.world · 7 months agoTrust the leprechaunslemmy.dbzer0.comimagemessage-square42fedilinkarrow-up1397arrow-down119
arrow-up1378arrow-down1imageTrust the leprechaunslemmy.dbzer0.comSnokenKeekaGuard@lemmy.dbzer0.com to Lemmy Shitpost@lemmy.world · 7 months agomessage-square42fedilink
minus-squareAeonFelis@lemmy.worldlinkfedilinkEnglisharrow-up4·7 months agoIn [1]: print(min("3 10".split())) 10
minus-squareAeonFelis@lemmy.worldlinkfedilinkEnglisharrow-up3arrow-down1·7 months agoDownvoted for completely ignoring the part where there should be input.
minus-squareieee@lemmy.worldlinkfedilinkarrow-up1·7 months agoDownvoted for losing codegolf. Ruby, 11 bytes $><<$<.min Input: 3\n10 Output: 10 Pretty sure I score double points for readability
In [1]: print(min("3 10".split())) 10
Ruby, 3 bytes
p 3
Downvoted for completely ignoring the part where there should be input.
Get optimized
Downvoted for losing codegolf.
Ruby, 11 bytes
$><<$<.min
Input: 3\n10 Output: 10Pretty sure I score double points for readability