From 062c6b20d95b7bbc471ffb793ab4e1c8251e8f9a Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Tue, 20 Aug 2024 22:14:20 +0900 Subject: [PATCH] Add 23275.cpp --- 23xxx/23275.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 23xxx/23275.cpp diff --git a/23xxx/23275.cpp b/23xxx/23275.cpp new file mode 100644 index 00000000..137f75e5 --- /dev/null +++ b/23xxx/23275.cpp @@ -0,0 +1,26 @@ +#include +#include +using namespace std; + +void solve(void) { + int n; cin >> n; + unordered_set s; + for (int i=0; i> x; + s.insert(x); + } + + for (int i=1; i> x; + s.erase(x); + } + cout << *s.begin(); +} + +int main(void) { + ios::sync_with_stdio(false); + cin.tie(nullptr); + + solve(); + return 0; +} \ No newline at end of file