蓝桥杯算法训练VIP-最长字符串 (C++代码)只做最简单的思路!
摘要:```cpp
#include
using namespace std;
int main(){
string s[5];
int len=0,p=0;
for(int i=0;……
蓝桥杯算法训练VIP-最长字符串-题解(Python代码)
摘要:```python
while True:
try:
a = input().split()
max_num = 0
max_str ……
蓝桥杯算法训练VIP-最长字符串-题解(C语言代码)AC代码 值得参考
摘要: #include
#include
#define N 5
int main()
{
int i,j,k;
char x[N][……
1644:最长字符串(使用结构体存储,扩展解法)
摘要:```cpp
#include
#include
#include
using namespace std;
struct word {
string w;
in……
python最长字符串 带解析
摘要:s=list(input().split()) #以列表方式存储Max=len(s[0]) #记录字符串最大长度 首先记录第一个n=[] #记录字符串最大长度对应字符的下标n.append(0) #首……
蓝桥杯算法训练VIP-最长字符串 (C语言代码)
摘要:解题思路:输入一个单词判断一次当前所输入的字符串和储存的最长的大小注意事项:getchar()函数放置的位置参考代码:#include<stdio.h>
#include<string.h>
in……
最长字符串(c语言代码 简单易理解 有详细注释)
摘要:```c
#include
#include
int main()
{
char str[500] = { 0 };//用来存放输入的字符串
gets(str);
int ……
蓝桥杯算法训练VIP-最长字符串-题解(C语言代码)
摘要:#include<stdio.h>#include<string.h>int main(){ char a[1000]; int n,i,j,max=0,count=0; gets(a); n=str……