結果

問題 No.2030 Googol Strings
ユーザー ShirotsumeShirotsume
提出日時 2022-06-30 15:42:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 687 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 76,912 KB
最終ジャッジ日時 2024-05-09 21:09:30
合計ジャッジ時間 3,172 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
76,544 KB
testcase_01 AC 39 ms
61,184 KB
testcase_02 AC 36 ms
59,392 KB
testcase_03 AC 30 ms
51,456 KB
testcase_04 AC 107 ms
76,816 KB
testcase_05 AC 38 ms
60,032 KB
testcase_06 AC 42 ms
66,816 KB
testcase_07 AC 48 ms
71,936 KB
testcase_08 AC 49 ms
71,808 KB
testcase_09 AC 42 ms
64,640 KB
testcase_10 AC 41 ms
65,280 KB
testcase_11 AC 65 ms
65,280 KB
testcase_12 AC 112 ms
76,740 KB
testcase_13 AC 90 ms
76,912 KB
testcase_14 AC 39 ms
62,208 KB
testcase_15 AC 43 ms
70,272 KB
testcase_16 AC 43 ms
71,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(x, y):
    if x + y < y + x:
        return 'Y'
    if x + y > y + x:
        return 'X'
    if x + y == y + x:
        return 'X' if len(x) > len(y) else 'Y'
        
for _ in range(int(input())):
    x = input()
    y = input()
    print(solve(x, y))
0