1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| var readline = require('readline'); var rl = readline.createInterface({ input: process.stdin });
// var lines = []; var nums = 0; rl.on('line', function (line){ // lines.push(line); nums = line })
rl.on('close', function() { slove(nums); })
function slove(nums) { // var lineToString = lines.toString(); // console.log(lineToString) // console.log(typeof(lineToString)); // var temp = lineToString.split(' '); // console.log(temp); // let a = Number(temp[0]); // let b = Number(temp[1]); // console.log(a) // console.log(b) // console.log('-------------') var tempA = Number(nums); // console.log(typeof(tempA)); tempA *= 340; console.log(tempA) }
|