Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
综合题目
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 7, Accepted users: 6
Problem 11610 : No special judgement
Problem description
  请将友元函数和拷贝构造函数一起来实现这样一个问题:给出三角形的三个坐标,求这个三角形的面积。在拷贝构造函数中输出copy constructor,友元函数中实现求面积过程。

Input
  每次输入六个浮点数x1,y1,x2,y2,x3,y3,分别表示三个坐标A(x1,y1),B(x2,y2),C(x3,y3)。

Output
  对于每一行的输入,在下一行输出拷贝构造函数中的字符串和面积,并保留两位小数。

Sample Input
0 0 1 0 0 1
Sample Output
copy constructor
copy constructor
copy constructor
0.50
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:19129 today,16242120 total, since 2010-05-07