题解 1644: 蓝桥杯算法训练VIP-最长字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int maxx1=0; string maxx; for…… 题解列表 2024年07月13日 0 点赞 0 评论 538 浏览 评分:0.0
1644: 蓝桥杯算法训练VIP-最长字符串 ```cpp#includeusingnamespacestd;typedeflonglongll;intmain(){stringmaxxstr;llmaxx=0;for(inti=1;i>s;if(s.size()>maxx){maxx=s.size();maxxstr=s;}}cout 题解列表 2024年07月13日 0 点赞 0 评论 435 浏览 评分:0.0
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
比较繁琐的解法 摘要:解题思路:注意事项:参考代码:#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
蓝桥杯算法训练VIP-最长字符串 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2018年04月15日 0 点赞 0 评论 1050 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main(int argc, char *…… 题解列表 2019年05月10日 0 点赞 0 评论 815 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<cstdio>using namespace std;int main(){ …… 题解列表 2018年11月14日 0 点赞 0 评论 1060 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码)数组和指针的灵活运用,相互切换! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){char str1[102],str2[102],str3[102],str4…… 题解列表 2019年05月23日 0 点赞 0 评论 1158 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串-题解(C++代码) #include#include#includeusingnamespacestd;constintmaxn=100;intmain(void){stringa[5];//利用string存储5个字符串stringmax="";//先设置一个空的字符串, 题解列表 2019年06月30日 0 点赞 0 评论 1471 浏览 评分:0.0