結果
| 問題 | No.2030 Googol Strings |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-08-05 23:28:22 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,193 ms / 2,000 ms |
| + 11µs | |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 348 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 18,800 KB |
| 最終ジャッジ日時 | 2026-08-28 06:34:24 |
| 合計ジャッジ時間 | 11,300 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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