Problem: 2057C - Trip to the Olympiad
Language: C++20 (GCC 13-64)

Previous submission (verdict: Wrong answer on test 1):
#include <bits/stdc++.h>
#include<array>
using namespace std;

#define pb push_back
#define __lg(x) (int)log2(x)
#define ep emplace
#define x first
#define y second
#define lowbit(x) (x & (-x))
#define T_T 0
#define endl "\n"
#define Endl "\n"
#define ls u << 1
#define rs u << 1 | 1
#define i128 __int128
#define nmsl cout << "输出：\t"; // 农贸税率
#define retrun return
typedef long long ll;
typedef double db;
typedef ll LL;
typedef unsigned long long ull;
typedef pair<string, int> PSI;
typedef pair<double, double> PDD;
// mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());
// mt19937_64 rng(time(0));
int T = 1;

namespace DBG {
    template <class T>
    ostream& operator<<(ostream& os, const vector<T>& v) {
        os << "[ ";
        for (const auto& x : v)
            os << x << ", ";
        os << "]";
        return os;
    }

    template <class A, class B>
    ostream& operator<<(ostream& os, const map<A, B>& mp) {
        os << "{ ";
        for (const auto& [k, v] : mp)
            os << k << ":" << v << ", ";
        os << "}";
        return os;
    }

    template <class T>
    void _dbg(const char* f, T t) {
        cerr << f << " = " << t << '\n';
    }

    template <class A, class... B>
    void _dbg(const char* f, A a, B... b) {
        while (*f != ',')
            cerr << *f++;
        cerr << " = " << a << ", ";
        _dbg(f + 1, b...);
    }
#define dbg(...) _dbg(#__VA_ARGS__, __VA_ARGS__)
}
using namespace DBG;

const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-8;
const int N = 2e5 + 5, M = 2e3 + 5;
const ll mod = 1e9 + 7;

#define int ll
#define double long double
typedef pair<int, int> PII;
ll n, m, x, y, k, l, r;
int a[N], b[N];

void jiangly()
{
    cin >> l >> r;
    int ans = 0;
    for (int i = 0; i <= 30; i++)
        if (r & (1 << i) && !(l & (1 << i)))
        {
            ans = ((r >> i) << i) - 1;
            break;
        }
    if (ans == l)ans++;
    //nmsl;
    cout << l << " " << ans << " " << r << endl;

}
/*

*/

signed main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    //cout << fixed << setprecision(3);
    cin >> T;
    while (T--)jiangly();
    return 0;
}

Submission (verdict: Accepted):
#include <bits/stdc++.h>
#include<array>
using namespace std;

#define pb push_back
#define __lg(x) (int)log2(x)
#define ep emplace
#define x first
#define y second
#define lowbit(x) (x & (-x))
#define T_T 0
#define endl "\n"
#define Endl "\n"
#define ls u << 1
#define rs u << 1 | 1
#define i128 __int128
#define nmsl cout << "输出：\t"; // 农贸税率
#define retrun return
typedef long long ll;
typedef double db;
typedef ll LL;
typedef unsigned long long ull;
typedef pair<string, int> PSI;
typedef pair<double, double> PDD;
// mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());
// mt19937_64 rng(time(0));
int T = 1;

namespace DBG {
    template <class T>
    ostream& operator<<(ostream& os, const vector<T>& v) {
        os << "[ ";
        for (const auto& x : v)
            os << x << ", ";
        os << "]";
        return os;
    }

    template <class A, class B>
    ostream& operator<<(ostream& os, const map<A, B>& mp) {
        os << "{ ";
        for (const auto& [k, v] : mp)
            os << k << ":" << v << ", ";
        os << "}";
        return os;
    }

    template <class T>
    void _dbg(const char* f, T t) {
        cerr << f << " = " << t << '\n';
    }

    template <class A, class... B>
    void _dbg(const char* f, A a, B... b) {
        while (*f != ',')
            cerr << *f++;
        cerr << " = " << a << ", ";
        _dbg(f + 1, b...);
    }
#define dbg(...) _dbg(#__VA_ARGS__, __VA_ARGS__)
}
using namespace DBG;

const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-8;
const int N = 2e5 + 5, M = 2e3 + 5;
const ll mod = 1e9 + 7;

#define int ll
#define double long double
typedef pair<int, int> PII;
ll n, m, x, y, k, l, r;
int a[N], b[N];

void jiangly()
{
    cin >> l >> r;
    int ans = 0;
    int res = 0;
    for (int i = 30; i; i--)
        if ((r & (1 << i)) && (!(l & (1 << i))))
        {
            ans = ((r >> i) << i) - 1;
            res = ((r >> i) << i);
            break;
        }
    while (l == ans || l == res)l++;
    //nmsl;
    cout << l << " " << ans << " " << res << endl;

}
/*

*/

signed main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    //cout << fixed << setprecision(3);
    cin >> T;
    while (T--)jiangly();
    return 0;
}