摘要:
Tuple详解 定义 std::tuple<typename, ...args> 注意需要先声明头文件 include <tuple> 或 include "tuple" tuple 一般认为是一个不同类型元素的集合,常见用法可以用作结构体等。 基本函数 std::get template<size 阅读全文
![【详解】论C++的tuple](https://img2022.cnblogs.com/blog/2512238/202203/2512238-20220325125728694-925445456.png)
摘要:
【Acwing123】士兵 Description 给定 \(n\) (\(n \leq 10^4\)) 个点,每个点坐标为 \((x, y)\)。 你可以进行若干次操作,每次操作将一个点向上下左右四个方向一个一个单位。 求最少需要多少次操作,使得所有点 \(y\) 坐标相等, \(x\) 坐标相邻 阅读全文
![【Acwing123】士兵](https://img2022.cnblogs.com/blog/2512238/202203/2512238-20220325093719968-1285980215.png)