結果
| 問題 |
No.1439 Let's Compare!!!!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-20 00:23:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 1,553 ms / 2,000 ms |
| コード長 | 487 bytes |
| コンパイル時間 | 1,606 ms |
| コンパイル使用メモリ | 168,024 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-17 13:38:27 |
| 合計ジャッジ時間 | 12,435 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1e+9;
const ll LINF = (ll)pow(10,18);
int main(){
int n;
cin >> n;
string s,t;
cin >> s >> t;
int q;
cin >> q;
char u,y;
int x;
for(int i=0; i<q; i++){
cin >> u >> x >> y;
if(u == 'S') s[x-1] = y;
else t[x-1] = y;
if(s > t) cout << '>' << endl;
else if(s < t) cout << '<' << endl;
else cout << '=' << endl;
}
}