Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#APL+WIN, 42 bytes
Prompts for icons followed by coin stock.
⌊(.01×⎕)+.1⌈+/1 3 7.77×+⌿(+⌿⎕∘.=⍳5)∘.=1↓⍳4
Try it online! Courtesy of Dyalog Classic
#APL+WIN, 43 41 bytes
Saved 242 bytes by dividing coins by 100.
⌊(.01×⎕)+1⌈++.1⌈+/1 3 7.77×+⌿(+⌿⎕∘.=⍳5)∘.=1↓⍳4
Try it online Courtesy of Dyalog Classic!Try it online! Courtesy of Dyalog Classic
Saved 2 bytes by dividing coins by 100.
⌊(.01×⎕)+1⌈+/1 3 7.77×+⌿(+⌿⎕∘.=⍳5)∘.=1↓⍳4
Try it online Courtesy of Dyalog Classic!
#APL+WIN, 4343 41 bytes
⌊(.01×⎕+10⌈+01×⎕)+1⌈+/1001 3003 777×+⌿7.77×+⌿(+⌿⎕∘.=⍳5)∘.=1↓⍳4
Try it online Courtesy of Dyalog Classic!Try it online Courtesy of Dyalog Classic!
#APL+WIN, 43 bytes
⌊.01×⎕+10⌈+/100 300 777×+⌿(+⌿⎕∘.=⍳5)∘.=1↓⍳4