結果
| 問題 | No.2030 Googol Strings |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-08-05 23:28:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 1,203 ms / 2,000 ms |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 584 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 17,916 KB |
| 最終ジャッジ日時 | 2026-04-05 00:20:57 |
| 合計ジャッジ時間 | 11,700 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
x=input().strip()
y=input().strip()
for i in range(max(len(x)*2,len(y)*2)):
if x[i%len(x)]>y[i%len(y)]:
print("X")
break
elif x[i%len(x)]<y[i%len(y)]:
print("Y")
break
else:
if len(x)>len(y):
print("X")
else:
print("Y")
titia