Codeforces 1108A Two distinct points

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/polanwind/article/details/87434726
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>

using namespace std;

int main() {
	int n;
	int a, b, c, d;
	scanf("%d", &n);
	for (int i = 1;i <= n;++i) {
		scanf("%d %d %d %d", &a, &b, &c, &d);
		if (a == d) {
			printf("%d %d\n", b, c);
		}
		else {
			printf("%d %d\n", a, d);
		}
	}
	return 0;
}

猜你喜欢

转载自blog.csdn.net/polanwind/article/details/87434726