結果

問題 No.2030 Googol Strings
ユーザー rlangevinrlangevin
提出日時 2022-08-29 00:14:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 306 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 253,280 KB
最終ジャッジ日時 2024-04-23 19:20:48
合計ジャッジ時間 4,250 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
77,312 KB
testcase_01 AC 70 ms
73,472 KB
testcase_02 AC 115 ms
109,312 KB
testcase_03 AC 34 ms
51,584 KB
testcase_04 AC 148 ms
77,184 KB
testcase_05 AC 74 ms
71,936 KB
testcase_06 AC 235 ms
204,600 KB
testcase_07 AC 306 ms
253,280 KB
testcase_08 AC 306 ms
253,152 KB
testcase_09 AC 119 ms
77,696 KB
testcase_10 AC 124 ms
78,976 KB
testcase_11 AC 124 ms
78,336 KB
testcase_12 AC 199 ms
76,928 KB
testcase_13 AC 180 ms
77,312 KB
testcase_14 AC 84 ms
75,648 KB
testcase_15 AC 185 ms
112,732 KB
testcase_16 AC 236 ms
172,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
ans = ["X", "Y"]
for _ in range(T):
    X = list(input())
    Y = list(input())
    if X + Y < Y + X:
        print("Y")
    elif X + Y > Y + X:
        print("X")
    else:
        if len(X) < len(Y):
            print("Y")
        else:
            print("X")    
0