Guoxu_
Guoxu_
全部文章
分类
题解(10)
归档
标签
去牛客网
登录
/
注册
Guoxu_的博客
全部文章
(共1篇)
题解|Boss的礼物
思路 使用暴力枚举,对于每一件礼物都遍历其颜色,检查它是否还符合条件。 在上一步的基础进一步优化使用hash表来加速遍历颜色的过程。 代码实现 #include <bits/stdc++.h> using namespace std; using ll = long long; in...
C++
哈希表
2024-02-21
0
226