1644: 蓝桥杯算法训练VIP-最长字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ string m…… 题解列表 2024年07月13日 0 点赞 0 评论 491 浏览 评分:0.0
结构体数组解决(c语言代码) ```c#include#include#defineMAX101typedefstruct{//定义一个结构体chars[MAX];//字符数组,用于存储字符串intlength;//整数,存储字符串的长度}Arr;intmain(){Arrstr[MAX];//定义一个Arr类型的数组, 题解列表 2024年08月23日 0 点赞 0 评论 556 浏览 评分:0.0
1644:最长字符串(使用结构体存储,扩展解法) ```cpp#include#include#includeusingnamespacestd;structword{stringw;intsize;};intmain(){wordwords[50];//声明一个包含50个word结构体的数组stringstr;getline(cin, 题解列表 2024年10月04日 0 点赞 0 评论 479 浏览 评分:9.9
比较繁琐的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,p=0; char a[150],b[150],…… 题解列表 2024年12月08日 0 点赞 0 评论 414 浏览 评分:0.0