LeetCode Biweekly Contest 69
問題文
省略
省略
C++に変換後のコードはこちら
#define main dummy_main
{}
#undef main
class Solution {
public:
string capitalizeTitle(string title) {
VS arr = Explode(title, " ");
for(auto &s : arr){
s = toLower(s);
if(s.size() >= 3) s[0] = toupper(s[0]);
}
return Implode(arr, " ");
}
};
Current time: 2024年05月19日00時26分39秒
Last modified: 2022年03月12日23時53分01秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る
Logged in as: unknown user (not login)