bdfz_2024_summer/test.cpp

13 lines
248 B
C++
Raw Normal View History

2024-08-10 04:20:24 +00:00
#include<bits/stdc++.h>
2024-08-12 02:07:56 +00:00
using namespace std;
2024-08-10 04:20:24 +00:00
int main(){
2024-08-12 02:07:56 +00:00
set<int>s;
s.insert(2);
s.insert(3);
auto it = s.lower_bound(2);
cout<<(*(--it))<<endl;
cout<<(*(++it))<<endl;
cout<<(*(--it))<<endl;
cout<<(*(--it))<<endl;
2024-08-07 16:14:36 +00:00
}