- #include<bits/stdc++.h>
- using namespace std;
- using ll=long long;
- #define debug(x) cout<<#x<<' '<<x<<endl
- //
- int main()
- {
- ll x1,y1,x2,y2,x3,y3;
- while (cin>>x1>>y1>>x2>>y2>>x3>>y3) {
- ll ans=abs(x1*y2+x2*y3+x3*y1-x1*y3-x2*y1-x3*y2)*11;
- printf("%lld\n",ans);
- }
- return 0;
- }
https://ac.nowcoder.com/acm/contest/881#question F 题
三角形
来源: http://www.bubuko.com/infodetail-3128854.html