随笔- 75
文章- 0
评论- 2
阅读-
2522
01 2024 档案
1332
摘要:#include <iostream> #include <queue> using namespace std; int main (){ queue<int> a; queue<int> b; int m,n,q; cin>>m>>n>>q; for(int i=1;i<=m;i++){ a.p
阅读全文
3354:【例61.2】 最近的一对
摘要:#include<iostream> #include<map> using namespace std; int main(){ map<int,int> a; int n,ans,mn; cin>>n; mn=1000; for(int i=1;i<=n;i++){ int x; cin>>x;
阅读全文
桶排列
摘要:class wanghuali { private: int x; int a[1000]={0}; int m=5; public: void set(){ for(int i=0;i<5;i++){ std::cin>>x; a[x]++; } } void get(){ for(int i=0
阅读全文
类和对象
摘要:#include <iostream> //#include <> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace
阅读全文
list
摘要://#include <iostream> //#include <list> //using namespace std; //int main(){ // list<int> a = {1,2,3}; // list<int> b = {4,5,6}; // list<int>::iterato
阅读全文