题解列表

筛选

线段覆盖 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int maxn = 10000……

小O的字符 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Demo1791 {public static void main(String[] args……

杨辉三角 (C++代码)

摘要:解题思路:水啊(注意换行)参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.ti……

数数字 (C++代码)很速度

摘要:解题思路:    过后再更新,反正原理大概就是区间两端求余再取值看情况就可以了。参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdi……

线段覆盖 (C++代码)

摘要:解题思路:这我也是服了,本来准备写一些什么线段树啊区间维护啊之类的东西,后来想了想决定先暴力看看数据错误情况先,结果暴力直接过了。参考代码:#include<bits/stdc++.h> #defi……

汉诺塔 (C语言代码)

摘要:解题思路:    用递归就好,话说一定注意空格参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(……

等待戈多 (C语言代码)

摘要:解题思路:用dijkstra算法解决该题。注意事项:无参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h……

汉诺塔 (Java代码)

摘要:解题思路:  汉诺塔:  拿题目的 n=4来举例:柱子用a,b,c来方便表示.  我们逆向看,即看            当第4个盘子放在c时,此时b一定存放着3个盘子,因为根据题意此时第4个盘子一定……