Untitled
user_1386288
c_cpp
02/14/2026 9:54 AM
1.0 KB
16
Indexable
#include <bits/stdc++.h>
using namespace std;
#define improve ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr);
#define ll long long
#define vll vector<ll>
#define el '\n'
#define all(v) v.begin(),v.end()
#define allR(v) (v).rbegin(), (v).rend()
void IOF() {
#ifndef ONLINE_JUDGE
freopen("../in.txt", "r", stdin);
freopen("../out.txt", "w", stdout);
#endif
}
void Solve() {
ll n, x, y;
cin >> n >> x >> y;
if (x < y) swap(x, y);
ll p = x - 1, rem = n - p;
if (rem > 0 && (y + rem) >= p) {
cout << "Possible" << endl;
return;
}
cout << "Impossible" << endl;
}
int main() {
IOF();
ll t = 1;
cin >> t;
while (t--) {
Solve();
}
return 0;
}
Editor is loading...
Leave a Comment