Advertisement
Ahmed_Negm

I

Jun 2nd, 2022
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.56 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. #include<iostream>
  3. #include<cmath>
  4. #include<iomanip>
  5. #include<algorithm>
  6. #include<cstdlib>
  7. #include<cstring>
  8. #include<vector>
  9. #include<utility>
  10. using namespace std;
  11.  
  12. #define ll long long
  13. #define nl '\n'
  14. #define sz(x) int(x.size())
  15. #define all(x) x.begin(),x.end()
  16. #define rall(s)  s.rbegin(), s.rend()
  17. #define getline(s) getline(cin>>ws,s)
  18. #define ceill(n, m) (((n) / (m)) + ((n) % (m) ? 1 : 0))
  19. #define pi  3.141592653589793
  20.  
  21. /*
  22. ███╗░░██╗███████╗░██████╗░███╗░░░███╗
  23. ████╗░██║██╔════╝██╔════╝░████╗░████║
  24. ██╔██╗██║█████╗░░██║░░██╗░██╔████╔██║
  25. ██║╚████║██╔══╝░░██║░░╚██╗██║╚██╔╝██║
  26. ██║░╚███║███████╗╚██████╔╝██║░╚═╝░██║
  27. ╚═╝░░╚══╝╚══════╝░╚═════╝░╚═╝░░░░░╚═╝
  28.  
  29. */
  30.  
  31. void Fast_IO(){
  32. ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  33. // freopen("filename.in", "r", stdin);
  34. #ifndef ONLINE_JUDGE
  35. freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  36. #endif
  37. }
  38.  
  39.  
  40.  
  41.  
  42.  
  43. void solve(){
  44.  
  45. ll x,y; cin>>x>>y;
  46. cout<<(x%2 or y%2 ? "hasan":"abdullah")<<nl;
  47.  
  48.  
  49.  
  50. }
  51.  
  52. int main(){
  53.     Fast_IO();
  54. int t =1;
  55. cin>>t;
  56. while(t--){
  57. solve();
  58. }
  59. return 0;
  60. }  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement