結果

問題 No.2030 Googol Strings
ユーザー Shirotsume
提出日時 2022-08-01 01:41:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 77,184 KB
最終ジャッジ日時 2024-07-21 08:04:23
合計ジャッジ時間 2,752 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    x = input()
    y = input()
    if len(x) == len(y):
        if x < y:
            print('Y')
        else:
            print('X')
    if len(x) > len(y):
        if x[len(y)] >= y[0]:
            print('X')
        else:
            print('Y')
    if len(x) < len(y):
        if y[len(x)] >= x[0]:
            print('Y')
        else:
            print('X')

for _ in range(int(input())):
    solve()

0