Skip to content

Commit

Permalink
Create uri-1006-js.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AKmahim authored Apr 8, 2022
1 parent 1950e1a commit c2c9418
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions uri-1006-js.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var input = require('fs').readFileSync('/dev/stdin', 'utf8')
var lines = input.split('\n')

var a = parseFloat(lines.shift()).toFixed(1)
var b = parseFloat(lines.shift()).toFixed(1)
var c = parseFloat(lines.shift()).toFixed(1)

console.log('MEDIA = ' + ((a*2+b*3+c*5)/10).toFixed(1))

0 comments on commit c2c9418

Please sign in to comment.