結果
| 問題 | No.3685 ワロングアンサーやんけ! |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-07-14 23:38:05 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
RE
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 408 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 96,324 KB |
| 実行使用メモリ | 91,208 KB |
| 最終ジャッジ日時 | 2026-09-05 12:39:53 |
| 合計ジャッジ時間 | 7,816 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 32 |
ソースコード
N, M = [int(s) for s in input().split()]
S = [*input()]
T = input()
if T == "Warong":
S[:M] = ["A"] * M
if "W" not in S[M:] and S[M:].count("?") == 1:
S[S.index("?")] = "W"
else:
if "W" in S[M:] and all(s in ("A", "?") for s in S[:M]) and S[:M].count("?") == 1:
S[S[:M].index("?")] = "W"
elif all(s == "A" for s in S[:M]):
S[M:] = ["A"] * (N - M)
print(*S, sep="")