Advertisement
Ahmed_Negm

Untitled

Sep 25th, 2023
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define ll long long
  5. #define nl "\n"
  6.  
  7. void files(){
  8.     ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL);
  9.     #ifndef ONLINE_JUDGE
  10.         freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  11.     #endif
  12. }
  13.  
  14.  
  15. void solve(){
  16.     ll r, c, a, b;
  17.     cin>>r>>c>>a>>b;
  18.     if(r>c){
  19.         cout<<"YES"<<nl;
  20.         return;
  21.     }else if(r<=c){
  22.         cout<<"NO"<<nl;
  23.         return;
  24.     }
  25.  
  26.  
  27. }
  28.  
  29. int main(){
  30.     files();
  31.     int t = 1;
  32.     cin>>t;
  33.     for(int i=1; i<=t; i++){
  34.         cout<<"Case #"<<i<<": ";
  35.         solve();
  36.     }
  37.     return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement