摘要:
Design philosophy of C++ Allow the programmer full control, responsibility, and choice if they want it. 解释: C++ 强调程序员对代码的完全控制权,允许程序员在需要时直接管理内存、硬件资源等底层 阅读全文
摘要:
A. All-Star 每次操作至多可以把一个点插在根上,因此选择度数最多的点插在根上,然后根据深度标记边的方向。 #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using vi = vector<int>; u 阅读全文
摘要:
A. 两只脑斧 #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using vi = vector<int>; using pii = pair<int,int>; i 阅读全文
摘要:
B. osu!mania 按照题目的公式进行计算,注意四舍五入的精度问题。 #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using ldb = long doubl 阅读全文