CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 01:28:10 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=619f125a74b5853ab3899f8b9f2d1fecc90b97894b875c55ba03e31eab91f04fa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22TlzVcf54dywk0UrQ0S05SARKhIBp2hbX%22%3B%7D; HttpOnly; Path=/
cf-ray: 98db0f05ddcc4e3d-BLR
Comparators - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- bool cmd(int x, int y, int z){
- return abs(x-y)<=abs(y-z);
- }
- int main() {
- int t;
- cin>>t;
- while(t--){
- int n;
- cin>>n;
- int a[n];
- for (int i=0; i<n; i++) cin>>a[i];
- sort(a,a+n,cmd);
- for (int i=0; i<n; i++){
- cout<<a[i]<<" ";
- }
- cout<<"\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
π ChangeNOW Exploit
JavaScript | 8 sec ago | 0.24 KB
-
π Swapzone +37% glitch
JavaScript | 17 sec ago | 0.24 KB
-
π¨ Free Crypto Method π¨
JavaScript | 26 sec ago | 0.24 KB
-
π‘ EASY MONEY GUIDE β
Working
JavaScript | 46 sec ago | 0.24 KB
-
β
Make $2500 in 20 minutesβ 6
JavaScript | 52 sec ago | 0.25 KB
-
π₯ Exchange profit method
JavaScript | 55 sec ago | 0.24 KB
-
π Swapzone +37% glitch β 3
JavaScript | 1 min ago | 0.25 KB
-
π MAKE $2500 IN 15 MIN β
Working
JavaScript | 1 min 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