KannaRyou
KannaRyou
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
KannaRyou的博客
全部文章
(共5篇)
题解 | #牛牛的mex#
#include <iostream> #include <vector> #include <unordered_map> using namespace std; int main(){ int n,q; cin >> n >...
C++
预处理
hash
2025-11-28
0
13
题解 | #串串香#
#include <iostream> #include <unordered_map> #include <cmath> using namespace std; int main(){ int n; cin >> n; st...
C++
哈希表
2025-11-28
0
9
题解 | #小红招募英雄#
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main(){ double p1,p2,p3,p4,p5; cin >>...
C++
数学
2025-11-28
0
13
题解 | BFS
#include <iostream> using namespace std; int main() { string s; cin >> s; int ans=0; bool is_ok=false;//重点 if(s.lengt...
2025-11-20
0
21
二分算法的基础知识
前言 这是一道牛客周赛的C题,题目用到了二分的知识,在这里总结一下。 https://ac.nowcoder.com/acm/contest/120553/C 一、题目描述 大概就是给以你一个数,让你在一个很多个区间找这个数是否在给的区间里面。 整体的思路就是 先把区间左端点排序,然后二分查找最后...
C++
二分查找
2025-11-08
1
29