CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 00:16:09 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=fbe5d144144f865ba1c8a95dae5bdae0215eb7cc6cc391771f33e5181c38c848a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22RJ8qDhOdD8a3Jnph1BLDNOA5i3ROxS6z%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d26828ad45c188-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
-
⭐ Free Crypto Method ⭐
JavaScript | 1 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 2 sec ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ S
JavaScript | 5 sec ago | 0.25 KB
-
📝 Crypto Swap Glitch ✅ Working
JavaScript | 10 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ G
JavaScript | 10 sec ago | 0.25 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 14 sec ago | 0.10 KB
-
📝 EASY MONEY GUIDE ✅ Working
JavaScript | 20 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ U
JavaScript | 20 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