結果

問題 No.1439 Let's Compare!!!!
ユーザー da_abda_ab
提出日時 2021-03-26 22:31:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 558 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2024-05-06 16:15:26
合計ジャッジ時間 1,765 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 33 ms
10,752 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 29 ms
10,624 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 29 ms
10,496 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

# 1439 : Let's Compare!!!!

from sys import stdin

colNum=int(stdin.readline())
intST=[0]*2
S=0
T=1
intST[S]=int(stdin.readline().rstrip())
intST[T]=int(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':
        tgt=S
    else:
        tgt=T
    nThCol=int(intST[tgt]/10**(colNum-(x+1))%10)
    intST[tgt]+=(y-nThCol)*10**(colNum-(x+1))
    if intST[S]>intST[T]:
        print('>')
    elif intST[S]<intST[T]:
        print('<')
    else:
        print('=')


0