编写题解 1402: 简单的字符串(独家复杂方法) 摘要:###都拿去吧!应该很少有人会这样写 ```cpp #include using namespace std; int main() { int b[27]={0}; int n; …… 题解列表 2023年01月24日 0 点赞 0 评论 239 浏览 评分:9.9
简单的字符串 java双指针O(n)复杂度! 摘要:import java.util.Scanner; public class Main { /** * ABBCCC * j * k &nbs 题解列表 2022年07月04日 0 点赞 0 评论 157 浏览 评分:9.9
简单的字符串-题解(C++代码) 摘要:#include using namespace std; int main() { int n; cin>>n; char a[100][10000]; for(int i=…… 题解列表 2020年02月04日 0 点赞 1 评论 763 浏览 评分:9.9
1402: 简单的字符串 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; while(n--) …… 题解列表 2023年03月22日 0 点赞 0 评论 526 浏览 评分:9.9
简单的字符串-题解(C语言代码)--时间超限 摘要: #include #include int main(){ int n,c,d,cnt; scanf("%d",&n);getchar(); whil…… 题解列表 2019年12月11日 0 点赞 0 评论 908 浏览 评分:9.9
map集合(简单易懂) 摘要:解题思路:注意事项:参考代码:import java.util.HashMap;import java.util.Map;import java.util.Map.Entry;import java.…… 题解列表 2024年03月29日 0 点赞 1 评论 184 浏览 评分:9.9
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100] = { 0 }; …… 题解列表 2024年08月13日 0 点赞 0 评论 149 浏览 评分:9.9
编写题解 1402: 简单的字符串,简单易懂 摘要:解题思路:只要搞清楚逻辑就很容易理解!从第一个字符开始,判断后面是否有连续字母跟它相等的,如果有则count++;否则跳出循环,随后再从不相等的字符开始判断注意事项:多个字符串输入的格式,要用到nex…… 题解列表 2022年05月09日 0 点赞 0 评论 298 浏览 评分:9.9
简单的字符串-题解(C++代码)C++超简单方法 摘要:```cpp #include using namespace std; // 因为每次只用对比后一个字符,所以这样模拟就行,但是 // 要注意最后一个字符怎么输出,其方法是加一个无关字…… 题解列表 2020年03月04日 0 点赞 1 评论 908 浏览 评分:9.9
简单的字符串-题解c语言 摘要:#include <stdio.h> int main (void){ int count=0,n;// count 是循环进行的次数,n是需要进行的次数 int i,t=1; // i 是…… 题解列表 2022年04月08日 0 点赞 1 评论 548 浏览 评分:9.9