結果

問題 No.2030 Googol Strings
ユーザー asumo0729asumo0729
提出日時 2022-08-07 20:37:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 1,695 ms
コンパイル使用メモリ 81,324 KB
実行使用メモリ 76,828 KB
最終ジャッジ日時 2023-10-17 15:16:51
合計ジャッジ時間 4,476 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
76,828 KB
testcase_01 AC 42 ms
60,468 KB
testcase_02 AC 37 ms
58,688 KB
testcase_03 AC 33 ms
53,384 KB
testcase_04 AC 128 ms
76,520 KB
testcase_05 AC 41 ms
59,528 KB
testcase_06 AC 44 ms
64,380 KB
testcase_07 AC 49 ms
68,872 KB
testcase_08 AC 49 ms
68,872 KB
testcase_09 AC 43 ms
61,176 KB
testcase_10 AC 44 ms
61,512 KB
testcase_11 AC 43 ms
61,340 KB
testcase_12 AC 126 ms
76,400 KB
testcase_13 AC 105 ms
76,536 KB
testcase_14 AC 44 ms
60,988 KB
testcase_15 AC 45 ms
67,208 KB
testcase_16 AC 47 ms
68,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(x, y, s, t):
    if x == y:
        if len(s) < len(t):
            return 'Y'
        else:
            return 'X'
    if x > y:
        return 'X'
    return 'Y'


T = int(input())
for _ in range(T):
    s = input()
    t = input()
    X = s + t; Y = t + s
    ans = f(X, Y, s, t)
    print(ans)
0