SnokenKeekaGuard@lemmy.dbzer0.com to Lemmy Shitpost@lemmy.world · 11 months agoTrust the leprechaunslemmy.dbzer0.comimagemessage-square42fedilinkarrow-up1398arrow-down119
arrow-up1379arrow-down1imageTrust the leprechaunslemmy.dbzer0.comSnokenKeekaGuard@lemmy.dbzer0.com to Lemmy Shitpost@lemmy.world · 11 months agomessage-square42fedilink
minus-squareAeonFelis@lemmy.worldlinkfedilinkEnglisharrow-up4·11 months agoIn [1]: print(min("3 10".split())) 10
minus-squareAeonFelis@lemmy.worldlinkfedilinkEnglisharrow-up3arrow-down1·11 months agoDownvoted for completely ignoring the part where there should be input.
minus-squareieee@lemmy.worldlinkfedilinkarrow-up1·11 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