AcWing 1671. 三角形
三角形题中的pair的用法
#include <iostream>
#include <algorithm>
#include <vector>
#define x first
#define y second
using namespace std;
typedef long long LL;
const int N = 2e4 + 10, mod = 10010;
typedef pair<int, int> PII;
PII a[N];
int main()
{
int n;
cin >> n;
int flag = 0;
for (int i = 0; i < n; i ++ )
{
int x, y;
cin >> x >> y;
a[i] = {x, y};
}
直接就可以输入x , y值