蓝桥杯算法训练VIP-最长字符串-题解(Python代码) 摘要:利用python很方便,,,,先放到列表,再按条件排序,输出最大的值。 ```python l = [x for x in input().strip().split()] print(sort…… 题解列表 2020年02月14日 0 点赞 0 评论 448 浏览 评分:8.0
python解出来了 摘要:解题思路:注意事项:参考代码:ls=[]ls = list(input().strip().split())z = len(ls[0])b = 0for i in ls: if len(i) >…… 题解列表 2021年04月17日 0 点赞 0 评论 187 浏览 评分: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 评论 87 浏览 评分:0.0
最长字符串 (C语言代码) 摘要:#include<stdio.h>int len(char *arr){ int i=0; for(;arr[i]!='\0';i++); return i;}int main(){ …… 题解列表 2017年12月07日 0 点赞 0 评论 1019 浏览 评分:0.0
结构体数组解决(c语言代码) 摘要:```c #include #include #define MAX 101 typedef struct { // 定义一个结构体 char s[MAX];…… 题解列表 2024年08月23日 0 点赞 0 评论 137 浏览 评分:0.0
1644: 蓝桥杯算法训练VIP-最长字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ string m…… 题解列表 2024年07月13日 0 点赞 0 评论 98 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串-题解(Java代码) 摘要:```java import java.util.Scanner; public class 测试 { public static void main(String[] args) { …… 题解列表 2021年01月17日 0 点赞 0 评论 241 浏览 评分:0.0
1644: 蓝桥杯算法训练VIP-最长字符串 摘要:```cpp #include using namespace std; typedef long long ll; int main() { string maxxstr; …… 题解列表 2024年07月13日 0 点赞 0 评论 93 浏览 评分:0.0
题解 1644: 蓝桥杯算法训练VIP-最长字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int maxx1=0; string maxx; for…… 题解列表 2024年07月13日 0 点赞 0 评论 109 浏览 评分:0.0
无聊的星期六 摘要:z=input() z=z.split() max=0 for i in range(len(z)): if len(z[max])<len(z[i]): max=i…… 题解列表 2024年04月14日 0 点赞 0 评论 175 浏览 评分:0.0