Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "bits/stdc++.h"
- using namespace std;
- const int64_t mod = 998244353;
- int main () {
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- int T = 1;
- //~ cin >> T;
- for (int test_case = 1; test_case <= T; ++test_case) {
- //~ int n;
- //~ cin >> n;
- //~ int a[n + 1],b[n + 1];
- //~ for (int i = 1; i <= n; ++i) cin >> a[i];
- //~ for (int i = 1; i <= n; ++i) cin >> b[i];
- set<int> st;
- st.insert(10);
- st.insert(20);
- st.insert(30);
- //~ st.begin(), st.begin() + 1,st.begin() + 2,st.end();
- //~ auto it = st.begin(); //first elem
- //~ int n = (int) st.size();
- //~ advance(it,n - 1);
- //~ auto it = st.end(); //out of boundary
- //~ --it;
- //~ cout << *it << '\n';
- //~ cout << *st.rbegin() << '\n';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement