結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー m1025o1184tm1025o1184t
提出日時 2019-12-03 04:57:50
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 600 bytes
コンパイル時間 1,705 ms
コンパイル使用メモリ 174,012 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-16 19:15:35
合計ジャッジ時間 3,747 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define all(a) (a).begin(),(a).end()
using namespace std;
typedef long long ll;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	int n;
	cin >> n;
	vector<vector<int>> ab(n, vector<int>(2));
	rep(i, n) {
		cin >> ab[i][0] >> ab[i][1];
	}
	vector<vector<int>> abc = ab;
	rep(i, n) {
		sort(all(ab[i]));
		auto result = unique(all(ab[i]));
		ab[i].erase(result, ab[i].end());
	}
	rep(i, n) {
		if (abc[i][0] == abc[i][1]) {
			puts("=");
			continue;
		}
		if (ab[i][0] == abc[i][0]) puts("<");
		else puts(">");
	}
	return 0;
}
0