牛客884912157号
牛客884912157号
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
牛客884912157号的博客
全部文章
(共5篇)
题解 | #图片整理
直接multiset完事 #include<bits/stdc++.h> using namespace std; int main(){ string str; multiset<char> st; while(cin>>str){ ...
C++
2022-03-20
2
350
题解 | #尼科彻斯定理#
思路很简单:统计每个数出现的次数,映射到一个足够长的map中,最后循环打印对应map上的数就行了 #include<bits/stdc++.h> using namespace std; int main(){ int num,ran; map<int,int>...
C++
图
2022-03-19
0
256
题解 | #尼科彻斯定理#
//哈希: //使用set存,set有自动排序的特性 "> using namespace std; int main(){ int m,n; set<int> gather; while(cin>>m){ int num1,num...
C++
哈希表
2022-03-14
13
846
题解 | #尼科彻斯定理#
//m的平方为要求的序列的中位数,奇数的个数为m #include<bits/stdc++.h> using namespace std; int main() { int m; while(cin>>m){ for(int i=0;i<m-1;i+...
C++
2022-03-14
1
280
题解 | #公共子串计算#
模拟法,看着比较直观,可以和65题通用,先得出子序列的位置信息,然后输出长度 #include<bits/stdc++.h> using namespace std; int main(){ string a,b; while(cin>>a>...
C++
2022-03-02
0
289