First one :
set <int> s;
s.insert (1);s.insert (3);s.insert (5);
auto tr = s.lower_bound (2);
s.erase (tr);
--------------------------
Second one :
set <int> s;
s.insert (1);s.insert (3);s.insert (5);
auto tr = s.lower_bound (2);
s.erase (tr);
# | User | Rating |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 159 |
4 | atcoder_official | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 150 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
What is the difference between them?
First one :
set <int> s;
s.insert (1);s.insert (3);s.insert (5);
auto tr = s.lower_bound (2);
s.erase (tr);
--------------------------
Second one :
set <int> s;
s.insert (1);s.insert (3);s.insert (5);
auto tr = s.lower_bound (2);
s.erase (tr);
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en5 | Halym2007 | 2024-01-28 20:15:14 | 0 | (published) | ||
en4 | Halym2007 | 2024-01-28 20:15:05 | 4 | Tiny change: 'ference?\n~~~~~\nF' -> 'ference?\n\n\n~~~~~\nF' (saved to drafts) | ||
en3 | Halym2007 | 2024-01-28 20:14:48 | 77 | (published) | ||
en2 | Halym2007 | 2024-01-28 20:13:34 | 79 | |||
en1 | Halym2007 | 2024-01-28 20:12:29 | 282 | Initial revision (saved to drafts) |
Name |
---|