[STL训练]第36届ACM亚洲区大连站网络赛The kth great number (C++代码) ```cpp#include#includeusingnamespacestd;intmain(){inti;intn,m;chara;intb;multisetunix;multiset::iteratoritu;while(cin>>n>>m){for(i=0;i 题解列表 2019年09月06日 0 点赞 0 评论 1469 浏览 评分:0.0 C++ STL multiset从小到大保存最大的k个数 摘要:解题思路:使用STL multiset从小到大保存最大的k个数,那么第一个数就是第k个最大数注意事项:数字可以重复,所以不能用set参考代码:#include<iostream> #include<…… 题解列表 2024年05月05日 0 点赞 0 评论 711 浏览 评分:0.0 最后一个点卡数组小于k和多组数据 摘要:#include<bits/stdc++.h> using namespace std; int main() { int t,k; while(cin>>t>>k) …… 题解列表 2024年08月09日 0 点赞 0 评论 424 浏览 评分:0.0 The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 1 点赞 0 评论 431 浏览 评分:0.0 超短代码,你值得拥有!!!第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码) 摘要: #include using namespace std; int main() { int n,k; while(cin>>n>>k) …… 题解列表 2019年08月17日 0 点赞 0 评论 1823 浏览 评分:9.9 [STL训练]第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码) 题解:之前用setWA一发,入了一个坑点,发现是数字是一个独立的数。```比如:123用set来做第3大是31223用multiset来做第3大是2``````#includeusingnamespacestd;intmain(){intm, 题解列表 2019年09月27日 0 点赞 2 评论 750 浏览 评分:9.9 [STL训练]第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码) 题目大意:1.根据样例输入83I1I2I3QI5QI4Q样例输出123n表示8,一共有8个操作;m表示3,表示第3个大的数字。由于前3个都是I,则此时队列中有3个数字分别是1,2,3,下面是Q,则要输出第3个大的数字,显然队列中的3是第1个大的数字, 题解列表 2020年03月04日 0 点赞 0 评论 1195 浏览 评分:9.9 [STL训练]第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码)只做最好的思路! 摘要:这题题意还是比较好理解的,于是我也很快码出了,看似OK的代码,但是数组超限了,(1=>k){ m=0; memset(b,0,sizeof(b)); for(int i=0;i>a;…… 题解列表 2020年03月18日 0 点赞 0 评论 1109 浏览 评分:9.9 Hifipsysta-2066-[STL训练]第36届ACM亚洲区大连站网络赛The kth great number(C++代码) ```cpp#include#include#includeusingnamespacestd;intmain(){vectormyvect;intn,k;cin>>n>>k;chartmp_char;intval;myvect.clear();for(inti=0;i>tmp_char;if(tmp 题解列表 2022年02月10日 0 点赞 0 评论 581 浏览 评分:9.9 2066: [STL训练]第36届ACM亚洲区大连站网络赛The kth great number(注意人数不足k个的时候怎么处理) 摘要:解题思路:注意事项:注意不满k个的时候,输出最大的参考代码:#include<iostream>#include<set>using namespace std;int main(void){ int…… 题解列表 2022年08月23日 0 点赞 0 评论 623 浏览 评分:9.9
C++ STL multiset从小到大保存最大的k个数 摘要:解题思路:使用STL multiset从小到大保存最大的k个数,那么第一个数就是第k个最大数注意事项:数字可以重复,所以不能用set参考代码:#include<iostream> #include<…… 题解列表 2024年05月05日 0 点赞 0 评论 711 浏览 评分:0.0
最后一个点卡数组小于k和多组数据 摘要:#include<bits/stdc++.h> using namespace std; int main() { int t,k; while(cin>>t>>k) …… 题解列表 2024年08月09日 0 点赞 0 评论 424 浏览 评分:0.0
The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 1 点赞 0 评论 431 浏览 评分:0.0
超短代码,你值得拥有!!!第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码) 摘要: #include using namespace std; int main() { int n,k; while(cin>>n>>k) …… 题解列表 2019年08月17日 0 点赞 0 评论 1823 浏览 评分:9.9
[STL训练]第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码) 题解:之前用setWA一发,入了一个坑点,发现是数字是一个独立的数。```比如:123用set来做第3大是31223用multiset来做第3大是2``````#includeusingnamespacestd;intmain(){intm, 题解列表 2019年09月27日 0 点赞 2 评论 750 浏览 评分:9.9
[STL训练]第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码) 题目大意:1.根据样例输入83I1I2I3QI5QI4Q样例输出123n表示8,一共有8个操作;m表示3,表示第3个大的数字。由于前3个都是I,则此时队列中有3个数字分别是1,2,3,下面是Q,则要输出第3个大的数字,显然队列中的3是第1个大的数字, 题解列表 2020年03月04日 0 点赞 0 评论 1195 浏览 评分:9.9
[STL训练]第36届ACM亚洲区大连站网络赛The kth great number-题解(C++代码)只做最好的思路! 摘要:这题题意还是比较好理解的,于是我也很快码出了,看似OK的代码,但是数组超限了,(1=>k){ m=0; memset(b,0,sizeof(b)); for(int i=0;i>a;…… 题解列表 2020年03月18日 0 点赞 0 评论 1109 浏览 评分:9.9
Hifipsysta-2066-[STL训练]第36届ACM亚洲区大连站网络赛The kth great number(C++代码) ```cpp#include#include#includeusingnamespacestd;intmain(){vectormyvect;intn,k;cin>>n>>k;chartmp_char;intval;myvect.clear();for(inti=0;i>tmp_char;if(tmp 题解列表 2022年02月10日 0 点赞 0 评论 581 浏览 评分:9.9
2066: [STL训练]第36届ACM亚洲区大连站网络赛The kth great number(注意人数不足k个的时候怎么处理) 摘要:解题思路:注意事项:注意不满k个的时候,输出最大的参考代码:#include<iostream>#include<set>using namespace std;int main(void){ int…… 题解列表 2022年08月23日 0 点赞 0 评论 623 浏览 评分:9.9