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.
#Ruby, 80 78 bytes
Try it online!
-2 byte from @ezrast.
->d{s=0;7.times{|i|c=d.count i;i<2&&i=10;s+=c>2?c/3*i*100:1>i%5?c%3*i*10:0};s}
#Ruby, 8080 78 bytes
Try it online!Try it online!
->d{s=0;7.times{|i|c=d.count i;i=10if i==1;s+=c>2i;i<2&&i=10;s+=c>2?c/3*i*100:1>i%5?c%3*i*10:0};s}
#Ruby, 80 bytes
->d{s=0;7.times{|i|c=d.count i;i=10if i==1;s+=c>2?c/3*i*100:1>i%5?c%3*i*10:0};s}
->d{s=0;7.times{|i|c=d.count i;i=10if i==1;s+=c>2?c/3*100*i3*i*100:i%5<11>i%5?c%3*i*10:0};s}
->d{s=0;7.times{|i|c=d.count i;i=10if i==1;s+=c>2?c/3*100*i:i%5<1?c%3*i*10:0};s}