wenbao与结构体
1 struct Node{ 2 int x, y, z; 3 bool operator < (const Node& a) const{ 4 return x < a.x; 5 } 6 }T[maxn], W[maxn];
1 T[i] = (Node){xx, yy, i};
2 W[i] = (Node){xx+yy*t, yy, 0};
只有不断学习才能进步!
1 struct Node{ 2 int x, y, z; 3 bool operator < (const Node& a) const{ 4 return x < a.x; 5 } 6 }T[maxn], W[maxn];
1 T[i] = (Node){xx, yy, i};
2 W[i] = (Node){xx+yy*t, yy, 0};
只有不断学习才能进步!