結果

問題 No.2030 Googol Strings
ユーザー ShirotsumeShirotsume
提出日時 2022-06-30 15:42:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 413 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 84,700 KB
最終ジャッジ日時 2023-08-22 15:26:36
合計ジャッジ時間 5,000 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 163 ms
78,572 KB
testcase_01 AC 80 ms
71,496 KB
testcase_02 AC 77 ms
73,296 KB
testcase_03 AC 72 ms
71,460 KB
testcase_04 AC 161 ms
78,616 KB
testcase_05 AC 79 ms
71,504 KB
testcase_06 AC 85 ms
81,244 KB
testcase_07 AC 87 ms
84,700 KB
testcase_08 AC 90 ms
84,576 KB
testcase_09 AC 82 ms
71,232 KB
testcase_10 AC 82 ms
71,524 KB
testcase_11 AC 80 ms
71,356 KB
testcase_12 AC 164 ms
78,304 KB
testcase_13 AC 141 ms
78,132 KB
testcase_14 AC 80 ms
71,520 KB
testcase_15 AC 82 ms
71,832 KB
testcase_16 AC 85 ms
77,728 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