Skip to main content
3 of 8
deleted 4 characters in body
dana
  • 2.7k
  • 1
  • 15
  • 11

JavaScript (Node.js), 84 bytes

c=>a=>a.map(i=>(k=m[i]=1+(m[i]||l++&0)),m={},l=0)&&([,7.77,k-2?3:2,1,.1][l]+c/100)|0

Try it online!

I am certain that this is golfable, but there has to be at least one JS answer to an Arnauld challenge.

dana
  • 2.7k
  • 1
  • 15
  • 11