結果
| 問題 | No.3685 ワロングアンサーやんけ! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-05 16:20:54 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 96,412 KB |
| 実行使用メモリ | 85,224 KB |
| 最終ジャッジ日時 | 2026-09-05 16:21:01 |
| 合計ジャッジ時間 | 5,675 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 24 |
ソースコード
import sys
def debug(*args):
print(*args, file=sys.stderr)
T = int(input())
for _ in range(T):
R = input()
S = input()
K = int(input())
if S == "NotWarong":
print(R)
continue
ret = "A" * K
s = R[K:]
if s.count("W") == 0:
s.replace("?", "W", 1)
ret += s
print(ret)