habiba3azb

Untitled

Jun 1st, 2022
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. /* اللهم لا سهل الا ما جعلته سهلا وانت تجعل الحزن ان شأت سهلا */
  2. #include <iostream>
  3. #include<cmath>
  4. #include <sstream>
  5. #include<algorithm>
  6. #include<string>
  7. #include<limits.h>
  8. #include<list>
  9. #include <iomanip>
  10. #include<utility>
  11. #include <cctype>
  12. #include <vector>
  13. #include <set>
  14. #include<unordered_set>
  15. #include<map>
  16. #include<stack>
  17. #include<queue>
  18. #include<numeric>
  19. #define getline(s) getline(cin >> ws ,s)
  20. #define ll long long
  21. #define sz(s) (int)(s.size())
  22. const int M = 2 * 1e5 + 5;
  23. #define PI 3.14159
  24. #define ull unsigned long long
  25. #define all(s) s.begin(), s.end()
  26. #define Mod 1'000'000'007
  27. #define to_binary(bin) stoll(bin, nullptr, 10)
  28. #define ceill(n, m) (((n) / (m)) + ((n) % (m) ? 1 : 0))
  29. //punshback;
  30. // freopen("equal.in", "r", stdin);
  31. /* #ifndef ONLINE_JUDGE
  32. freopen("machines.in", "r", stdin), freopen("standard output", "w", stdout);
  33. #endif*/
  34.  
  35. using namespace std;
  36.  
  37.  
  38.  
  39. int main() {
  40. ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  41. ll n , m; cin >> n >> m;
  42. if(n == 2 or n == 3 or m == 3 or m == 2) cout << "YES";
  43. else cout << "NO";
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. return 0;
  55. }
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. // last digit % 10
  68. //
  69. // how to find second diagonal (i + j) == (n - 1)
  70. // how to find main diaganol i == j
  71. //
  72. //cout << (mp.count(any number thar check is here or not ) ? "found\n" : "not found \n");
  73. // vector < vector < int > > grid (n,vector<int>(m));
  74. // cout<<fixed<<setprecision(6);
  75. //transform(all(s), s.begin(), ::towlower);
  76. // std::next_permutation(s.begin(), s.end()) ;
  77. // test = min(test, 26 - test);
  78. // return cout<<"NO",0 ;
  79. // if (i % 3 != 0 and i % 10 != 3)vec.push_back(i);
  80. // reverse(vec.begin() + m, vec.begin() + s + 1 );
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
Advertisement
Add Comment
Please, Sign In to add comment