結果

問題 No.1439 Let's Compare!!!!
ユーザー burita083burita083
提出日時 2021-03-26 22:57:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 725 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 8,756 KB
最終ジャッジ日時 2023-08-19 09:39:56
合計ジャッジ時間 2,018 ms
ジャッジサーバーID
(参考情報)
judge9 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,896 KB
testcase_01 AC 16 ms
7,960 KB
testcase_02 AC 15 ms
7,980 KB
testcase_03 AC 16 ms
8,040 KB
testcase_04 AC 18 ms
8,016 KB
testcase_05 AC 17 ms
7,932 KB
testcase_06 AC 16 ms
8,060 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 262 ms
8,300 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 = int(input())
T = int(input())
Q = int(input())
sl = len(str(S))
tl = len(str(T))
s = ""
t = ""


ok = True
for ss in str(S):
  if ok:
    if len(str(S)) < N:
      for i in range(N-len(str(S))):
        s += "0"
        ok = False
  s += ss

ok = True
for ss in str(T):
  if ok:
    if len(str(T)) < N:
      for i in range(N-len(str(T))):
        t += "0"
        ok = False
  t += ss
s = list(s)
t = list(t)
for _ in range(Q):
  A = list(map(str, input().split()))
  if A[0] == "S":
    s[int(A[1])-1] = A[2]
  else:
    t[int(A[1])-1] = A[2]
  sa = "".join(s)
  ta = "".join(t)
  if sa == ta:
    print("=")
    continue
  if sa > ta:
    print(">")
    continue
  else:
    print("<")
    continue
  
0