結果

問題 No.2030 Googol Strings
ユーザー V_MelvilleV_Melville
提出日時 2022-08-05 23:53:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 14,992 KB
最終ジャッジ日時 2023-10-14 02:03:36
合計ジャッジ時間 1,977 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
7,792 KB
testcase_01 AC 19 ms
8,204 KB
testcase_02 AC 18 ms
9,264 KB
testcase_03 AC 18 ms
7,820 KB
testcase_04 AC 80 ms
7,924 KB
testcase_05 AC 17 ms
8,276 KB
testcase_06 AC 22 ms
12,624 KB
testcase_07 AC 23 ms
14,860 KB
testcase_08 AC 23 ms
14,992 KB
testcase_09 AC 18 ms
7,784 KB
testcase_10 AC 18 ms
8,224 KB
testcase_11 AC 18 ms
8,152 KB
testcase_12 AC 84 ms
7,828 KB
testcase_13 AC 27 ms
7,784 KB
testcase_14 AC 17 ms
8,164 KB
testcase_15 AC 19 ms
8,600 KB
testcase_16 AC 19 ms
9,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    x = input()
    y = input()
    if x+y > y+x:
        print('X')
    elif x+y < y+x:
        print('Y')
    else:
        if len(x) > len(y):
            print('X')
        else:
            print('Y')
    
0