题解列表
代码比较长,建议耐心食用
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int findchar(char a[]……
1604: 蓝桥杯算法训练VIP-阶乘
摘要:解题思路:注意事项:注意单词别打错,人生苦短,我学python参考代码:import mathnumbers = math.factorial(int(input()))while numbers %……
Tom数-题解(Python代码)
摘要:```python
import sys
while True:
line = sys.stdin.readline().strip()
if not line:
……
1630: 蓝桥杯算法训练VIP-摆动序列(Python3)DFS+打表
摘要:解题思路: DFS注意事项: Python用DFS在数据量大的时候会超时(6-7s),所以打表更稳一些。参考代码:def test(num, index):
global tem……
1039: [编程入门]宏定义之闰年判断
摘要:#include<iostream>using namespace std;bool isleap(int n){ if((n % 4 == 0 && n % 100 != 0) || n % 400……
1038: [编程入门]宏定义练习之三角形面积
摘要:解题思路:用bool函数注意事项:一定要写 double area = sqrt(s * (s - a) * (s - b) * (s - c));不然就是求半周长了参考代码:#include<bi……
[算法训练VIP]阶乘 python代码 简单易懂
摘要:解题思路:注意事项:参考代码:import mathsum1 = math.factorial(int(input())) # 求阶乘之和的函数 math.factorialwhile 1: ……
蓝桥杯2017年第八届真题-拉马车——使用StringBuilder方式
摘要:使用StringBuilder操作字符串模拟出牌,并判断当前出牌是否可以从牌堆中拿牌,当有一方手牌为空结束游戏
```java
import java.util.Scanner;
public……