题目链接:https://pintia.cn/problem-sets/994805046380707840/problems/1111914599412858881
题目大意:给一个100*100的正方形,求点 和点和点围成的三角形面积。并且保证点 出现在范围内。
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main(){
int x,y;
cin >> x >> y;
int s=5000;
s-=(100-x)*y;
s-=(x*y)/2;
s-=(100-x)*(100-y)/2;
cout << s;
return 0;
}