結果

問題 No.1439 Let's Compare!!!!
ユーザー mioupa
提出日時 2021-03-29 02:48:31
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 672 bytes
コンパイル時間 1,810 ms
コンパイル使用メモリ 159,444 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 09:39:35
合計ジャッジ時間 5,554 ms
ジャッジサーバーID
(参考情報)
judge1 / 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