結果
問題 |
No.1439 Let's Compare!!!!
|
ユーザー |
|
提出日時 | 2021-03-29 02:47:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 672 bytes |
コンパイル時間 | 1,690 ms |
コンパイル使用メモリ | 166,844 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 09:39:23 |
合計ジャッジ時間 | 5,916 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 17 |
ソースコード
#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; }