結果

問題 No.1439 Let's Compare!!!!
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-06-10 09:15:45
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 448 bytes
コンパイル時間 457 ms
コンパイル使用メモリ 82,112 KB
実行使用メモリ 91,780 KB
最終ジャッジ日時 2024-05-07 02:17:06
合計ジャッジ時間 3,281 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,268 KB
testcase_01 AC 36 ms
53,372 KB
testcase_02 AC 36 ms
53,236 KB
testcase_03 AC 38 ms
53,548 KB
testcase_04 AC 38 ms
53,348 KB
testcase_05 AC 37 ms
52,756 KB
testcase_06 AC 36 ms
52,444 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 105 ms
76,684 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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