結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
m1025o1184t
|
| 提出日時 | 2019-12-03 04:57:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 600 bytes |
| コンパイル時間 | 1,808 ms |
| コンパイル使用メモリ | 175,864 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-25 08:57:56 |
| 合計ジャッジ時間 | 3,488 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
ソースコード
#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;
}
m1025o1184t