結果
| 問題 | No.3685 ワロングアンサーやんけ! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-06 21:55:29 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 424 bytes |
| 記録 | |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 95,816 KB |
| 実行使用メモリ | 86,656 KB |
| 最終ジャッジ日時 | 2026-09-06 21:55:37 |
| 合計ジャッジ時間 | 6,402 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 12 WA * 20 |
ソースコード
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 "".join(R[:K]) == 'A' * K:
R = ['A' * len(R)]
elif 'W' in R and R[:K].count('?') == 1:
R[R.index('?')] = 'W'
print("".join(R))