結果

問題 No.2030 Googol Strings
ユーザー KudeKude
提出日時 2022-08-05 22:01:30
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 80,792 KB
最終ジャッジ日時 2023-10-13 22:51:19
合計ジャッジ時間 3,050 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
78,468 KB
testcase_01 AC 71 ms
71,448 KB
testcase_02 AC 67 ms
72,604 KB
testcase_03 AC 64 ms
71,268 KB
testcase_04 AC 141 ms
77,940 KB
testcase_05 AC 70 ms
71,276 KB
testcase_06 AC 74 ms
78,296 KB
testcase_07 AC 77 ms
80,632 KB
testcase_08 AC 77 ms
80,792 KB
testcase_09 AC 71 ms
71,116 KB
testcase_10 AC 73 ms
71,364 KB
testcase_11 AC 71 ms
71,376 KB
testcase_12 AC 144 ms
78,496 KB
testcase_13 AC 126 ms
78,416 KB
testcase_14 AC 71 ms
71,288 KB
testcase_15 AC 71 ms
71,456 KB
testcase_16 AC 76 ms
75,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    x = input()
    y = input()
    s = x + y
    t = y + x
    print('XY'[s < t or s == t and len(x) < len(y)])
0