結果

問題 No.1439 Let's Compare!!!!
ユーザー O2MTO2MT
提出日時 2021-03-27 15:29:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 479 bytes
コンパイル時間 777 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 278,032 KB
最終ジャッジ日時 2024-05-06 21:57:03
合計ジャッジ時間 4,963 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
57,600 KB
testcase_01 WA -
testcase_02 AC 35 ms
52,096 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = list(str(input()))
T = list(str(input()))
Q = int(input())
A = set()
for i in range(N):
    if S[i] != T[i]:
        A.add(i)

for _ in range(Q):
    c,x,y = map(str,input().split())
    x = int(x)-1
    if c == 'T':
        T[x] = y
    else:
        S[x] = y
    if S[x] != T[x]:
        A.add(x)
    else:
        A.discard(x)
    a = list(A)[0]

    if S[a] > T[a]:
        print('>')
    elif S[a] < T[a]:
        print('<')
    else:
        print('=')
0