結果

問題 No.2030 Googol Strings
ユーザー 👑 tamatotamato
提出日時 2022-08-05 21:42:24
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 482 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 80,484 KB
最終ジャッジ日時 2023-10-13 22:19:12
合計ジャッジ時間 2,975 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
77,196 KB
testcase_01 AC 73 ms
71,036 KB
testcase_02 AC 72 ms
72,348 KB
testcase_03 AC 69 ms
71,140 KB
testcase_04 AC 97 ms
77,164 KB
testcase_05 AC 73 ms
70,976 KB
testcase_06 AC 79 ms
78,140 KB
testcase_07 AC 83 ms
80,384 KB
testcase_08 AC 83 ms
80,484 KB
testcase_09 AC 76 ms
70,980 KB
testcase_10 AC 75 ms
70,916 KB
testcase_11 AC 74 ms
70,804 KB
testcase_12 AC 100 ms
76,816 KB
testcase_13 AC 95 ms
77,008 KB
testcase_14 AC 75 ms
71,288 KB
testcase_15 AC 81 ms
71,160 KB
testcase_16 AC 81 ms
75,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline

    for _ in range(int(input())):
        S = input().rstrip('\n')
        T = input().rstrip('\n')

        ST = "".join([S, T])
        TS = "".join([T, S])
        if ST > TS:
            print("X")
        elif ST < TS:
            print("Y")
        else:
            if len(S) > len(T):
                print("X")
            else:
                print("Y")


if __name__ == '__main__':
    main()
0