杨辉三角 (C++代码) 摘要:解题思路:水啊(注意换行)参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.ti…… 题解列表 2019年03月17日 0 点赞 0 评论 1718 浏览 评分:0.0
数数字 (C++代码)很速度 摘要:解题思路: 过后再更新,反正原理大概就是区间两端求余再取值看情况就可以了。参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdi…… 题解列表 2019年03月17日 2 点赞 3 评论 620 浏览 评分:8.0
线段覆盖 (C++代码) 摘要:解题思路:这我也是服了,本来准备写一些什么线段树啊区间维护啊之类的东西,后来想了想决定先暴力看看数据错误情况先,结果暴力直接过了。参考代码:#include<bits/stdc++.h> #defi…… 题解列表 2019年03月17日 0 点赞 0 评论 1372 浏览 评分:8.0
汉诺塔 (C语言代码) 摘要:解题思路: 用递归就好,话说一定注意空格参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(…… 题解列表 2019年03月17日 0 点赞 0 评论 1353 浏览 评分:0.0
等待戈多 (C语言代码) 摘要:解题思路:用dijkstra算法解决该题。注意事项:无参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h…… 题解列表 2019年03月17日 2 点赞 1 评论 563 浏览 评分: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 评论 986 浏览 评分:0.0
汉诺塔 (Java代码) 摘要:解题思路: 汉诺塔: 拿题目的 n=4来举例:柱子用a,b,c来方便表示. 我们逆向看,即看 当第4个盘子放在c时,此时b一定存放着3个盘子,因为根据题意此时第4个盘子一定…… 题解列表 2019年03月16日 1 点赞 0 评论 1343 浏览 评分:9.9
线段覆盖 (C++代码) 摘要:解题思路:模拟法注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int arr[100000]; int main() { …… 题解列表 2019年03月16日 1 点赞 0 评论 2854 浏览 评分:6.7
等待戈多 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{private static int k;private static int n;…… 题解列表 2019年03月16日 0 点赞 0 评论 1462 浏览 评分:9.9
矩阵嵌套 (C++代码) 摘要:码一下代码:#include <iostream> using namespace std; int main() { int N, n, a, b; int i, j…… 题解列表 2019年03月16日 0 点赞 0 评论 1366 浏览 评分:9.9