結果
問題 | No.2030 Googol Strings |
ユーザー |
![]() |
提出日時 | 2022-08-05 23:38:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 85 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 450 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 75,776 KB |
最終ジャッジ日時 | 2024-09-15 21:28:00 |
合計ジャッジ時間 | 3,299 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 16 |
ソースコード
import sys input = sys.stdin.readline T=int(input()) for t in range(T): x = input().strip() y = input().strip() xy = x+y yx = y+x if xy > yx: print("X") elif xy < yx: print("Y") else: print("X" if len(x)>len(y) else "Y")