report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Distance - MarisaOJ: Marisa Online Judge

Distance

Time limit: 1000 ms
Memory limit: 256 MB
You are given 2 points with integer coordinates $A(x_1, y_1), B(x_2, y_2)$ on Descartes plane. Print their distance. ### Input - 4 integers $x_1, y_1, x_2, y_2$. ### Output - Distance between point $A$ and $B$, rounded to 2 decimal places. ### Constraints - $(1 \le x_1, y_1, x_2, y_2 \le 1000)$. ### Example Input: ```1 1 2 2``` Output: ```1.41```
Input / Output and Condition
Hello Marisa!
A + B
A / B
Complex multiplication
Mushroom Classification
Integer equation
Age
Combine rectangles
String
Triangle
Rounded division
Circle
Calculator
The smallest and biggest
Rectangle
Segment
Distance
Ascending
Square number
Square numbers counting
Uppercase and lowercase
Letter Counting
Time format
Electricity bill
Eating mushroom
Topic
Basic
Rating 800
Solution (2) Solution