結果
| 問題 | No.2030 Googol Strings |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2022-08-05 21:58:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 77,184 KB |
| 最終ジャッジ日時 | 2026-04-04 21:18:08 |
| 合計ジャッジ時間 | 1,573 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 |
ソースコード
import sys
input=sys.stdin.readline
write=sys.stdout.write
T=int(input())
Ans=[""]*T
for t in range(T):
x=input()[:-1]
y=input()[:-1]
if x+y==y+x:
Ans[t]="X" if len(x)>len(y) else "Y"
elif x+y>y+x:
Ans[t]="X"
else:
Ans[t]="Y"
write("\n".join(Ans))
Kazun