题解列表
1630: 蓝桥杯算法训练VIP-摆动序列(Python3)DFS+打表
摘要:解题思路: DFS注意事项: Python用DFS在数据量大的时候会超时(6-7s),所以打表更稳一些。参考代码:def test(num, index):
global tem……
Tom数-题解(Python代码)
摘要:```python
import sys
while True:
line = sys.stdin.readline().strip()
if not line:
……
1604: 蓝桥杯算法训练VIP-阶乘
摘要:解题思路:注意事项:注意单词别打错,人生苦短,我学python参考代码:import mathnumbers = math.factorial(int(input()))while numbers %……
题解 1567: 蓝桥杯算法提高VIP-超级玛丽
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;
public class 超级玛丽 {
/**
* @param args
*/
pub……
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++题解
摘要:解题思路:比较简单的一道题注意事项:注意方向的对应,行数是越向下越大参考代码:#include <iostream>
#include <vector>
#include <string>
……
输出全排列题解dfs+回溯
摘要:1. # MarkDown编辑器基本使用说```java
public class Main{
static int n;
static int[] a;//用来记录已经在排列中的数字
sta……
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++题解
摘要:解题思路:比较简单的一道题注意事项:注意方向的对应,行数是越向下越大参考代码:#include <iostream>
#include <vector>
#include <string>
……
链表实现结构体之成绩统计2
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct student { char id[10]; char n……