蓝桥杯算法提高VIP-01背包 (C++代码) 摘要:解题思路:注意事项:数组大小要开足...参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <algorithm> …… 题解列表 2019年03月17日 0 点赞 0 评论 1325 浏览 评分:0.0
线段覆盖 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int maxn = 10000…… 题解列表 2019年03月17日 0 点赞 0 评论 1424 浏览 评分:5.6
小O的字符 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Demo1791 {public static void main(String[] args…… 题解列表 2019年03月17日 1 点赞 0 评论 775 浏览 评分:0.0
杨辉三角 (C++代码) 摘要:解题思路:水啊(注意换行)参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.ti…… 题解列表 2019年03月17日 0 点赞 0 评论 1658 浏览 评分:0.0
数数字 (C++代码)很速度 摘要:解题思路: 过后再更新,反正原理大概就是区间两端求余再取值看情况就可以了。参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdi…… 题解列表 2019年03月17日 2 点赞 3 评论 585 浏览 评分:8.0
线段覆盖 (C++代码) 摘要:解题思路:这我也是服了,本来准备写一些什么线段树啊区间维护啊之类的东西,后来想了想决定先暴力看看数据错误情况先,结果暴力直接过了。参考代码:#include<bits/stdc++.h> #defi…… 题解列表 2019年03月17日 0 点赞 0 评论 1314 浏览 评分:8.0
汉诺塔 (C语言代码) 摘要:解题思路: 用递归就好,话说一定注意空格参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(…… 题解列表 2019年03月17日 0 点赞 0 评论 1287 浏览 评分:0.0
等待戈多 (C语言代码) 摘要:解题思路:用dijkstra算法解决该题。注意事项:无参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h…… 题解列表 2019年03月17日 2 点赞 1 评论 531 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main(void) { double a,b,c; double x1,…… 题解列表 2019年03月17日 0 点赞 0 评论 924 浏览 评分:0.0
汉诺塔 (Java代码) 摘要:解题思路: 汉诺塔: 拿题目的 n=4来举例:柱子用a,b,c来方便表示. 我们逆向看,即看 当第4个盘子放在c时,此时b一定存放着3个盘子,因为根据题意此时第4个盘子一定…… 题解列表 2019年03月16日 1 点赞 0 评论 1311 浏览 评分:9.9