#include<bits/stdc++.h>
using namespace std;
int main()
{
int T,Ax,Ay,Bx,By,Cx,Cy,c=1,r;
// freopen("check.txt","r",stdin);
scanf("%d",&T);
while(T--)
{
scanf("%d%d%d%d%d%d",&Ax,&Ay,&Bx,&By,&Cx,&Cy);
r = (Ax*(By-Cy)+Ay*(Cx-Bx)+(Bx*Cy-Cx*By));
if(r<0)
r *= -1;
printf("Case %d: %d %d %d\n",c++,(Ax+Cx-Bx),(Ay+Cy-By),r);
}
return 0;
}
Thursday, July 30, 2015
1305 - Area of a Parallelogram
Subscribe to:
Post Comments (Atom)
Triathlon
Triathlon - CodeChef # include < bits/stdc++.h > using namespace std ; # define fi first # define se second # define mp ...
-
# include < bits/stdc++.h > using namespace std ; int main ( ) { int T , c = 1 ; double r1 , r2 , h , p ; // ...
-
# include < bits/stdc++.h > using namespace std ; int main ( ) { long long T , S , l , n , c = 1 ; // freopen(&qu...
-
# include < bits/stdc++.h > using namespace std ; int main ( ) { int T , n , p , q , c = 1 , i , w , t , arry [ 50 ] ; ...
Hard Rock Hotel and Casino Lake Tahoe - Mapyro
ReplyDeleteHard Rock 계룡 출장안마 Hotel and Casino 강릉 출장샵 Lake Tahoe 춘천 출장샵 - Find out 강릉 출장안마 the timings, photos, directions and a map 안성 출장샵 of Hard Rock Hotel and Casino Lake Tahoe,