Skip to main content
Commonmark migration
Source Link

#Ruby, 80 78 bytes

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, 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, 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}
added 34 characters in body
Source Link
Value Ink
  • 12.6k
  • 1
  • 17
  • 42

#Ruby, 8080 78 bytes

Try it online!Try it online!

-2 byte from @ezrast.

->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

Try it online!

->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}

#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}
edited body
Source Link
Value Ink
  • 12.6k
  • 1
  • 17
  • 42

#Ruby, 80 bytes

Try it online!

->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}

#Ruby, 80 bytes

Try it online!

->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}

#Ruby, 80 bytes

Try it online!

->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}
Source Link
Value Ink
  • 12.6k
  • 1
  • 17
  • 42
Loading