字符串问题(极简) 摘要:解题思路:极简注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ string…… 题解列表 2025年02月03日 0 点赞 0 评论 692 浏览 评分:0.0
菜鸡写法,分情况就ok 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string>#include<cstring>#include<algorithm>#include<cmath…… 题解列表 2023年12月24日 0 点赞 0 评论 642 浏览 评分:0.0
编写题解 1206: 字符串问题 摘要:##编写题解 1206: 字符串问题 ```cpp #include using namespace std; int main() { string s; cin>>s; fo…… 题解列表 2023年02月04日 0 点赞 0 评论 535 浏览 评分:0.0
1206: 字符串问题 ```cpp#include#includeusingnamespacestd;intmain(){chara[300];gets(a);for(inti=strlen(a)-1;i>=0;i--)putchar(a[i]);return0;}``` 题解列表 2023年01月05日 0 点赞 0 评论 567 浏览 评分:9.9
编写题解 1206: 字符串问题(最短) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string a;//定义 cin>>a;//输出 …… 题解列表 2022年11月04日 0 点赞 0 评论 575 浏览 评分:0.0
编写题解 1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; c…… 题解列表 2022年03月31日 0 点赞 0 评论 520 浏览 评分:0.0
1126:C语言训练-字符串正反连接题解 解题思路:此题是字符串中比较简单的一题了。我们用一个循环输入字符串,再用一个循环倒序输出一下。则循环参数从字符串的长度-1开始,到0结束,因为字符串的下标从0开始。然后每次循环参数-1,每次输出字符串中的一个字符。注意事项:任意字符串,就说明中间会出现空格, 题解列表 2022年03月29日 0 点赞 0 评论 545 浏览 评分:0.0
Hifipsysta-1206-字符串问题(C++代码) ```cpp#include#include#includeusingnamespacestd;intmain(){stringmystr;while(cin>>mystr);reverse(mystr.begin(),mystr.end());cout 题解列表 2022年02月12日 0 点赞 0 评论 494 浏览 评分:0.0
1206: 字符串问题 摘要:这题就是字符串逆序,使用 reverse 函数。#include<bits/stdc++.h> using namespace std; int main(){ string s; …… 题解列表 2021年12月23日 0 点赞 0 评论 534 浏览 评分:0.0
编写题解 1206: 字符串问题(c++) 摘要:解题思路:相同的字符串进行逆转,用两个不同的变量i,j标记,i记录串尾位置,j记录串头位置,用个for循环就好参考代码: #include <iostream>#inclu…… 题解列表 2021年08月19日 0 点赞 0 评论 614 浏览 评分:0.0