题目描述
blablabla
样例
blablabla
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla
算法2
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
let buf="";
process.stdin.on("readable",function(){
let chunk = process.stdin.read();
if(chunk) buf+=chunk.toString();
});
process.stdin.on("end",function(){
let lines = buf.split('\n');
let [x1 , y1] = lines[0].split(' ').map(x => {return parseFloat(x)});
let [x2 , y2] = lines[1].split(' ').map(x => {return parseFloat(x)});
let dx = x1 - x2;
let dy = y1 - y2;
console.log(Math.sqrt(dx * dx + dy * dy).toFixed(4));
});