CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 02:55:45 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=718b8e01bcfc9cb5ea368cf74b90de4aa64cb3d0e037e5339741818ce913455aa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22Ygwq8XNEdqI614klDOmQlt1-iJ7I0_Gj%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d351f56978c1c9-BLR
Reading - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ll n, m;
- cin >> n >> m;
- vector<int> v1(n);
- vector<int> v2(n);
- for (int i = 0; i < n; i++)
- {
- cin >> v1[i];
- v2[i] = v1[i];
- }
- sort(v1.begin(), v1.end(), greater<int>());
- cout << v1[m - 1] << nl;
- auto it1 = v1.begin() + m;
- auto it2 = v1.end();
- v1.erase(it1, it2);
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < v1.size(); j++)
- {
- if (v2[i] == v1[j])
- {
- cout << i + 1 << " ";
- auto it3 = v1.begin() + j;
- v1.erase(it3);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 7
JavaScript | 6 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ P
JavaScript | 15 sec ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ E
JavaScript | 24 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ T
JavaScript | 32 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ B
JavaScript | 41 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ 3
JavaScript | 46 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 50 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ O
JavaScript | 59 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