結果

問題 No.2030 Googol Strings
ユーザー stngstng
提出日時 2022-08-07 09:55:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 430 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 81,764 KB
実行使用メモリ 80,228 KB
最終ジャッジ日時 2023-10-17 05:54:12
合計ジャッジ時間 4,975 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 34 ms
53,384 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 70 ms
80,104 KB
testcase_08 WA -
testcase_09 AC 87 ms
74,960 KB
testcase_10 AC 88 ms
74,968 KB
testcase_11 AC 88 ms
74,972 KB
testcase_12 AC 142 ms
76,004 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for i in range(t):
    x = input()
    y = input()
    lx = len(x)
    ly = len(y)
    f = False
    for j in range(max(lx,ly)):
        if x[j%lx] < y[j%ly]:
            f = True
            print("Y")
            break
        elif x[j%lx] < y[j%ly]:
            f = True
            print("X")
            break
    if f == False:
        if lx < ly:
            print("Y")
        else:
            print("X")
0