题目链接:
https://ac.nowcoder.com/acm/contest/881/F
思路:
AC代码:
#include<bits/stdc++.h>
#define up(i, x, y) for(int i = x; i <= y; i++)
#define down(i, x, y) for(int i = x; i >= y; i--)
#define maxn ((int)1e5 + 10)
#define INF 0x3f3f3f3f
using namespace std;
typedef long long ll;
ll x1, x2, x3, y1, y2, y3;
int main()
{
while(cin>>x1>>y1>>x2>>y2>>x3>>y3)
{
cout<< (abs((x1 * y2 + x3 * y1 + x2 * y3) - (x1 * y3 + x3 * y2 + x2 * y1)) * 11 ) << '\n';
}
}