CF1108A. Two distinct points (水题)

题意: 给出两个区间(可能相交, 重合, 覆盖), 要求找出两个不同的点在两个区间, 特判

水题, 直接判读输出即可

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <stdlib.h>
#include <vector>
#include <queue>
#include <cmath>
#include <stack>
#include <map>
using namespace std;
#define ms(x, n) memset(x,n,sizeof(x));
typedef  long long LL;
const LL maxn = 1e6+10;

int main()
{
    int q, l1, r1, l2, r2;
    cin >> q;
    while(q--){
        cin >> l1 >> r1 >> l2 >> r2;
        if(l1!=l2) cout << l1 << " "<< l2 << endl;
        else cout << r1 << " "<< l2 << endl;
    }

	return 0;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-10-23
  • 2021-09-25
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2022-01-19
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-05-23
相关资源
相似解决方案