結果
| 問題 |
No.2030 Googol Strings
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2022-08-05 22:07:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,311 ms / 2,000 ms |
| コード長 | 249 bytes |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 14,380 KB |
| 最終ジャッジ日時 | 2024-09-15 19:02:21 |
| 合計ジャッジ時間 | 10,512 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 |
ソースコード
for _ in range(int(input())):
x = input(); y = input()
m = len(x); n = len(y)
for i in range(2*max(m, n)):
if x[i%m] > y[i%n]: print("X"); break
if x[i%m] < y[i%n]: print("Y"); break
else: print("X" if m > n else "Y")
ニックネーム