蓝桥杯2015年第六届真题-奇怪的数列-题解(C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main() { char s[101],k[101],*q,b; //s当前串 …… 题解列表 2020年08月07日 0 点赞 0 评论 291 浏览 评分:9.9
蓝桥杯2015年第六届真题-奇怪的数列 (C++代码)(LookAndSay) 摘要:解题思路: 注意一下变换次数为 0 的陷阱,题解操作注释就应该能说明白了,欢迎交流。参考代码:#include<bits/stdc++.h> using namespa…… 题解列表 2018年06月05日 0 点赞 0 评论 1349 浏览 评分:9.9
蓝桥杯2015年第六届真题-奇怪的数列-题解(C语言代码) 摘要:解题思路:参考代码:虽然这个代码可以ac但是如果输入相同数字超过10之后,会出现bug;#include#includechar a[1000]; char b[105]; int n; int…… 题解列表 2020年08月08日 0 点赞 1 评论 638 浏览 评分:8.5
1833: 蓝桥杯2015年第六届真题-奇怪的数列(Python3)直接统计即可 摘要:解题思路:注意事项:参考代码:n, times, cnt, res = input(), int(input()), 1, '' for i in range(times): …… 题解列表 2021年03月14日 0 点赞 0 评论 473 浏览 评分:7.5
蓝桥杯2015年第六届真题-奇怪的数列 (C++代码) 摘要:解题思路:用循环...有点绕,递归可能好一点...注意事项:参考代码:#include <iostream> #include <stdio.h> #include <string> #incl…… 题解列表 2018年12月15日 0 点赞 0 评论 749 浏览 评分:6.7
蓝桥杯2015年第六届真题-奇怪的数列-题解(Python代码) 摘要:```python def f(s): alist = [] #用来存放次数和元素 char = s[0] #先标记第一个元素 i=0 for n,_ in enumerate(s)…… 题解列表 2020年02月17日 0 点赞 0 评论 917 浏览 评分:6.4
蓝桥杯2015年第六届真题-奇怪的数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iterator>#include<stdio.h>#include<iomanip>#include<string…… 题解列表 2019年03月23日 0 点赞 0 评论 1113 浏览 评分:6.0
蓝桥杯2015年第六届真题-奇怪的数列-题解(Python代码)py开荒柘 摘要:简单题: ```python s=input().split()[0] n=int(input()) def dispose(n,s): if n==0: return s L=…… 题解列表 2020年02月04日 0 点赞 0 评论 808 浏览 评分:6.0
蓝桥杯2015年第六届真题-奇怪的数列-题解(C++代码)代码不多,简单操作 摘要:```cpp #include #include #include using namespace std; void fun(string &str) { string s=""; …… 题解列表 2020年10月13日 0 点赞 0 评论 409 浏览 评分:6.0
蓝桥杯2015年第六届真题-奇怪的数列-题解(C++代码) 摘要:#include <iostream>#include <cstring>using namespace std;char a[110000];char s[1000010];int main(){ …… 题解列表 2021年01月30日 0 点赞 0 评论 214 浏览 评分:0.0