Skip to main content
1 of 7
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (JDK 10), 225 bytes

s->new double[]{5.8,2.7,1.85,1.45,1.2,.7,3.4,2.1,2.8,2}[java.util.Arrays.asList("|,||,| |,|+|,|++|,|+++|,|r,||r,|f,||f".split(",")).indexOf(s.replace("/","|").replace("g",""))]*(s.matches("/.*")?1.5:1)*(s.endsWith("g")?.75:1)

Try it online!

Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56