結果

問題 No.2030 Googol Strings
ユーザー ikomaikoma
提出日時 2022-08-05 23:38:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 80,704 KB
最終ジャッジ日時 2023-10-14 01:43:38
合計ジャッジ時間 3,177 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
76,952 KB
testcase_01 AC 78 ms
71,000 KB
testcase_02 AC 80 ms
72,220 KB
testcase_03 AC 73 ms
70,996 KB
testcase_04 AC 102 ms
76,980 KB
testcase_05 AC 77 ms
71,064 KB
testcase_06 AC 84 ms
78,052 KB
testcase_07 AC 86 ms
80,704 KB
testcase_08 AC 87 ms
80,448 KB
testcase_09 AC 79 ms
71,220 KB
testcase_10 AC 78 ms
71,148 KB
testcase_11 AC 79 ms
70,992 KB
testcase_12 AC 106 ms
76,884 KB
testcase_13 AC 99 ms
76,864 KB
testcase_14 AC 79 ms
71,000 KB
testcase_15 AC 84 ms
71,088 KB
testcase_16 AC 83 ms
75,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

T=int(input())
for t in range(T):
    x = input().strip()
    y = input().strip()
    xy = x+y
    yx = y+x
    if xy > yx:
        print("X")
    elif xy < yx:
        print("Y")
    else:
        print("X" if len(x)>len(y) else "Y")
0