結果

問題 No.1439 Let's Compare!!!!
ユーザー lie_of_lillielie_of_lillie
提出日時 2021-05-06 12:14:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 437 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,940 KB
実行使用メモリ 13,660 KB
最終ジャッジ日時 2023-10-12 05:13:12
合計ジャッジ時間 6,988 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
12,952 KB
testcase_01 AC 19 ms
8,568 KB
testcase_02 AC 18 ms
8,532 KB
testcase_03 AC 19 ms
8,568 KB
testcase_04 AC 19 ms
8,492 KB
testcase_05 AC 19 ms
8,484 KB
testcase_06 AC 19 ms
8,624 KB
testcase_07 AC 32 ms
8,760 KB
testcase_08 AC 41 ms
8,780 KB
testcase_09 AC 26 ms
8,616 KB
testcase_10 AC 754 ms
13,660 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
S=list(map(int, list(input())))
T=list(map(int, list(input())))
Q=int(input())
import collections
que = collections.deque()
for q in range(Q):
    flag, s, v = input().split()
    s = int(s)-1
    v = int(v)
    if flag == "S":
        S[s] = v
    else:
        T[s] = v

    if S > T:
        que.append(">")
    elif S == T:
        que.append("=")
    else:
        que.append("<")

while que:
    print(que.popleft())
0