很笨的方法,能通过就行,哈哈哈哈哈 摘要:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); vector<pai…… 题解列表 2024年04月05日 0 点赞 1 评论 421 浏览 评分:9.9
最长最短单词(C++代码解析) 代码解析:引入了必要的头文件,包括iostream、string和sstream和vector头文件用于使用向量容器。接下来,定义了一个getWords函数,该函数接受一个字符串sentence作为参数,并返回该字符串中的所有单词。在函数内部, 题解列表 2023年07月16日 0 点赞 0 评论 998 浏览 评分:9.9
2868: 最长最短单词 ```cpp#include#includeusingnamespacestd;chara[40000];intb[300],c[300],d[300];intmain(){gets(a);intlen=strlen(a),minn=0,maxx=0,k=0;for(inti=0,j=0;i 题解列表 2023年02月24日 0 点赞 0 评论 653 浏览 评分: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 评论 513 浏览 评分:0.0
怎么又没人??那我来吧!!!! ```cpp#includechara[40000];intb[300],c[300],d[300];intmain(){gets(a);inti,j=0,k=0,len;len=strlen(a);for(i=0;i 题解列表 2023年02月22日 0 点赞 0 评论 730 浏览 评分:9.9