1039: [编程入门]宏定义之闰年判断 摘要:#include<iostream>using namespace std;bool isleap(int n){ if((n % 4 == 0 && n % 100 != 0) || n % 400…… 题解列表 2021年04月10日 0 点赞 0 评论 520 浏览 评分:0.0
龟兔赛跑预测。 摘要:解题思路:注意事项:参考代码:int main(){ int v1,v2,s,t,l; scanf("%d%d%d%d%d",&v1,&v2,&t,&s,&l); int s1=0,…… 题解列表 2021年04月10日 0 点赞 0 评论 639 浏览 评分:0.0
1630: 蓝桥杯算法训练VIP-摆动序列(Python3)DFS+打表 摘要:解题思路: DFS注意事项: Python用DFS在数据量大的时候会超时(6-7s),所以打表更稳一些。参考代码:def test(num, index): global tem…… 题解列表 2021年04月10日 0 点赞 0 评论 909 浏览 评分:0.0
Tom数-题解(Python代码) 摘要:```python import sys while True: line = sys.stdin.readline().strip() if not line: …… 题解列表 2021年04月11日 0 点赞 0 评论 385 浏览 评分:0.0
1604: 蓝桥杯算法训练VIP-阶乘 摘要:解题思路:注意事项:注意单词别打错,人生苦短,我学python参考代码:import mathnumbers = math.factorial(int(input()))while numbers %…… 题解列表 2021年04月11日 0 点赞 0 评论 782 浏览 评分:0.0
带参宏定义 摘要:解题思路:宏定义的本质是替换过程注意事项:未知变量在主函数中定义参考代码:#include<iostream>using namespace std;#define swap(x,y) {t=x,x=…… 题解列表 2021年04月11日 0 点赞 0 评论 471 浏览 评分:0.0
题解 1567: 蓝桥杯算法提高VIP-超级玛丽 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class 超级玛丽 { /** * @param args */ pub…… 题解列表 2021年04月11日 0 点赞 0 评论 431 浏览 评分:0.0
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++题解 摘要:解题思路:比较简单的一道题注意事项:注意方向的对应,行数是越向下越大参考代码:#include <iostream> #include <vector> #include <string> …… 题解列表 2021年04月11日 0 点赞 0 评论 305 浏览 评分:0.0
输出全排列题解dfs+回溯 摘要:1. # MarkDown编辑器基本使用说```java public class Main{ static int n; static int[] a;//用来记录已经在排列中的数字 sta…… 题解列表 2021年04月11日 0 点赞 0 评论 641 浏览 评分:0.0
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++题解 摘要:解题思路:比较简单的一道题注意事项:注意方向的对应,行数是越向下越大参考代码:#include <iostream> #include <vector> #include <string> …… 题解列表 2021年04月11日 0 点赞 0 评论 256 浏览 评分:0.0