c++小技巧#include<bits/stdc++.h> ios::sync_with_stdio(false); cin.tie(nullptr); string 截取字符串 string c = s.substr(pos, len); 翻转字符串 reverse(s.begin(), s.end()); 字符串区间删除 s.erase(pos,n); //删除从pos开始... Sep 25, 2024 Algorithm, Notes