結果

問題 No.1439 Let's Compare!!!!
コンテスト
ユーザー persimmon-persimmon
提出日時 2021-06-10 09:15:45
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
実行時間 -
コード長 448 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 221 ms
コンパイル使用メモリ 85,248 KB
実行使用メモリ 91,520 KB
最終ジャッジ日時 2026-05-23 09:18:45
合計ジャッジ時間 5,025 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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("<")

0