ammdyc @ 2024-08-05 10:53:23
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,m,g,x,num=1;
string a,b;
int main(){
cin>>n>>m>>a>>b;
a='0'+a;
b='0'+b;
for(int i=1;i<=n;i++){
if(a[i]=='#'){
g++;
}
}
m-=g;
if(m>=25)x=m/25;
for(int i=1;i<=n;i++){
if(a[i]=='#'){
a[i]=(char)(97+(num-1)%26);
if(x==0)num++;
else x--;
}
cout<<a[i];
}
return 0;
}
by ammdyc @ 2024-08-05 11:13:11
@jrzhr 你要不要猜猜这两句是什么意思:
m-=g;
if(m>=25)x=m/25;
by ammdyc @ 2024-08-05 11:17:12
我已经知道哪错了,可以看我贴子楼下
by fztt_r9 @ 2024-08-05 11:37:37
@ammdyc dalao stOOrz%%%%%
by ammdyc @ 2024-08-05 17:08:36
@fztt_r9 哈哈哈,你不会不知道自己被jc了吧