結果
| 問題 |
No.2030 Googol Strings
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2022-08-05 22:10:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 445 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 229,820 KB |
| 最終ジャッジ日時 | 2024-09-15 19:07:04 |
| 合計ジャッジ時間 | 4,456 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 WA * 7 |
ソースコード
t = int(input())
for _ in range(t):
x = list(input())
x += x
y = list(input())
y += y
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')
hir355