C + + Informatics Olympiad A one-pass question bank 1034 compute the Triangle area __c++
Source: Internet
Author: User
Calculate the area of a triangle
Time limit: 1000 ms Memory limit: 65536 KB
Number of submissions: 1813 Pass: 622
"topic description"
There is a triangle on the plane, its three vertex coordinates (x1, y1), (x2, y2), (x3, y3), then what is the area of the triangle, accurate to two decimal places.
Enter
Enter only one line, including 6 single-precision floating-point numbers, corresponding to x1, y1, x2, y2, X3, Y3, respectively.
Output
The output is also one line, the area of the output triangle, accurate to two digits after the decimal point.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.