最长字符串 (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 评论 1878 浏览 评分:0.0
可AC 摘要:解题思路: 注意事项: 参考代码: #include<stdio.h> #include<string.h> int main() { int num[5], i, max =…… 题解列表 2018年07月29日 1 点赞 0 评论 1971 浏览 评分:8.5
蓝桥杯算法训练VIP-最长字符串 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include <stdio.h>#include <string.h>int main(){ int i,n,max=0; char a…… 题解列表 2018年08月19日 0 点赞 0 评论 1254 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"int main(){ char s[5][100] = { 0 }; int i,max=0,len,flag; for …… 题解列表 2018年10月23日 0 点赞 0 评论 1429 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码) 摘要:解题思路:输入一个单词判断一次当前所输入的字符串和储存的最长的大小注意事项:getchar()函数放置的位置参考代码:#include<stdio.h> #include<string.h> in…… 题解列表 2019年03月20日 0 点赞 0 评论 1406 浏览 评分:9.9
蓝桥杯算法训练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语言代码)AC代码 值得参考 #include#include#defineN5intmain(){inti,j,k;charx[N][200],ans[200];for(i=0;i 题解列表 2019年11月24日 0 点赞 0 评论 1593 浏览 评分:9.9
蓝桥杯算法训练VIP-最长字符串-题解(C语言代码) ```cpp#include#include#includeusingnamespacestd;intmain(){charstr[5][100];inti=0;while(i 题解列表 2019年11月27日 0 点赞 0 评论 938 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串-题解(C语言代码) 摘要:```c #include #include int main() { char a[100001],b[100001],d; while(~scanf("%s",a)) { …… 题解列表 2019年12月02日 0 点赞 0 评论 1211 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串-题解(C语言代码) 清晰简单 #include#includeintmain(){chararr[5][120];inti=0;intmaxlen=0;intmaxarr=0;for(i=0;i<5;i++){scanf("%s",&arr[i]);if(strlen(arr[i])>=maxlen){maxlen=strlen( 题解列表 2019年12月11日 0 点赞 0 评论 1293 浏览 评分:0.0