CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 05:09:20 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=e3f3ac1dffeda53ec7c018c41e8bcf8a3da37d815b9784e9d270aae14e600769a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22GLYpWsJKXkZlUVs7JO7lPEW5HddFPHRg%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d415a0ea901f95-BLR
#include <iostream>#include <iomanip>#include <vector>#include <string># - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <vector>
- #include <string>
- #include <queue>
- #include <map>
- #include <set>
- #include <string>
- #include <algorithm>
- #include <cmath>
- using namespace std;
- #define ll long long
- #define nl endl
- #define cy cout << "YES\n"
- #define cn cout << "NO\n"
- #define sz s.size()
- void sherry()
- {
- ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- int main()
- {
- sherry();
- ll n;
- cin >> n;
- deque<ll> dq;
- vector<ll> v(n);
- for (ll i = 0; i < n; i++)
- {
- cin >> v[i];
- }
- sort(v.begin(), v.end(), greater<ll>());
- for (ll i = 0; i < n; i++)
- {
- if (v[i] != v[i - 1])
- {
- dq.push_front(v[i]);
- }
- else
- {
- dq.push_back(v[i]);
- }
- }
- for (auto &i : dq)
- cout << i << " ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 2 sec ago | 0.10 KB
-
⭐⭐⭐Exchange Exploit⭐⭐
Java | 13 sec ago | 0.10 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 18 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 8
JavaScript | 18 sec ago | 0.25 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 25 sec ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ O
JavaScript | 27 sec ago | 0.25 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 36 sec ago | 0.10 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ 9
JavaScript | 37 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand