結果
| 問題 |
No.1192 半部分列
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 15:51:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 343 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 75,776 KB |
| 最終ジャッジ日時 | 2025-06-12 15:51:55 |
| 合計ジャッジ時間 | 2,513 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 15 |
ソースコード
def is_subsequence(a, b):
it = iter(b)
return all(c in it for c in a)
s = input().strip()
t = input().strip()
if is_subsequence(s, t):
print(-1)
else:
# 生成s的字典序最小的可能字符串
# 这里直接输出s,因为s本身不是t的子序列,并且是s的字典序最小的可能字符串之一
print(s)
gew1fw