代码简单,思路清晰 #####代码很简单,不懂看注释######dfs版本最开始想的是dfs,后来发现其实循环就行了#includeusingnamespacestd;stringdfs(strings,intdepth){if(depth==0)returns;s+='&';//设置监督元, 题解列表 2024年01月11日 0 点赞 0 评论 617 浏览 评分:0.0
c语言函数解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void change(char s[]){ char b[1000]; int cou…… 题解列表 2023年12月01日 0 点赞 1 评论 617 浏览 评分:9.9
模拟一下就好了 摘要:解题思路:注意事项:参考代码:m=input()n=int(input())s=list(m)for _ in range(n): cnt=1 t='' for i …… 题解列表 2023年04月04日 0 点赞 0 评论 549 浏览 评分:0.0
用C语言破“奇怪的数列” 摘要:解题思路:本题的思路并不难,纸上都能做出来,但用代码实现就很抽象可以分为几步获取初始字符串c(很简单的,%s就行)和变换次数n创建循环1,循环内的任务是每次都把上次得到的字符串“解释”一次然后赋给c;…… 题解列表 2022年04月07日 0 点赞 0 评论 1233 浏览 评分:9.9
写了好久的100分 摘要:解题思路:遍历判断注意事项: 注意分清判断层次,边界条件参考代码:import java.util.Scanner; public class Main { public static vo…… 题解列表 2022年03月20日 0 点赞 0 评论 543 浏览 评分:0.0
蓝桥杯2015年第六届真题-奇怪的数列 摘要:解题思路:StringBuilder不断更新字符串,依次比较后赋值注意事项:注意下标溢出参考代码:import java.util.Scanner;public class Main { pu…… 题解列表 2022年03月15日 0 点赞 0 评论 671 浏览 评分:0.0
蓝桥杯2015年第六届真题-奇怪的数列 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> using namespace std; stri…… 题解列表 2021年12月05日 0 点赞 0 评论 784 浏览 评分:0.0
随便写的方法,只关注结果了 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>#include <sstream>using name…… 题解列表 2021年11月04日 0 点赞 0 评论 749 浏览 评分:0.0
1833: 蓝桥杯2015年第六届真题-奇怪的数列(Python3)直接统计即可 摘要:解题思路:注意事项:参考代码:n, times, cnt, res = input(), int(input()), 1, '' for i in range(times): …… 题解列表 2021年03月14日 0 点赞 0 评论 1434 浏览 评分:7.5
蓝桥杯2015年第六届真题-奇怪的数列-题解(C++代码) 摘要:#include <iostream>#include <cstring>using namespace std;char a[110000];char s[1000010];int main(){ …… 题解列表 2021年01月30日 0 点赞 0 评论 590 浏览 评分:0.0