You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include<bits/stdc++.h>
|
|
|
|
|
using namespace std;
|
|
|
|
|
int main() {
|
|
|
|
|
set<int> s;
|
|
|
|
|
set<int>::iterator iter;
|
|
|
|
|
for(int i = 1 ; i <= 5; ++i) {
|
|
|
|
|
s.insert(i);
|
|
|
|
|
}
|
|
|
|
|
for(iter = s.begin() ; iter != s.end() ; ++iter) {
|
|
|
|
|
cout<<*iter<<" ";
|
|
|
|
|
}
|
|
|
|
|
cout<<endl;
|
|
|
|
|
pair<set<int>::const_iterator,set<int>::const_iterator> pr;
|
|
|
|
|
pr = s.equal_range(3);
|
|
|
|
|
cout<<"<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><EFBFBD><EFBFBD> 3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>"<<*pr.first<<endl;
|
|
|
|
|
cout<<"<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 3<><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> "<<*pr.second<<endl;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|