結果
| 問題 |
No.2030 Googol Strings
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2022-08-05 22:09:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 423 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 180,244 KB |
| 最終ジャッジ日時 | 2024-09-15 19:04:42 |
| 合計ジャッジ時間 | 3,943 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 8 |
ソースコード
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')
hir355