My issue
a=x and b=x also solves the problem, why it is not accepted
My code
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
#define PI 3.14159265
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define FORIR(i, a, n) for (int i = a; i < n; i++)
#define FORI(i, n) FORIR(i, 0, n)
#define FORR(a, n) FORIR(i, a, n)
#define FOR(n) FORIR(i, 0, n)
#define EACH(x, a) for (auto &x : a)
#define DBG(x) cerr << "L" << __LINE__ << ": " << #x << " = " << dbg(x) << endl;
#define yes() cout<<"YES"<<"\n";
#define no() cout<<"NO"<<"\n";
#define endl '\n'
// clang-format off
template <class T> string dbg(T x) { return to_string(x); }
template <class K, class V> string dbg(pair<K, V> p) { return "(" + dbg(p.first) + "," + dbg(p.second) + ")"; }
template <class It> string dbg(It it, It end) {
string _dbg_s = "[ ";
while (it != end) _dbg_s += dbg(*(it++)) + " ";
return _dbg_s + "]";
}
template <class T> string dbg(vector<T> v) { return dbg(all(v)); }
template <class T> void read(vector<T> &v,int n) { FOR(n) cin >> v[i]; }
// clang-format on
/******************************************************************************/
void solve() {
ll x;
cin>>x;
cout<<x<<" "<<x;
cout<<endl;
}
int main() {
ios::sync_with_stdio(false);
ll t=1;
cin>>t;
while(t--)
{solve();}
return 0;
}
Problem Link: XOR And Multiply Practice Coding Problem - CodeChef