From 99e2e923d0c77b02f3fb4ff648ea916954868606 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 28 Feb 2025 23:13:39 +0800 Subject: chore(store): move everything to store. --- works/solutions/acwing/1204.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 works/solutions/acwing/1204.cpp (limited to 'works/solutions/acwing/1204.cpp') diff --git a/works/solutions/acwing/1204.cpp b/works/solutions/acwing/1204.cpp deleted file mode 100644 index e3e5395..0000000 --- a/works/solutions/acwing/1204.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include -#include -#include - -int main() { - std::ios_base::sync_with_stdio(false); - - int repeat; - - int n; - std::cin >> n; - - std::set ids; - - while (std::cin >> n) { - auto result = ids.insert(n); - if (!result.second) - repeat = n; - } - - auto iter = ids.cbegin(); - - int last = *iter++; - - while (++last == *iter++) - ; - - std::cout << last << ' ' << repeat; - - return 0; -} -- cgit v1.2.3