Miyago147852

P5 canMarry

Oct 13th, 2022
1,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #define endl "\n"
  3. #define endll "\n\n"
  4. #define pb push_back
  5. #define IO ios_base::sync_with_stdio(0)
  6. #define ll long long
  7. #define inf 0x3f3f3f3f
  8. #define MAXN inf
  9. #define MINN -inf
  10.  
  11. using namespace std;
  12.  
  13. class Solution{
  14.     public:
  15.  
  16.     private:
  17.    
  18. };
  19.  
  20. signed main(){
  21.     IO;
  22.     #ifdef DEBUG
  23.         cin.tie(0);cout.sync_with_stdio(0);
  24.         string rootPath = "./";
  25.          freopen((rootPath+"t.in").c_str(), "r", stdin);
  26.          freopen((rootPath+"t.out").c_str(), "w", stdout);
  27.     #endif
  28.  
  29.     // TODO
  30.  
  31.     int a, b;
  32.     int canMarry[] = {18, 16};
  33.  
  34.     cin >> a >> b;
  35.     if (b >= canMarry[a] || b >= canMarry[a])
  36.         cout << "You are marriageable" << endl;
  37.     else
  38.         cout << "You are NOT marriageable" << endl;
  39.  
  40.     return EXIT_SUCCESS;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment