結果
問題 | No.2030 Googol Strings |
ユーザー | hir355 |
提出日時 | 2022-08-05 22:10:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 445 bytes |
コンパイル時間 | 529 ms |
コンパイル使用メモリ | 86,636 KB |
実行使用メモリ | 234,408 KB |
最終ジャッジ日時 | 2023-10-13 23:15:57 |
合計ジャッジ時間 | 6,088 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 220 ms
79,304 KB |
testcase_01 | AC | 115 ms
82,052 KB |
testcase_02 | AC | 167 ms
152,500 KB |
testcase_03 | AC | 67 ms
71,020 KB |
testcase_04 | AC | 209 ms
79,920 KB |
testcase_05 | AC | 115 ms
79,568 KB |
testcase_06 | AC | 291 ms
234,408 KB |
testcase_07 | AC | 229 ms
195,920 KB |
testcase_08 | AC | 230 ms
195,656 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 207 ms
158,056 KB |
ソースコード
t = int(input()) for _ in range(t): x = list(input()) x += x y = list(input()) y += y if len(x) >= len(y): for i in range(len(y), len(x)): y.append(y[i % len(y)]) if x >= y: print('X') else: print('Y') else: for i in range(len(x), len(y)): x.append(x[i % len(x)]) if x > y: print('X') else: print('Y')