Skip to content

Commit

Permalink
Merge pull request #4 from AthyrsonLopes/main
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielduete authored Oct 24, 2022
2 parents 2bc6df5 + 1211292 commit a660d49
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iniciante/athyrsonlopes/1015.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var input = require('fs').readFileSync('/dev/stdin', 'utf8'); var lines = input.split('\n');

var [x1, y1] = lines.shift().split(" "); var [x2, y2] = lines.shift().split(" ");

var total = Math.sqrt(Math.pow(x2-x1,2) + Math.pow(y2-y1,2));

console.log(total.toFixed(4));

0 comments on commit a660d49

Please sign in to comment.