結果

問題 No.2030 Googol Strings
ユーザー ニックネーム
提出日時 2022-08-05 22:06:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 14,376 KB
最終ジャッジ日時 2024-09-15 18:59:11
合計ジャッジ時間 9,196 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 12 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    x = input(); y = input()
    m = len(x); n = len(y)
    for i in range(max(m, n)):
        if x[i%m] > y[i%n]: print("X"); break
        if x[i%m] < y[i%n]: print("Y"); break
    else: print("X" if m > n else "Y")
0