0% found this document useful (0 votes)
12 views2 pages

NP

The document contains C++ code for comparing two integer or string variables. It defines macros, includes libraries, sets optimizations. A loop iterates over test cases, reading two values and comparing them, outputting the result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

NP

The document contains C++ code for comparing two integer or string variables. It defines macros, includes libraries, sets optimizations. A loop iterates over test cases, reading two values and comparing them, outputting the result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

/*#pragma GCC optimize("Ofast")

#pragma GCC optimize("unroll-loops")


#pragma GCC target("avx,avx2,fma")*/
// only when really needed

/* GNU G++17 7.3.0: No long long for faster code


GNU G++17 9.2.0 (64 bit, msys 2): Long long only for faster code */

#include <bits/stdc++.h>

#define for1(i,a,b) for (int i = a; i <= b; i++)


#define for2(i,a,b) for (int i = a; i >= b; i--)
#define int long long

#define sz(a) (int)a.size()


#define pii pair<int,int>
#define pb push_back

/*
__builtin_popcountll(x) : Number of 1-bit
__builtin_ctzll(x) : Number of trailing 0
*/

#define PI 3.1415926535897932384626433832795
#define INF 1000000000000000000
#define MOD 1000000007
#define MOD2 1000000009
#define EPS 1e-6

using namespace std;

signed main() {

ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

// freopen("cf.inp", "r", stdin);


// freopen("cf.out", "w", stdout);

int t;
cin >> t;
while (t--) {
int a, c;
cin >> a;
if (a > 0) {
int b; cin >> b;
while (b--) a *= 10;
}
else {
string b; cin >> b;
}

cin >> c;
if (c > 0) {
int d; cin >> d;
while (d--) c *= 10;
}
else {
string d; cin >> d;
}
if (a < c) cout << "X < Y\n";
else if (a == c) cout << "X = Y\n";
else cout << "X > Y\n";
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy