結果
| 問題 |
No.2030 Googol Strings
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2022-07-02 19:33:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 314 bytes |
| コンパイル時間 | 271 ms |
| コンパイル使用メモリ | 82,376 KB |
| 実行使用メモリ | 77,548 KB |
| 最終ジャッジ日時 | 2024-12-17 17:09:10 |
| 合計ジャッジ時間 | 2,802 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 11 WA * 5 |
ソースコード
def solve():
x=input()
y=input()
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')
elif xx>yy:
print('X')
else:
if x<y:
print('Y')
else:
print('X')
for _ in range(int(input())):
solve()
とりゐ