CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 11:20:48 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=c990cf476a78b310f68f2edbd392abd28d5c636adf01ae0daa924e09b3964b62a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%221oUqpEO0Dh--_E7xQxstcfZsRSscRZ89%22%3B%7D; HttpOnly; Path=/
cf-ray: 98de7327c9699dfd-BLR
#include "bits/stdc++.h"using namespace std;int main () { ios::sync_wit - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "bits/stdc++.h"
- using namespace std;
- int main () {
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- int cnt[100000 + 10];
- for (int i = 1; i <= 100000; ++i) cnt[i] = 0;
- int n;
- cin >> n;
- int remove = 0;
- for (int i = 1; i <= n; ++i) {
- int x;
- cin >> x;
- if (x > n) {
- ++remove;
- } else {
- cnt[x]++;
- }
- }
- for (int i = 1; i <= n; ++i) {
- if (i > cnt[i]) {
- remove += cnt[i];
- } else {
- remove += cnt[i] - i;
- }
- }
- cout << remove << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
β
Make $2500 in 20 minutesβ X
JavaScript | 3 sec ago | 0.25 KB
-
π‘ Instant BTC Profit Method β
Working
JavaScript | 7 sec ago | 0.24 KB
-
β
Marketplace Glitch β
Working NEVER SEEN BE...
JavaScript | 23 sec ago | 0.25 KB
-
π‘ Instant BTC Profit Method β
Working
JavaScript | 23 sec ago | 0.24 KB
-
ββ
Exploit 2500$ in 15 Minutesβββ H
JavaScript | 30 sec ago | 0.25 KB
-
π EASY MONEY GUIDE β
Working R
JavaScript | 38 sec ago | 0.25 KB
-
π Instant BTC Profit Method β
Working E
JavaScript | 47 sec ago | 0.25 KB
-
π‘ Instant BTC Profit Method β
Working
JavaScript | 49 sec ago | 0.24 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