0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00
Baoshuo Ren 2022-05-09 19:27:08 +08:00
parent 352faa5ca0
commit f491e2fc25
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

12
AcWing/16/16.cpp Normal file
View File

@ -0,0 +1,12 @@
class Solution {
public:
string replaceSpaces(string &str) {
string res;
for (auto c : str)
if (c == ' ')
res += "%20";
else
res += c;
return res;
}
};