結果
問題 | No.1439 Let's Compare!!!! |
ユーザー | NoaSaber |
提出日時 | 2021-04-01 23:27:04 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 659 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 87,072 KB |
実行使用メモリ | 79,216 KB |
最終ジャッジ日時 | 2023-08-23 06:49:49 |
合計ジャッジ時間 | 6,053 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,372 KB |
testcase_01 | AC | 69 ms
71,584 KB |
testcase_02 | AC | 73 ms
71,504 KB |
testcase_03 | AC | 72 ms
75,268 KB |
testcase_04 | AC | 75 ms
75,632 KB |
testcase_05 | AC | 69 ms
71,532 KB |
testcase_06 | AC | 68 ms
71,344 KB |
testcase_07 | AC | 341 ms
79,216 KB |
testcase_08 | AC | 427 ms
78,984 KB |
testcase_09 | AC | 156 ms
78,232 KB |
testcase_10 | TLE | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
ソースコード
N=int(input()) S=list(input()) T=list(input()) Q=int(input()) S_set,T_set=set([300000]),set([300000]) for i in range(N): if S[i]>T[i]: S_set.add(i) elif S[i]<T[i]: T_set.add(i) for i in range(Q): c,x,y=input().split() x=int(x)-1 if c=="T": T[x]=y if c=="S": S[x]=y if int(T[x])<int(S[x]): S_set.add(x) T_set.discard(x) elif int(T[x])>int(S[x]): T_set.add(x) S_set.discard(x) else: T_set.discard(x) S_set.discard(x) if min(S_set)<min(T_set): print(">") elif min(S_set)>min(T_set): print("<") else: print("=")