結果
| 問題 |
No.1439 Let's Compare!!!!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-10 09:15:45 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 448 bytes |
| コンパイル時間 | 537 ms |
| コンパイル使用メモリ | 82,144 KB |
| 実行使用メモリ | 92,116 KB |
| 最終ジャッジ日時 | 2024-11-29 14:28:01 |
| 合計ジャッジ時間 | 2,896 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 RE * 11 |
ソースコード
n=int(input())
s=input()
sary=list(map(int,list(s)))
s=int(s)
t=input()
tary=list(map(int,list(t)))
t=int(t)
q=int(input())
query=[input() for _ in range(q)]
for tmp in query:
c,x,y=tmp.split()
x=int(x)
y=int(y)
if c=="S":
s-=pow(10,n-x)*sary[x-1]
s+=pow(10,n-x)*y
sary[x-1]=y
else:
t-=pow(10,n-x)*tary[x-1]
t+=pow(10,n-x)*y
tary[x-1]=y
if s>t:
print(">")
elif s==t:
print("=")
else:
print("<")