結果

問題 No.1439 Let's Compare!!!!
ユーザー mioupa
提出日時 2021-03-29 02:48:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 672 bytes
コンパイル時間 2,801 ms
コンパイル使用メモリ 193,492 KB
最終ジャッジ日時 2025-01-20 00:26:46
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <stdio.h>
#include <math.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define ll long long
#define be(x) x.begin(), x.end()
using namespace std;

int main()
{
    int n,q;
    string s,t;
    cin >> n >> s >> t >> q;

    rep(i,q){
        string c;
        int x,y;
        cin >> c >> x >> y;

        if(c=="S"){
            s[x-1] = y;
        }
        else{
            t[x-1] = y;
        }
        ll san = stoll(s);
        ll tan = stoll(t);
   
        if(san>tan) cout <<">"<<endl;
        else if (san==tan) cout << "="<<endl;
        else cout<<"<"<<endl;
   
    }
    return 0;
}
0