結果

問題 No.2030 Googol Strings
ユーザー ShirotsumeShirotsume
提出日時 2022-08-01 01:41:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 78,768 KB
最終ジャッジ日時 2023-09-28 13:25:30
合計ジャッジ時間 4,603 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 73 ms
71,232 KB
testcase_04 WA -
testcase_05 AC 78 ms
70,924 KB
testcase_06 AC 82 ms
75,208 KB
testcase_07 AC 85 ms
76,720 KB
testcase_08 AC 85 ms
76,540 KB
testcase_09 AC 81 ms
71,008 KB
testcase_10 AC 80 ms
71,164 KB
testcase_11 AC 80 ms
71,220 KB
testcase_12 AC 163 ms
78,296 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 80 ms
70,980 KB
権限があれば一括ダウンロードができます

ソースコード

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