結果
| 問題 | No.2030 Googol Strings |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2022-08-05 21:58:59 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 77 ms / 2,000 ms |
| + 15µs | |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 95,848 KB |
| 実行使用メモリ | 92,160 KB |
| 最終ジャッジ日時 | 2026-08-28 04:39:51 |
| 合計ジャッジ時間 | 3,314 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_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