Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- int main()
- {
- int te;
- cin>>te;
- for(int t=1;t<=te;t++)
- {
- int ax,ay,bx,by,cx,cy,dx,dy;
- cin>>ax>>ay>>bx>>by>>cx>>cy;
- dy=cy+ay-by;
- dx=cx-bx+ax;
- int area=ax*by-bx*ay+bx*cy-cx*by+cx*ay-ax*cy;
- cout<<"Case "<<t<<": "<<dx<<" "<<dy<< " "<<abs(area)<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement