随笔分类 -  字符串

摘要:点击查看代码 #include<iostream> using namespace std; const int N = 1e5 + 10; const int M = 1e6 + 10; int ne[N]; int main() { int n, m; char p[N], s[M]; cin 阅读全文
posted @ 2022-05-02 16:35 wKingYu 阅读(18) 评论(0) 推荐(0) 编辑
摘要:点击查看代码 #include<iostream> using namespace std; const int N = 200; string str[N]; int n ; int main() { while (cin >> n, n) { int len = 1000; for (int i 阅读全文
posted @ 2022-04-15 10:57 wKingYu 阅读(113) 评论(0) 推荐(0) 编辑
摘要:点击查看代码 #include<iostream> using namespace std; string s, s1, s2; int main() { char c; while (cin >> c, c != ',') s += c; while (cin >> c, c != ',') s1 阅读全文
posted @ 2022-04-14 17:49 wKingYu 阅读(52) 评论(0) 推荐(1) 编辑
摘要:点击查看代码 #include<iostream> using namespace std; string str; int main() { while (cin >> str, str != ".") { int len = str.size(); for (int n = len; n; n- 阅读全文
posted @ 2022-04-14 16:59 wKingYu 阅读(97) 评论(0) 推荐(1) 编辑
摘要:点击查看代码 #include<iostream> using namespace std; string str; int n; int main() { cin >> n; while (n --) { cin >> str; int cnt = 0; char c; for (int i = 阅读全文
posted @ 2022-04-14 11:23 wKingYu 阅读(39) 评论(0) 推荐(1) 编辑

欢迎阅读『字符串』
点击右上角即可分享
微信分享提示