結果
問題 | No.1439 Let's Compare!!!! |
ユーザー | lie_of_lillie |
提出日時 | 2021-05-06 13:24:47 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 544 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 87,020 KB |
実行使用メモリ | 103,048 KB |
最終ジャッジ日時 | 2023-10-12 06:05:28 |
合計ジャッジ時間 | 6,092 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 94 ms
76,120 KB |
testcase_01 | AC | 91 ms
71,692 KB |
testcase_02 | AC | 91 ms
71,684 KB |
testcase_03 | AC | 91 ms
71,500 KB |
testcase_04 | AC | 93 ms
71,764 KB |
testcase_05 | AC | 91 ms
71,764 KB |
testcase_06 | AC | 92 ms
71,620 KB |
testcase_07 | AC | 141 ms
79,268 KB |
testcase_08 | AC | 145 ms
78,760 KB |
testcase_09 | AC | 133 ms
78,776 KB |
testcase_10 | AC | 319 ms
103,048 KB |
testcase_11 | TLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
ソースコード
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 tmp = "=" for s, t in zip(S, T): if s > t: tmp = ">" break elif s == t: continue elif s < t: tmp = "<" break que.append(tmp) while que: print(que.popleft())