結果
| 問題 | No.3685 ワロングアンサーやんけ! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-06 21:56:45 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 473 ms / 2,000 ms |
| + 679µs | |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 95,820 KB |
| 実行使用メモリ | 87,424 KB |
| 最終ジャッジ日時 | 2026-09-06 21:56:57 |
| 合計ジャッジ時間 | 6,436 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 32 |
ソースコード
for _ in range(int(input())):
R = list(input())
S = input()
K = int(input())
if S[0] == 'W':
for i in range(K):
R[i] = 'A'
if 'W' not in R and R.count('?') == 1:
R[R.index('?')] = 'W'
else:
if R[:K].count('A') == K:
R = ['A' * len(R)]
elif 'W' in R and R[:K].count('?') == 1 and 'W' not in R[:K]:
R[R.index('?')] = 'W'
print("".join(R))