結果
| 問題 |
No.2030 Googol Strings
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2022-07-02 19:40:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 131 ms / 2,000 ms |
| コード長 | 302 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 77,760 KB |
| 最終ジャッジ日時 | 2024-12-17 14:51:58 |
| 合計ジャッジ時間 | 2,183 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 |
ソースコード
def solve():
x=input()
y=input()
if x+y==y+x:
if x<y:print('Y')
else:print('X')
return
cx=0
while cx*len(x)<len(y):
cx+=1
cy=0
while cy*len(y)<len(x):
cy+=1
xx=x*(cx+1)
yy=y*(cy+1)
if xx<yy:print('Y')
else:print('X')
for _ in range(int(input())):
solve()
とりゐ