結果
| 問題 | No.1439 Let's Compare!!!! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-26 22:21:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 567 bytes |
| 記録 | |
| コンパイル時間 | 525 ms |
| コンパイル使用メモリ | 68,888 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-28 23:52:52 |
| 合計ジャッジ時間 | 1,913 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 2 WA * 15 |
ソースコード
#include<iostream>
#include<cmath>
using namespace std;
inline void query(int& st, int x, int y)
{
int de=pow(10,x-1);
st -= (st/de)%10 * de;
st += y*de;
}
int main()
{
int N,S,T,Q;
cin >> N >> S >> T >> Q;
char c;
int x,y;
for(int i=0; i<Q; i++)
{
cin >> c >> x >> y;
if(c == 'S')
{
query(S,x,y);
}else{
query(T,x,y);
}
if(S > T) cout << '>' << endl;
else if(T == S) cout << '=' << endl;
else cout << '<' << endl;
}
return 0;
}