Skip to main content
deleted 4 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (JDK 10), 113110 bytes

s->"8%06(*D0t0".charAt(s.replacesplit("g","")[0].chars().sum()%77%24%13)*(s.charAt(0)%2+2)/40d**(s.endsWith("g")?.753:14)/160d

Try it online!Try it online!

Credits

Java (JDK 10), 113 bytes

s->"8%06(*D0t0".charAt(s.replace("g","").chars().sum()%77%24%13)*(s.charAt(0)%2+2)/40d*(s.endsWith("g")?.75:1)

Try it online!

Credits

Java (JDK 10), 110 bytes

s->"8%06(*D0t0".charAt(s.split("g")[0].chars().sum()%77%24%13)*(s.charAt(0)%2+2)*(s.endsWith("g")?3:4)/160d

Try it online!

Credits

deleted 4 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (JDK 10), 115113 bytes

s->"8%06(*D0t0".charAt(s.replace("g","").chars().sum()%77%24%13)*(278-s.charAt(0)%2+2)/3080d*40d*(s.endsWith("g")?.75:1)

Try it online!Try it online!

Credits

Java (JDK 10), 115 bytes

s->"8%06(*D0t0".charAt(s.replace("g","").chars().sum()%77%24%13)*(278-s.charAt(0))/3080d*(s.endsWith("g")?.75:1)

Try it online!

Credits

Java (JDK 10), 113 bytes

s->"8%06(*D0t0".charAt(s.replace("g","").chars().sum()%77%24%13)*(s.charAt(0)%2+2)/40d*(s.endsWith("g")?.75:1)

Try it online!

Credits

added 8 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (JDK 10), 163115 bytes

s->new double[]{2,5.8,2.7,1.45,1.2,2.8,3.4,2.1,.7,1>"8%06(*D0t0".85}[scharAt(s.charsreplace("g","").mapchars(c->c==47?124:c==103?0:c).sum()%123%42%25%20%14]*%77%24%13)*(278-s.charAt(0))/154*3080d*(s.endsWith("g""g")?.75:1)

Try it online!Try it online!

Credits

Java (JDK 10), 163 bytes

s->new double[]{2,5.8,2.7,1.45,1.2,2.8,3.4,2.1,.7,1.85}[s.chars().map(c->c==47?124:c==103?0:c).sum()%123%42%25%20%14]*(278-s.charAt(0))/154*(s.endsWith("g")?.75:1)

Try it online!

Credits

Java (JDK 10), 115 bytes

s->"8%06(*D0t0".charAt(s.replace("g","").chars().sum()%77%24%13)*(278-s.charAt(0))/3080d*(s.endsWith("g")?.75:1)

Try it online!

Credits

deleted 15 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56
Loading
-1 byte thanks to Kevin Cruijssen ; -2 other bytes
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56
Loading
Add all the test cases
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56
Loading
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56
Loading