problem nowcoder 思路 把点按照奇偶分为4类,一个三角形的面积是整数当且仅当构成它的三个点中至少2个是同一类的,用总共的三角形减去这类即可。 一开始并没有发现这个性质。 // Decline is inevitable, // Romance will last forever. #include <bits/stdc++.h> using namespace std; //#define mp make_pair #define pii pair<int