怎么又没人??那我来吧!!!! 摘要:```cpp #include char a[40000]; int b[300],c[300],d[300]; int main(){ gets(a); int i,j=0,k=0,…… 题解列表 2023年02月22日 0 点赞 0 评论 311 浏览 评分:9.9
借鉴楼上的 存下来 以后多看看 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char a[1000];int b[1000],c[1000],d[1000],k…… 题解列表 2023年02月23日 0 点赞 0 评论 176 浏览 评分:0.0
2868: 最长最短单词 摘要:```cpp #include #include using namespace std; char a[40000]; int b[300],c[300],d[300]; int mai…… 题解列表 2023年02月24日 0 点赞 0 评论 271 浏览 评分:9.9
最笨的方法 摘要:解题思路:利用两个数组来分别存放每个单词的大小和对应的句子中每个单词开始的元素下标注意事项:每个单词的元素下标记得从0开始参考代码:int main(){ char str[2000] = { …… 题解列表 2023年04月07日 0 点赞 1 评论 328 浏览 评分:9.9
java最长最短单词 摘要:解题思路:注意事项:参考代码:package ten;import java.util.Scanner;public class 最长最短单词 { public static void main…… 题解列表 2023年04月26日 0 点赞 0 评论 171 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() { int i, j, k, start = 0, end, max…… 题解列表 2023年05月31日 0 点赞 0 评论 205 浏览 评分:0.0
利用substring方法 摘要:解题思路:先截取出每个 单词(每个空格前),然后将截取的单词与初始的最大值和最小值进行比较,从而得到最长单词和最短单词注意事项:参考代码:import java.util.Scanner;public…… 题解列表 2023年06月12日 0 点赞 0 评论 131 浏览 评分:0.0
2868-最长最短单词 摘要:解题思路:注意事项:请各位朋友帮忙指正,测试的时候只有91分。参考代码:struct Test{ char s[105]; int n; }; int main(){ struct T…… 题解列表 2023年06月21日 0 点赞 0 评论 161 浏览 评分:0.0
最长最短单词(C++代码解析) 摘要:代码解析:引入了必要的头文件,包括iostream、string和sstream和vector头文件用于使用向量容器。接下来,定义了一个getWords函数,该函数接受一个字符串sentence作为参…… 题解列表 2023年07月16日 0 点赞 0 评论 358 浏览 评分:9.9
2868: 最长最短单词(C语言) 摘要: #include #include int main() { char a[2000]; gets(a); char word[100];//用于储存当前的单词…… 题解列表 2023年10月19日 0 点赞 0 评论 341 浏览 评分:9.9