結果
| 問題 | No.3685 ワロングアンサーやんけ! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-05 13:54:26 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 96,196 KB |
| 実行使用メモリ | 86,812 KB |
| 最終ジャッジ日時 | 2026-09-05 13:55:08 |
| 合計ジャッジ時間 | 6,006 ms |
|
ジャッジサーバーID (参考情報) |
judge5_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=='Warong':
for i in range(k):
r[i]='A'
if r.count('?')==1 and r.count('W')==0:
r[r.index('?')]='W'
print(''.join(r))
else:
if ('W' in r[k:]) and ('W' not in r[:k]) and r[:k].count('?')==1:
r[r.index('?')]='W'
print(''.join(r))