結果

問題 No.1439 Let's Compare!!!!
ユーザー karinohito
提出日時 2021-03-29 19:17:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,044 bytes
コンパイル時間 1,202 ms
コンパイル使用メモリ 102,292 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 11:48:09
合計ジャッジ時間 14,256 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 TLE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
//#include<atcoder/all>
#include <numeric>
#include <cmath>
#include <limits>
#include <stdio.h>
#include <iomanip>
#include <string> 
#include <vector>
#include <algorithm>
#include <utility> 
#include <tuple> 
#include <cstdint> 
#include <cstdio> 
#include <map> 
#include <queue>
#include <set> 
#include <stack> 
#include <deque> 
#include <unordered_map> 
#include <unordered_set>
#include <bitset> 
#include <cctype>
//using namespace atcoder;
using namespace std;
using ll = long long;
#define all(A) A.begin(),A.end()
using vll = vector<ll>;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
using Graph = vector<vector<pair<ll, ll>>>;
vector<bool> seen;
bool C = true;
vector<ll> dist;
ll mod = 998244353;


int main() {

	ll N,Q;
	string S, T;
	cin >> N >> S >> T>>Q;
	rep(q, Q) {
		char C, Y;
		ll X;
		cin >> C >> X >> Y;
		if (C == 'S') {
			S[X - 1] = Y;
		}
		else {
			T[X - 1] = Y;
		}
		if (S < T)cout << "<" << endl;
		else if (S == T)cout << "=" << endl;
		else cout << ">" << endl;
	}
}
0