結果

問題 No.2030 Googol Strings
ユーザー hir355hir355
提出日時 2022-08-05 22:09:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 1,567 ms
コンパイル使用メモリ 86,248 KB
実行使用メモリ 184,576 KB
最終ジャッジ日時 2023-10-13 23:13:25
合計ジャッジ時間 4,549 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 216 ms
79,960 KB
testcase_01 AC 110 ms
77,808 KB
testcase_02 AC 143 ms
120,740 KB
testcase_03 AC 75 ms
71,388 KB
testcase_04 WA -
testcase_05 AC 111 ms
77,916 KB
testcase_06 AC 206 ms
184,576 KB
testcase_07 AC 203 ms
168,120 KB
testcase_08 AC 202 ms
168,256 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 194 ms
142,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    x = list(input())
    y = list(input())
    if len(x) >= len(y):
        for i in range(len(y), len(x)):
            y.append(y[i % len(y)])
        if x >= y:
            print('X')
        else:
            print('Y')
    else:
        for i in range(len(x), len(y)):
            x.append(x[i % len(x)])
        if x > y:
            print('X')
        else:
            print('Y')
0