Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define boAshraf ios_base::sync_with_stdio(false); cin.tie(NULL);
- #define ll long long
- #define sz(s) (int)(s).size()
- #define all(s) (s).begin(),(s).end()
- using namespace std;
- void sol();
- int main() {
- boAshraf
- int t = 1;
- cin >> t;
- while (t--) {
- sol();
- }
- return 0;
- }
- void sol() {
- int n,x,y;
- cin>>n>>x>>y;
- if(max(x,y)>n)return void(cout<<"Impossible\n");
- int mx=max(x,y),mn=min(x,y);
- cout<<(2*(mx-1)-mn>n?"Impossible\n":"Possible\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment