結果
問題 |
No.1439 Let's Compare!!!!
|
ユーザー |
|
提出日時 | 2021-03-26 21:35:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 780 bytes |
コンパイル時間 | 312 ms |
コンパイル使用メモリ | 82,444 KB |
実行使用メモリ | 189,440 KB |
最終ジャッジ日時 | 2024-11-28 22:13:16 |
合計ジャッジ時間 | 12,458 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 11 TLE * 2 |
ソースコード
N = int(input()) S = list(input()) T = list(input()) Q = int(input()) tigauketa = N for i in range(N): if S[i] != T[i]: tigauketa = i break if S > T: prevans = ">" elif S == T: prevans = "=" else: prevans = "<" for iii in range(Q): c, x, y = input().split() x = int(x) - 1 if c == "S": S[x] = y else: T[x] = y if x <= tigauketa: if S[x] == T[x]: print(prevans) continue else: tigauketa = x if S > T: prevans = ">" print(">") elif S == T: prevnans = "=" print("=") else: prevans = "<" print("<") else: print(prevans)