結果
問題 |
No.1439 Let's Compare!!!!
|
ユーザー |
![]() |
提出日時 | 2021-03-26 22:10:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 534 bytes |
コンパイル時間 | 321 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-11-28 23:25:47 |
合計ジャッジ時間 | 2,187 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 RE * 11 |
ソースコード
# 1439 : Let's Compare!!!! from sys import stdin N=int(stdin.readline()) strST=[0]*2 S=0 T=1 strST[S]=stdin.readline().rstrip() strST[T]=stdin.readline().rstrip() Q=int(stdin.readline()) for i in range(Q): c,x,y=stdin.readline().split() x=int(x)-1 # y=int(y) if c=='S': tStr=S else: tStr=T strST[tStr]=strST[tStr][0:x]+y+strST[tStr][x+1:] intS=int(strST[S]) intT=int(strST[T]) if intS>intT: print('>') elif intS<intT: print('<') else: print('=')